Difference between revisions of "Talk:Cinnamon Desktop"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(2021 PCManFM right click menu and Open As Root: new section)
(PCManFM can be extended via custom actions: new section)
Line 37: Line 37:
  
 
You can start by right clicking an item, then click Open with ..., and choose "Custom Command Line" (instead of the picking from the normal list). Here you have to add an "Application name". Now there will be a file in /home/pi/.local/share/applications
 
You can start by right clicking an item, then click Open with ..., and choose "Custom Command Line" (instead of the picking from the normal list). Here you have to add an "Application name". Now there will be a file in /home/pi/.local/share/applications
 +
 +
== PCManFM can be extended via custom actions ==
 +
 +
PCManFM can be extended via “custom actions”, which, on the appropriate cases, can be accessed in the context menu of the application. They are quite easy to write, since they follow the Desktop Entry Specification. Custom actions, and the conditions for their applications (e.g. on what files they should be applied, for example) are defined in files with the .desktop extension, placed under the ~/.local/share/file-manager/actions directory.
 +
* https://linuxconfig.org/how-to-extend-pcmanfm-with-custom-actions

Revision as of 21:50, 10 September 2023

How do I add entries to PCManFM's right-click menu?

like this:

[MIME Cache]
inode/directory=qiv-usercreated-0.desktop

in ~/.local/share/applications, and a qiv.desktop in the very same folder. For record, for my qiv, this gives me:

[Desktop Entry]
Encoding=UTF-8
Name=Sildeshow (random, recursive)
Exec=qiv -Rrlfstmiu
MimeType=image/jpeg
Icon=exec
NoDisplay=false

Another example:

/home/photos/.local/share/applications/mimeinfo.cache

[MIME Cache]
inode/directory=lazyslideshow-usercreated-0.desktop;qiv-usercreated-0.desktop
application/x-shellscript=sh-usercreated-0.desktop
text/plain=leafpad-usercreated-0.desktop

.desktop files

lazyslideshow-usercreated-0.desktop
qiv-usercreated-0.desktop

2021 PCManFM right click menu and Open As Root

https://forums.raspberrypi.com/viewtopic.php?t=310734

You can start by right clicking an item, then click Open with ..., and choose "Custom Command Line" (instead of the picking from the normal list). Here you have to add an "Application name". Now there will be a file in /home/pi/.local/share/applications

PCManFM can be extended via custom actions

PCManFM can be extended via “custom actions”, which, on the appropriate cases, can be accessed in the context menu of the application. They are quite easy to write, since they follow the Desktop Entry Specification. Custom actions, and the conditions for their applications (e.g. on what files they should be applied, for example) are defined in files with the .desktop extension, placed under the ~/.local/share/file-manager/actions directory.