Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-02-18 05:36:50

D.dave
Member
Registered: 2019-12-06
Posts: 92
LinuxFirefox 135.0

[SOLVED] Custom action which works only on Desktop and not in Thunar

In Thunar, I made a custom action to set root as owner of the files which I want them set to root owner; this is the custom action:

pkexec /usr/bin/chown root %f

If I made a file on Desktop and I run the custom action, works as expected (pkexec asks me to type the password); if I execute this custom action inside Thunar, nothing happens.
Why?

EDIT:
In the meantime I made a bash script which I added to sudoers file, and I prefix the script with sudo instead of pkexec, but remains the fact that pkexec won't execute inside Thunar, while on the Desktop is ok.

Last edited by D.dave (2025-02-19 09:27:17)


OS: Manjaro x86_64
DE: Xfce 4.20

Offline

#2 2025-02-18 11:34:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,816
LinuxFirefox 135.0

Re: [SOLVED] Custom action which works only on Desktop and not in Thunar

What version of thunar? It works for me with 4.20.

Also look at ~/.xsession-errors (if you have the file) and journalctl for any error messages when you try to run it with thunar.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2025-02-18 13:25:58

D.dave
Member
Registered: 2019-12-06
Posts: 92
LinuxFirefox 135.0

Re: [SOLVED] Custom action which works only on Desktop and not in Thunar

Hi ToZ, I'm on Thunar 4.20.2.
However: I did a logout/login and now works as expected.

Thank you anyway for the attempt to help me.


OS: Manjaro x86_64
DE: Xfce 4.20

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 521.48 KiB (Peak: 522.33 KiB) ]