Results 1 to 9 of 9

Thread: Shortcuts?

  1. #1

    Default Shortcuts?

    Are shortcuts possible on the KDE desktop like you have in MS Windows?

    I have an application that has a specialized startup command that I need to type into the console every time I need to start it. It would be helpful if I could create some kind of shortcut on the desktop that launches the console and executes the command. Is that possible? If so how do go about creating one?

    I tried right click but nothing appears in the options.

    Thanks,

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,777

    Default Re: Shortcuts?

    I am not sure I understand you fully because you refer to Windows of which I have no knowledge, but I can make a few remarks in the hope that it helps.

    When you start it from a terminal window (if I understand you correctly), why don't you considder creating an alias for that very long statment. That would work werever you start a CLI, independent of the Desktop Environment you use and even if one is used.
    Create a file with name .alias in your home directory and add a line like:
    Code:
    alias hurray='very long command with parameters and options'
    after the next login you can thus use
    Code:
    hurray
    and it will be replaced by the string and thus executing the command.
    There is a lot about aliases in
    Code:
    man bash
    And of course there are many possibilleties to add an icon that will start your command to the KDE main menu, the panel, the space on the desktop (I forgot the name).
    Henk van Velden

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,673
    Blog Entries
    3

    Default Re: Shortcuts?

    Quote Originally Posted by aenglish View Post
    Are shortcuts possible on the KDE desktop like you have in MS Windows?
    I think you are looking to create a ".desktop" file on your Desktop. Maybe the following will help:
    Anatomy of a .desktop file

    I found that with a google search. You can probably find tools to create such a file, if you are not into simple editing of small text files.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  4. #4
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: Shortcuts?

    Quote Originally Posted by aenglish View Post
    Are shortcuts possible on the KDE desktop like you have in MS Windows?

    I have an application that has a specialized startup command that I need to type into the console every time I need to start it. It would be helpful if I could create some kind of shortcut on the desktop that launches the console and executes the command. Is that possible? If so how do go about creating one?

    I tried right click but nothing appears in the options.

    Thanks,
    From the menu:

    Configure Desktop => Shortcuts and Gestures (in the top category, Common Appearance and Behavior)

    -fb
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

  5. #5

    Default Re: Shortcuts?

    Right-click on your Desktop folder and select "Create new"->"Link to Program" or one of the other options. (this will in fact create such a .desktop file)
    The command to run can be set on the "Application" tab.

    This should create an icon on the desktop.

    If you want to change the command line, right-click on the icon and choose "Properties".

  6. #6

    Default Re: Shortcuts?

    unlock widgets (r-click anywhere along the task bar > unlock widgets)

    go to kmenu ... hover the cursor over the app you want a short cut for, then r-click and choose where you want it (desktop, panel...)

  7. #7

    Default Re: Shortcuts?

    Quote Originally Posted by Tyler_K View Post
    go to kmenu ... hover the cursor over the app you want a short cut for, then r-click and choose where you want it (desktop, panel...)
    Or drag'n'drop the icon from kmenu to where you want to have it (desktop, panel).

  8. #8

    Default Re: Shortcuts?

    Quote Originally Posted by Tyler_K View Post
    unlock widgets (r-click anywhere along the task bar > unlock widgets)

    go to kmenu ... hover the cursor over the app you want a short cut for, then r-click and choose where you want it (desktop, panel...)
    Thanks but the application I have installed doesn't have a Application icon. It has be run from the terminal console using SUDO.

    This is why I ask about the possibility of creating a short cut.

    Thanks,

  9. #9

    Default Re: Shortcuts?

    Quote Originally Posted by aenglish View Post
    Thanks but the application I have installed doesn't have a Application icon. It has be run from the terminal console using SUDO.

    This is why I ask about the possibility of creating a short cut.
    See my comment#5.
    And if you click on "Advanced Options" in the Properties dialog ("Application" tab), you can even tell KDe to start it as root (or any other user), so you don't have to use sudo.

Posting Permissions

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