Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-02-07 16:50:54

xfceforumorg1220
Member
Registered: 2012-03-26
Posts: 26

What is the correct way to restart Thunar?

What is the correct way to restart Thunar?

The command I used to view the process tree is: pstree -aps $(pgrep -i thunar).

When I first logon the process tree looks like:

systemd, 1
..lightdm,397
....lightdm,2356 -- session-child
......xfce4-session,2370
........Thunar,2433 --sm-client-id #...# --daemon

When I restart Thunar via, "thunar --daemon &", the process tree for thunar looks like:

systemd, 1
..lightdm,397
....lightdm,2356 -- session-child
......xfce4-session,2370
........xfce4-terminal,2453
..........bash,2488
............thunar,2533 --daemon

When I close the terminal, it hangs a little longer than usual, and the process tree for thunar looks like:

systemd, 1
..thunar,2533 --daemon

How do I restart Thunar so it is a child of xfce4-session again, like when I first logged on? Should I be using systemd or dbus? Do I need to tell xfce4-session's to restart it? I've googled and tried to read the code, but I'm still stumped. Thank you.

Last edited by xfceforumorg1220 (2021-02-07 16:56:32)

Offline

#2 2021-02-07 21:13:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: What is the correct way to restart Thunar?

How do I restart Thunar so it is a child of xfce4-session again

Interesting. Quite the rabbit hole looking at this one. I can't find a way to have it restart as a child of xfce4-session either.

I would suggest creating a bug report first against thunar to see if the developer has some suggestions/ideas.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2021-02-07 21:56:28

xfceforumorg1220
Member
Registered: 2012-03-26
Posts: 26

Re: What is the correct way to restart Thunar?

I was wondering about that... :-) so a bug report verses a mailing list?

My next question was going to be how do you get Thunar to reload its' configuration files (i.e., uca.xml). I sent a HUP signal and Thunar just quit, thus the whole how do you restart Thunar so it is a child process of xfce4-session again.

Offline

#4 2021-02-07 22:04:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: What is the correct way to restart Thunar?

xfceforumorg1220 wrote:

I was wondering about that... :-) so a bug report verses a mailing list?

The thunar developer is quite active. He might be able to point you in the right direction.

My next question was going to be how do you get Thunar to reload its' configuration files (i.e., uca.xml). I sent a HUP signal and Thunar just quit, thus the whole how do you restart Thunar so it is a child process of xfce4-session again.

Those (uca) should be reloaded automatically when you make a change. Is this not happening for you? Which distro and which version of thunar?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2021-02-07 22:59:35

xfceforumorg1220
Member
Registered: 2012-03-26
Posts: 26

Re: What is the correct way to restart Thunar?

ToZ wrote:

Those (uca) should be reloaded automatically when you make a change. Is this not happening for you? Which distro and which version of thunar?

No.
Manjaro
thunar 4.16.2 (Xfce 4.16)

I created my first custom action in uca.xml. I closed and reopened Thunar and the custom action was not there. The custom action only showed up in the right click context menu after I restarted Thunar.

kill -HUP $(pgrep -i thunar)
thunar --daemon &

Offline

#6 2021-02-08 01:17:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: What is the correct way to restart Thunar?

xfceforumorg1220 wrote:

[
I created my first custom action in uca.xml.

Oh, you are manually editing the file. That file is probably processed when thunar starts and written to on shutdown. The GUI method via Edit > Configure Custom Actions will have them appear right away.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB