Difference between revisions of "Talk:Cinnamon Desktop"
(→PCManFM can be extended via custom actions: new section) |
(→view actual filename of .desktop files: new section) |
||
Line 42: | Line 42: | ||
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. | 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 | * https://linuxconfig.org/how-to-extend-pcmanfm-with-custom-actions | ||
+ | |||
+ | == view actual filename of .desktop files == | ||
+ | |||
+ | Technically, this is about a GLib function, namely g_file_info_get_display_name(). pcmanfm-qt uses GLib (IMO, this is one of its advantages over Dolphin) and inherits the display name, in contrast to the real name, for desktop files. It is possible to use g_file_info_get_name() everywhere. How this can be implemented as an option is another problem. | ||
+ | |||
+ | Using display name somewhere and real name elsewhere isn't an option. | ||
+ | * https://github.com/lxqt/pcmanfm-qt/issues/472 |
Revision as of 18:58, 11 September 2023
Contents
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
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.
view actual filename of .desktop files
Technically, this is about a GLib function, namely g_file_info_get_display_name(). pcmanfm-qt uses GLib (IMO, this is one of its advantages over Dolphin) and inherits the display name, in contrast to the real name, for desktop files. It is possible to use g_file_info_get_name() everywhere. How this can be implemented as an option is another problem.
Using display name somewhere and real name elsewhere isn't an option.