Why is user-level context menu extension not supported in ~/.local/share/... #12001
Replies: 2 comments 4 replies
-
Haven't look at the file manager source code for a while. My blind guess is that this folder is only for OEM purpose instead of for user customization. Might need to look into the source code and asking the file manager team to know if it's by design or simply missed. Will check it next week :) |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply! I’ve taken a closer look at the file manager source code. In oemmenu.cpp (dde-file-manager-6.0.58/src/plugins/common/core/dfmplugin-menu/oemmenuscene/oemmenu.cpp), I noticed that the supported search paths for .desktop right-click menu entries are hardcoded as follows:
It seems that user-level directories like ~/.local/share/deepin/dde-file-manager/oem-menuextensions/ are currently not supported. My use case is to provide right-click menu extensions for specific users only (not system-wide). According to the documentation here: Looking forward to your feedback or any updates on this! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello developers,
I noticed that the DDE file manager currently only loads context menu extensions from the system-level directory:
/usr/share/deepin/dde-file-manager/oem-menuextensions/
This means .desktop files placed under a user-level directory like:
~/.local/share/deepin/dde-file-manager/oem-menuextensions/
are not recognized at all, even though XDG directory standards would suggest user-level customizations should take precedence.
This behavior leads to a problem:
When an application installs a right-click menu entry globally, all users can see it, which may not match product design requirements, especially when different users share the same system but require different environments or configurations.
🧐 Question:
1, Is there a design reason for not supporting user-level .desktop extensions?
2, Is there a workaround or plan to allow per-user context menu entries?
Thanks for your great work!
Beta Was this translation helpful? Give feedback.
All reactions