Results 1 to 6 of 6

Thread: Help with Adding custom launcher to Ubuntu unity sidebar

  1. #1
    Join Date
    Jul 2009
    Beans
    40
    Distro
    Ubuntu 12.04 Precise Pangolin

    Help with Adding custom launcher to Ubuntu unity sidebar

    Hello all ...

    I have used this web page ...
    ---
    http://www.youtube.com/watch?v=ncWUFEc3WXY
    ---

    and this process ...

    ---
    gksudo gedit /usr/share/applications/name.desktop

    paste into gedit :

    [Desktop Entry]
    Name=the name you want shown
    Comment=
    Exec=command to run
    Icon=icon name
    Terminal=false
    Type=Application
    StartupNotify=true

    and save file.
    ---

    But the process fails if the exec path contains a SPACE ( ascii 32 ) in the line

    ...

    any help on getting the exec path to work when the command line is ...

    /home/user/.wine/drive_c/Program Files/anyprogram.exe

    thx
    Thanks ... Dodeca

  2. #2
    Join Date
    Dec 2006
    Beans
    114
    Distro
    Ubuntu Development Release

    Re: Help with Adding custom launcher to Ubuntu unity sidebar

    Precede the space with "\", thus:

    /home/user/.wine/drive_c/Program\ Files/anyprogram.exe

  3. #3
    Join Date
    Jul 2009
    Beans
    40
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with Adding custom launcher to Ubuntu unity sidebar

    Quote Originally Posted by Steeperton View Post
    Precede the space with "\", thus:

    /home/user/.wine/drive_c/Program\ Files/anyprogram.exe

    Well .. thanks ... it seems right ... yet fails .... and the path IS CORRECT ... now what?

    below is a cut-n-paste of the error message.

    Details: Failed to execute child process "/home/user/.wine/drive_c/Program Files/Microsoft Visual Studio/VB98/vb6.exe" (No such file or directory)
    Thanks ... Dodeca

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,615
    Distro
    Ubuntu

    Re: Help with Adding custom launcher to Ubuntu unity sidebar

    First off, running a command needs to execute a program, so try adding
    Code:
    wine /path-to-file
    Secondly, there is no need to use root, as you can throw the desktop file in your home directory in the home/user/.local/share/applications folder. It'll be easier to manipulate and fix as you can just open gedit and fix without needing to run as root.
    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
    .

  5. #5
    Join Date
    Jul 2009
    Beans
    40
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with Adding custom launcher to Ubuntu unity sidebar

    Quote Originally Posted by deadflowr View Post
    First off, running a command needs to execute a program, so try adding
    Code:
    wine /path-to-file
    Secondly, there is no need to use root, as you can throw the desktop file in your home directory in the home/user/.local/share/applications folder. It'll be easier to manipulate and fix as you can just open gedit and fix without needing to run as root.

    Thanks ... adding wine to the beginning of the line works!
    Thanks ... Dodeca

  6. #6
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,615
    Distro
    Ubuntu

    Re: Help with Adding custom launcher to Ubuntu unity sidebar

    Good to see.

    For further information, because the Exec command is a command that can executed in the terminal, I always try running the command first in a terminal, so if any problems arise I can quickly figure it out.

    It's good practice, so I can see if the path is right or the command needs adjustments.
    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
    .

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
  •