FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    41

    KMenuEdit

    Is there anyway to add to the menu the launcing of a console that runs several commands?
    So when you click on the menu option, it opens a console, then runs the given commands.

  2. #2
    Join Date
    Jun 2005
    Location
    Albuquerque
    Age
    68
    Posts
    409
    Quote Originally Posted by Complitric
    Is there anyway to add to the menu the launcing of a console that runs several commands?
    So when you click on the menu option, it opens a console, then runs the given commands.
    Have you read the help that is avalable in KDE? Should give you some insights how to customise.

    Dave
    Registered Linux #395226 running Fedora 7 x86_64
    "Three men were walking on a wall, Feeling, Faith and Fact.
    Feeling took an awful fall and Faith was taken back.
    But Fact remained both strong and true and that brought back Faith and Feeling too!"

  3. #3
    Join Date
    May 2004
    Posts
    503
    Well, you could write a script which performs the commands you want.
    Then open the menu editor. Now, create a new item in the sub-folder you want.
    Once the item has been created, high-light. In the options down the right
    side, make sure the Run In Terminal box is checked.
    Registered Linux User # 373325

  4. #4
    Join Date
    Jul 2005
    Location
    University of Kansas
    Posts
    475
    You could probably make it run a shell script.
    Fedora 11 x64 | Tyan Thunder 3600B | 2x AMD Opteron 2376 "Shanghai" 2.3GHz Quad-Core CPUs | 16GB RAM Registered ECC DDR2 667 | Sapphire RadeonHD 4550 GPU | OCZ Apex 125GB SATA II SSD [ / ] | Seagate 1TB SATA HDD [ /home ]

  5. #5
    Join Date
    Dec 2004
    Age
    29
    Posts
    36
    to create a script, you should just have to enter the commands into a text file and add the .sh extention. assuming your file was called file.sh, you'd make your menu item "bash file.sh" which will run its contents. If I'm wrong, please let me know, I'm new to this as well, and this is something I may want to do in the future.

    any good site to tell me how to make some actually GOOD shell scripts? I'll look myself, but if anyone has some suggestions...
    .................................................. .......

    Open Source is sometimes said to be simply a fad of today. It is not. It is a fad of tomorrow and it always will be.

Similar Threads

  1. KMenuEdit & ShortKey
    By semhoun in forum Using Fedora
    Replies: 8
    Last Post: 29th January 2005, 06:05 AM
  2. KDE and Kmenuedit
    By Furry_Fighter in forum Using Fedora
    Replies: 6
    Last Post: 10th October 2004, 12:55 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •