Manage icon right click menu in PCManFM

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Locked
velkyk
Posts: 3
Joined: Fri Jun 28, 2013 8:36 am

Manage icon right click menu in PCManFM

Post by velkyk »

Hi,

I need to disable right click menu when I click icons from desktop provided by PCManFM.

My current version of openbox, libfm and pcmanfm are:
openbox-libs-3.5.0-4.el6.x86_64
libfm-0.1.12-4.el6.nux.x86_64
pcmanfm-0.9.7-1.el6.nux.x86_64
libfm-gtk-0.1.12-4.el6.nux.x86_64
openbox-3.5.0-4.el6.x86_64

Any help aprecciated
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Manage icon right click menu in PCManFM

Post by Rex Bouwense »

Have you created desktop files? See
http://wiki.lxde.org/en/PCManFM
Information found there will create desktop files. I cannot imagine why you would want to disable that feature but to each his own.
Rex
velkyk
Posts: 3
Joined: Fri Jun 28, 2013 8:36 am

Re: Manage icon right click menu in PCManFM

Post by velkyk »

I need it because I am setting up environment for our terminals and I can't let them edit them, delete them. For some reason even if user had read only privileges on links I've created on desktop, they are capable of deleting files via context menu option delete...

My example file for desktop icon is:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=iFORTUNA
GenericName=Web Browser
Comment=Browse the Web
Exec=firefox http://www.google.com
Icon=/usr/share/icons/hicolor/48x48/apps/firefox.png
Terminal=false
Type=Application
StartupWMClass=Firefox-bin
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
StartupNotify=true
X-Desktop-File-Install-Version=0.15
Categories=Network;WebBrowser;

Do you want to say, that I can change this menu based on settings in .desktop files?
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Manage icon right click menu in PCManFM

Post by Rex Bouwense »

Ops. I misunderstood. Let me do some more research. It would seem that it should be possible but since pcmanfm is so light that may not be the case.
Rex
velkyk
Posts: 3
Joined: Fri Jun 28, 2013 8:36 am

Re: Manage icon right click menu in PCManFM

Post by velkyk »

Great, I hope you will find something, though I haven't find anything and ended up on browsing the source code, but I am not very good at C, so...
LStranger
Posts: 49
Joined: Sat Nov 05, 2011 5:48 pm

Re: Manage icon right click menu in PCManFM

Post by LStranger »

Feel free to write feature request into pcmanfm tracker. Thank you.
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Manage icon right click menu in PCManFM

Post by drooly »

velkyk wrote:I need it because I am setting up environment for our terminals and I can't let them edit them, delete them. For some reason even if user had read only privileges on links I've created on desktop, they are capable of deleting files via context menu option delete...
so the problem is that users could delete files on the desktop by right-clicking and choosing delete or move to trash?
i just tried to create a file on my user desktop, but with root privileges, so it would be read-only for the user. i could still delete it.
i'm not using pcmanfm but thunar.
i tried to recreate the whole process in the terminal - it's the same.

Code: Select all

 rm test
rm: remove write-protected regular empty file ‘test’? y
so it has nothing to do with pcmanfm.

iirc it's possible to fine-tune a files permissions with the command line - if i were you, that's what i'd try next.
Locked