Remembered session does not show legacy applications
This is a feature request/bug report.
XFCE Version: 4.14
Linux ArcoB 5.9.13-arch1-1 #1 SMP PREEMPT Tue, 08 Dec 2020 12:09:55 +0000 x86_64 GNU/Linux
I notice that whenever I log in to my desktop, it duplicates my conkys on all screens. I usually have conky running on each screen: my laptop and external display. However, when I log in there are 4 instances of conky running - 2 on each screen
➜ pidof conky
4085 3972 3971 3970
I found this to be weird because conky is auto-started with a script which first kills all running conkys and then creates one on each monitor.
killConkys(){
if pidof conky &>/dev/null; then
killall conky && sleep 0.2s
fi
}
I decided to look in the session/startup app, and there is no mention of conky in there:
However, when I looked in $XDG_CACHE_HOME/sessions/
, I found where applications considered part of the session are stored, and it looks like it actually lists conky in there.
[Session: Default]
Client0_ClientId=25c7253a8-6919-44f8-a68c-914cf1159d73
Client0_Hostname=local/ArcoB
Client0_CloneCommand=xfsettingsd
Client0_RestartCommand=xfsettingsd,--replace,--display,:0.0,--sm-client-id,25c7253a8-6919-44f8-a68c-914cf1159d73
Client0_CurrentDirectory=/home/chigozirim
Client0_DesktopFile=/etc/xdg/autostart/xfsettingsd.desktop
Client0_Program=xfsettingsd
Client0_UserId=chigozirim
Client0_Priority=20
Client0_RestartStyleHint=2
...
Client18_ClientId=25987cda8-950e-40af-bb6d-bbfe40d3fa5b
Client18_Hostname=local/ArcoB
Client18_RestartCommand=albert,-session,25987cda8-950e-40af-bb6d-bbfe40d3fa5b_1607587182_576054
Client18_Program=albert
Client18_UserId=chigozirim
Client18_RestartStyleHint=0
Count=19
Legacy0_Screen=0
Legacy0_Command=conky,--xinerama-head=0,--pause=1,--config,/home/chigozirim/.config/conky/AUR-Allinone.conkyrc
Legacy0_ClientMachine=ArcoB
Legacy1_Screen=0
Legacy1_Command=conky,--xinerama-head=1,--pause=1,--config,/home/chigozirim/.config/conky/AUR-Allinone.conkyrc
Legacy1_ClientMachine=ArcoB
Legacy2_Screen=0
Legacy2_Command=evince
Legacy2_ClientMachine=ArcoB
Legacy3_Screen=0
Legacy3_Command=evince
Legacy3_ClientMachine=ArcoB
Legacy4_Screen=0
Legacy4_Command=evince
Legacy4_ClientMachine=ArcoB
LegacyCount=5
Screen0_ActiveWorkspace=5
LastAccess=1607587182
As you can see, the problem is because xfce has made the actual conky
commands used to start conky on each screen, to be part of the session, and I guess these must be starting after my auto-start script runs otherwise they would have been killed.
It's also interesting that other applications which are autostarted (like albert) are also listed in this file. Shouldn't XFCE make a distinction between these? i.e. if the application is going to be autostart anyways, then don't include it in the current session, or don't run the autostart script and just use the one found in the session.
I have 2 questions
- Is there a way to tell xfce to ignore conky so that we can still start it using the AutoStart script?
- Why doesn't the session/startup app show these so-called "Legacy" applications? If they did, that would be a nice way of disabling something like conky from being considered part of the session.
Thanks