Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: homemade launcher in lxpanel

  1. #11
    Join Date
    Jan 2008
    Location
    Spain
    Beans
    1,180
    Distro
    Ubuntu

    Re: homemade launcher in lxpanel

    Quote Originally Posted by dawnlove
    to get launcher to both open and close I need two Exec='s
    You shouldn't: the command "eject -T" is supposed to open the tray if it's closed and vice-versa.

    Quote Originally Posted by dawnlove View Post
    I've managed to make a launcher in /usr/share/applications. (lubuntu 11.4) to open/close optical drive. But it will only work if you open "/usr/share/applications" and click on it. It does not show up in menu and of course I can't choose it in lxpanel. Any help would be great
    this is my launcher
    [Desktop Entry]
    Name=eject
    Type=Application
    Comment=eject close
    Icon=/home/dove/icons/eject.png
    Exec=eject
    Exec=eject -T
    Categories=Utility;
    #NoDisplay=true
    Your above .desktop file works nicely for me, with only one Exec:
    Code:
    [Desktop Entry]
    Name=eject
    Type=Application
    Comment=eject close
    Icon=/home/jc/kk/mete-saca.png
    #Exec=eject
    Exec=eject -T
    Categories=Utility;
    #NoDisplay=true
    Apart from the evident icon change, my file is /usr/share/applications/eject.desktop, the owner is set to root, and the permissions are rw for the ownwer, nothing for everybody else. And not executable.
    The icon appears in my lxde menu (using lubuntu 11.04 here), under accesories, and works nicely as expected. Hope some detail in the above will help you.

    Anyway: if you want to have this function at hand, ¿shouldn't be better to assign it to a keyboard shorcut? In Lubuntu you have to edit manually a file for that, which is
    Code:
    ~/.config/openbox/lubuntu-rc.xml
    . I think you'll figure out how to do it looking at other shorcuts (look for "<keyboard>" in that file). If you like the idea and have any trouble, please come back to ask

    JC
    What's even more important than free software? - OPEN FORMATS.

  2. #12
    Join Date
    Apr 2009
    Location
    california
    Beans
    38
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: homemade launcher in lxpanel

    Quote Originally Posted by Dennis N View Post
    Tested this and it shows up in the menu (accessories):

    Code:
    [Desktop Entry]
    Type=Application
    Icon=shellscript
    Name=Ejector
    Comment=Eject a CD	
    Categories=Utility;
    Exec=eject
    StartupNotify=true
    Terminal=false
    and works to open the tray. Adding the second "Exec=" did nothing - it was ignored.

    I saved it as ejector.desktop in ~/.local/share/applications/

    If it was more complex, a shell-script would be in order, but eject is a built in command so it works anyway.

    Good Luck.
    Many thanx your desktop entry showed up in my menu but did not close drive until I added a the second "Exec="? see below

    [Desktop Entry]
    Type=Application
    Icon=/home/dove/icons/eject.png
    Name=Ejector
    Comment=Eject a CD
    Categories=Utility;
    Exec=eject
    Exec=eject -T
    StartupNotify=true
    Terminal=false
    many thanx again

  3. #13
    Join Date
    Apr 2009
    Location
    california
    Beans
    38
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: homemade launcher in lxpanel

    Last edited by dawnlove; April 29th, 2012 at 05:49 PM.

Page 2 of 2 FirstFirst 12

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
  •