Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-09-21 09:44:52

phpony
Member
Registered: 2024-09-21
Posts: 4

qt app (vlc) from thunar is launched unstyled after screen lock

  • Debian Trixie/Sid 6.10.6-1 x86_64

  • Xfce 4.18

  • Thunar 4.18.11

  • lightdm 1.32.0 + lightdm-gtk-greeter 2.0.9

  • VLC media player 3.0.21 Vetinari

  • qt5ct & qt6ct with gtk2 style set

  • xfconf-query -c xfce4-session -p /general/LockCommand => dm-tool lock


Whenever I launch VLC from xfce-panel it always is styled with gtk2 theme. When I launch VLC from xfce-terminal it always is styled with gtk2 theme. Just after first boot or system reboot clicking on video files in Thunar opens VLC that is styled with gtk2 theme. After I do xflock4 and then unlock my desktop after few hours, whenever I click on video file in Thunar it opens VLC that is unstyled. If I do "thunar -q" and then re-open Thunar and open any video from it VLC is styled again.

What should I check? Looks like Thunar is loosing environment settings and not passing them to apps after screen lock?

Last edited by phpony (2024-09-21 09:52:51)

Offline

#2 2024-09-21 12:27:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: qt app (vlc) from thunar is launched unstyled after screen lock

Hello and welcome. This is an odd problem.

Are you running thunar in Deamon mode or standalone?

Can you try the following? On a fresh login, open a thunar window then run the following commands:

ps -ef | grep -i Thunar
xargs -0 -L1 -a /proc/$(pidof Thunar)/environ
xargs -0 -L1 -a /proc/$(pidof thunar)/environ

Now click on a video file - this should open properly styled.

Now lock and unlock your desktop.

Run the following commands again:

ps -ef | grep -i Thunar
xargs -0 -L1 -a /proc/$(pidof Thunar)/environ
xargs -0 -L1 -a /proc/$(pidof thunar)/environ

Try clicking on a video again - it should be unstyled.

Execute:

thunar -q
thunar

Run those commands again:

ps -ef | grep -i Thunar
xargs -0 -L1 -a /proc/$(pidof Thunar)/environ
xargs -0 -L1 -a /proc/$(pidof thunar)/environ

Click on a video file - it should be styled again.

Can you post back the outputs of the commands above as well as the contents of your ~/.xsession-errors log file?


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 2024-09-25 14:27:27

phpony
Member
Registered: 2024-09-21
Posts: 4

Re: qt app (vlc) from thunar is launched unstyled after screen lock

Thank you for the info!

With your advice I've managed to isolate the problem and it starts not with screen lock but with Firefox which I often use before locking the screen! Whenever I click "Show in folder" in "Downloads" interface of Firefox it spawns the Thunar daemon with weird environment vars.

1. After boot there's no Thunar.

2. After clicking on Thunar icon in xfce-panel I have:

/usr/bin/thunar

3. Clicking "Show in folder" in Firefox's Downloads when Thunar is active it just spawns new thunar window.

4. Clicking "Show in folder" in Firefox's Downloads when Thunar is closed spawns daemon that resides and from now on everything qt is unstyled:

/usr/bin/Thunar --daemon

5. After thunar -q and clicking on Thunar icon in xfce-panel I'm back to "non-dameon lowercase" Thunar and qt apps are styled again:

/usr/bin/thunar

/usr/bin/thunar has this in evnironment:

QT_QPA_PLATFORMTHEME=qt5ct

/usr/bin/Thunar --daemon started from Firefox does not have this.

The Firefox itself has QT_QPA_PLATFORMTHEME=qt5ct in it's environment vars. So something is wrong with the way the Firefox launches the Thunar.

Last edited by phpony (2024-09-25 14:32:12)

Offline

#4 2024-09-25 14:35:05

phpony
Member
Registered: 2024-09-21
Posts: 4

Re: qt app (vlc) from thunar is launched unstyled after screen lock

Apparently it's because Firefox uses dbus to launch the file manager:

https://bugzilla.mozilla.org/show_bug.c … 285711#c21

Offline

#5 2024-09-25 14:49:30

phpony
Member
Registered: 2024-09-21
Posts: 4

Re: qt app (vlc) from thunar is launched unstyled after screen lock

This topic is directly related and has the solution: https://forum.xfce.org/viewtopic.php?id=9776

Last edited by phpony (2024-09-25 14:49:47)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 536.01 KiB (Peak: 536.85 KiB) ]