Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#75654 - Thunar configure custom actions as normal user
Attached to Project:
Arch Linux
Opened by Vissaris (visious5d) - Friday, 19 August 2022, 17:49 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 19 August 2022, 20:45 GMT
Opened by Vissaris (visious5d) - Friday, 19 August 2022, 17:49 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 19 August 2022, 20:45 GMT
|
DetailsHi, I have a question for you.
I have run these two commands in terminal and working well sudo dbus-launch mousepad /etc/pacman.conf sudo notepadqq --allow-root /etc/pacman.conf I have tried to add these two commands in thunar configure custom actions thunar > Edit > Configure custom actions Click on the + sign to open a new child window In the tab titled: Basic Name: Open as Root Mousepad Description: Simple Text Editor Command: pkexec dbus-launch mousepad %f In the tab titled: Appearance Conditions File Pattern: * Appears if selection contains: Directories : uncheck Audio Files : uncheck Image Files : uncheck Text Files : check Video Files : uncheck Other Files : check AND Click on the + sign to open a new child window In the tab titled: Basic Name: Open as Root Notepadqq Description: Edit source code files Command: pkexec notepadqq --allow-root %f In the tab titled: Appearance Conditions File Pattern: * Appears if selection contains: Directories : uncheck Audio Files : uncheck Image Files : uncheck Text Files : check Video Files : uncheck Other Files : check And not working at all. So I did this trick. I have opened thunar as root and added these two commands and working well. Command: exec dbus-launch mousepad %f And Command: exec notepadqq --allow-root %f Now I'm asking you. Is this a bug because I can't configure custom actions as normal user? |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Friday, 19 August 2022, 20:45 GMT
Reason for closing: Not a bug
Friday, 19 August 2022, 20:45 GMT
Reason for closing: Not a bug
The above policy enables "org.freedesktop.policykit.exec.allow_gui" which makes it retain the $DISPLAY and $XAUTHORITY environment variables.
I don't see an issue with Thunar's actions; if it works with pkexec from a non-root terminal, it should work as a custom command in Thunar too. For editing the odd file as root, Mousepad should suffice.