Results 1 to 4 of 4

Thread: How to change command behind an icon in the launch bar?

Hybrid View

  1. #1
    Join Date
    Sep 2013
    Beans
    24

    How to change command behind an icon in the launch bar?

    Currently I have an icon sitting in my launch bar, with corresponding command:
    Dia

    I want to change the launching command to:
    LIBOVERLAY_SCROLLBAR=0 dia

    and preserve the icon.
    so each time when I click on the same icon it will launch Dia with the new command.
    Is it possible to do this? And how? Many thanks.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,596
    Distro
    Ubuntu

    Re: How to change command behind an icon in the launch bar?

    If it's a regular application you can:
    first open gedit.
    Then, for ease of use, open the file manager and then
    go to the folder /usr/share/applications
    Find the application, and then drag it into the gedit window.
    Edit the command line "Exec="

    At this point, I also add something like My in front of the program name
    "Name=My Program"
    Then open the file menu option and go to save as(not save)
    And save the file in /home/username/.local/share/applications.

    Then open the dash and search for the program.
    When found, add it to the launcher and it should stay there, regardless of what happens from then on.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Feb 2008
    Location
    Land of fire and drought
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: How to change command behind an icon in the launch bar?

    Right click launch bar>Add New Item>Launcher>set up your launcher with a name, an icon pic if you want one, and command.

    Test it. Delete the old icon with 'dia' as the command.

  4. #4
    Join Date
    Jun 2007
    Beans
    17,337

    Re: How to change command behind an icon in the launch bar?

    Locate the .desktop associated with Dia, open in a text editor, (root if in below address). Find the Exec= line & edit to -
    Code:
    Exec=env LIBOVERLAY_SCROLLBAR=0 dia %F
    May need to log out/in to affect in launcher

    Likely will be found in /usr/share/applications/dia.desktop

Bookmarks

Posting Permissions

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