Can't start command line apps on Desktop - 0.9.3

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Can't start command line apps on Desktop - 0.9.3

Post by bmarkus »

Placing the mc.desktop file below in ~/Desktop
[Desktop Entry]
Name=mc
Comment=Midnight Commander
GenericName=mc
Exec=mc
Icon=dialog-warning
Terminal=true
StartupNotify=true
Type=Application
Categories=System;
it is shown on the Desktop but nothing happens when clicked. Same mc.desktop in /usr/local/share/applications works as expected, shown in the menu and opens mc in a terminal window.

I experience the same behavior with the old PCManFM. How desktop items are processed, what is the mechanism?

related syslog entry:
Apr 7 14:13:49 (none) user.info kernel: gnome-terminal[1202]: segfault at 1 ip b78cadab sp bfeb1a34 error 4 in libc-2.9.so[b785c000+133000]
Does it mean that somewhere in the execution chain gnome-terminal was executed which doesn't exist in the system and this causing the problem?

It is FCManFM2 0.9.3

Béla
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Can't start command line apps on Desktop - 0.9.3

Post by bmarkus »

Looking into the source code it seems to be a gnome-terminal wrapper configuration issue, missing terminal specification in libfm.conf

Is there anybody out using it successfuly?
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Can't start command line apps on Desktop - 0.9.3

Post by bmarkus »

Problem solved using a single line shell script wrapper. However interested in the official way :o
antgenn
Posts: 1
Joined: Mon Dec 03, 2012 3:20 pm

Re: Can't start command line apps on Desktop - 0.9.3

Post by antgenn »

my solution is to remove line "Terminal=true" and change the line "Exec=mc" to "Exec=lxterminal -e mc" in orig /usr/share/applications/mc.desktop , thus "add to desktop" in Menu and shortcut in Application Launch Bar are working too.
Locked