Talk:Cinnamon Desktop

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search

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.

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.

Customizing the Cinnamon Main Menu

3 configuration files/folders:

  1. 1. /home/<user>/.local/share/applications -- This directory contains the .desktop files for the custom app icons displayed in the Main Menu.
  1. 2. /home/<user>/.local/share/desktop-directories -- This directory contains the files for the folders (default and custom) displayed in the Main Menu.
  1. 3. /home/<user>/.config/menus/cinnamon-applications.menu -- This is the main configuration file that organizes the display of the Main Menu and refers to the 2 preceding directories and their files.

Keyboard repeat problem at high CPU

Modern Linux desktop environments (Cinnamon in Mint) queue keystrokes. When the GUI thread can't process them fast enough (your CPU is busy decoding VP9/AV1 in the browser), the queue fills → you get aaaaaaaaa instead of dropped keys like in the old days.

Quick fixes that may help work:

  1. Force hardware acceleration in the browser, Firefox: about:config → layers.acceleration.force-enabled = true and Chromium/Edge: launch with --enable-gpu --ignore-gpu-blocklist --enable-features=Vulkan
  2. Use a VAAPI/V4L2 codec in the video player - On Rumble, right-click video → Stats for nerds → switch codec to avc1 or vp8/vp9 with "h264ify" or "Enhancer for YouTube" extension forced to H.264.
  3. Switch Cinnamon to software rendering temporarily (drops the load)

Alt+F2 → type "r" to restart Cinnamon, or run cinnamon --replace --software-rendering

Kill browser GPU process when it happens

System Monitor → find firefox/chrome GPU process → End it (video stutters but typing instantly returns to normal).

Old behavior (drop keys) is gone forever in X11/Wayland for "accessibility reasons". You have to keep CPU/GPU from maxing out instead.

Run this single command to completely disable key repeat for every key at once: xset r off That’s it. No more repeated letters, ever, no matter how bogged down the system gets. Keystrokes will now just drop like in the old days.

To turn repeat back on later:

xset r on

(works instantly on Linux Mint Cinnamon X11, no logout needed)

Disable for letters and numbers only (a-z A-Z 0-9)

for n in {24..33} {38..46} {52..58} {10..19}; do xset -r $n; done