You are not logged in.
Pages: 1
Hello guys.
I've been happily using XFCE for many years now, and found an annoying issue for which
I have no explanation.
At a remote computer, a daemon process is started up using a .desktop file in the
autostart directory. This works fine, but for some reason, erratically, a second (and even
a third) copy is started. How is that possible?
I'm running XFCE 4.12 under Slackware64-current.
John
Offline
Hello and welcome. Sounds like you have some saved sessions restarting.
Try clearing your saved sessions and don't save sessions when you log out/restart/shutdown. You can clear your list of saved sessions in Settings Manager > Session and Startup > Session (or manually by deleting the contents of ~/.cache/session while not logged in).
When shutting down, make sure the checkbox to Save Sessions is unchecked.
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
Hello ToZ!
> Sounds like you have some saved sessions restarting.
I considered that possibility early on, but rejected the idea:
- I have disabled saving sessions on exit
- The duplication of the daemon occurs after a while - sometimes hours after
starting the machine. Suddenly, a new copy of the daemon appears. This
delay is confirmed by the fact that 'ps ax' shows that the daemon was
launched way later than the original daemon.
I have been wondering if the autostart tasks are also started if someone
logs in by SSH and starts a graphical session. I've tried to trigger that, but
didn't see it happening though.
Thanks for the suggestions though, ToZ.
Offline
Interesting.
Which daemons/programs are starting more than once? Are they Xfce programs or others?
Can you provide some more detail about the remote sessions?
- How do you start the remote session? What command?
- Are these remote sessions to the same account? Is someone logged in locally with this account at the same time as well?
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
Well, only one daemon is duplicated. It's a printer server (my own creation) which drives a serial printer which needs special formatting. It gets started from 'autostart'. The only place available - it's not in any menu. All accesses are over TCP, even the local one. All are from accounts with the same account name but might have a different user ID. The only other task in the 'autostart' folder is the nm-applet which doesn't duplicate.
I seem to have solved the problem by running the server process from a small script (still called from autostart) initiating the server under 'flock', and no new dupes were detected yet. I should should have added a logger for startup calls. I haven't had time yet.
Last edited by jcoppens (2018-06-13 14:50:55)
Offline
Pages: 1
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 535.06 KiB (Peak: 535.91 KiB) ]