Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-06-08 14:47:54

jcoppens
Member
Registered: 2017-11-18
Posts: 3

Duplicate execution of files in Autorun

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

#2 2018-06-08 18:03:50

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,761

Re: Duplicate execution of files in Autorun

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.

Offline

#3 2018-06-09 14:54:10

jcoppens
Member
Registered: 2017-11-18
Posts: 3

Re: Duplicate execution of files in Autorun

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

#4 2018-06-09 17:47:47

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,761

Re: Duplicate execution of files in Autorun

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?

Offline

#5 2018-06-13 14:07:02

jcoppens
Member
Registered: 2017-11-18
Posts: 3

Re: Duplicate execution of files in Autorun

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

Board footer

Powered by FluxBB