PDA

View Full Version : [SOLVED] create a custom application launcher in the XFCE menu bar



cccc
September 26th, 2012, 12:10 AM
Hi

Howto create my own (custom) application launcher in the LXDE main menu bar?
BTW I cannot install and use Lxmed GUI, because I don't need and don't have java installed on my a really small thin client.
Is it any other way to edit a file manually?

Dennis N
September 26th, 2012, 01:30 AM
Make a .desktop file in ~/.local/share/applications/ for your application with a text editor. If done right, this will cause an entry in the main menu, and supply the needed information to the system to run it.

File name looks like:

<name>.desktop [ex: leafpad.desktop]


Example: (replace <...> with appropriate content)


[Desktop Entry]
Type=Application
Icon=<path to icon>
Name=<name to appear in menu>
Comment=<tooltip>
Categories=<menu categories>
Exec=<path to executable>
Path=<set working directory if necessary>
StartupNotify=true
Terminal=false

There are numerous possible keys. All the specifications are here to study:

http://standards.freedesktop.org/desktop-entry-spec/latest/index.html

More .desktop files to see are in /usr/share/applications, but those are for all users.

cccc
September 26th, 2012, 05:54 PM
hi

Howto create a custom application launcher in the XFCE main menu bar?
BTW I would like to edit config file manually.

rai4shu2
September 27th, 2012, 12:16 AM
I believe this is what you're looking for:

http://wiki.xfce.org/howto/customize-menu

Rodney9
September 27th, 2012, 12:23 AM
Right click on the panel

Go to Panel, click Add New Items

Click on Launcher

Click Add Click Close

Right click on the new Launcher icon, select Properties

Click on Add A New Empty Item

Then you can add any command you wish.


Rodney

cccc
September 27th, 2012, 02:35 AM
I believe this is what you're looking for:

http://wiki.xfce.org/howto/customize-menu

Thx, but I cannot use LXMenuEditor, because I don't have java installed on my very small installation.

cccc
September 27th, 2012, 02:36 AM
Right click on the panel

Go to Panel, click Add New Items

Click on Launcher

Click Add Click Close

Right click on the new Launcher icon, select Properties

Click on Add A New Empty Item

Then you can add any command you wish.


Rodney


Thx, but I'd like to add an additional application launcher to the main menu bar and not to the panel.

rai4shu2
September 27th, 2012, 02:46 AM
Thx, but I cannot use LXMenuEditor, because I don't have java installed on my very small installation.

It might help if you ignore that part and read the rest of the page. :lolflag::rolleyes:

cccc
September 27th, 2012, 05:57 PM
Thx a lot, it works well!

cccc
September 27th, 2012, 06:50 PM
I've done a .desktop file in /usr/share/applications/ for my application and it works well now:

[Desktop Entry]
Name=my_app_name
Encoding=UTF-8
Type=Application
Icon=/usr/share/pixmaps/my.png
Exec=/usr/bin/my_app
Categories=Application;Network;
Terminal=false

Perfect Storm
September 28th, 2012, 04:51 AM
Thread merged. Please don't make multiply threads about the same issue, thanks.