Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-07 16:13:48

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

[SOLVED] Starting XFCE opens the same applications several times

Hello to all of you.
When XFCE opens, Cairo-clock opens 3 times, Conky opens 4 times, GCstar opens 2 times, Leafpad opens 3 times. Thunar opens 1 time on my home directory while 2 different directories were open at shutdown.
Can someone help me to solve this problem?
Thank you.

Last edited by ignace72 (2022-10-08 17:27:44)


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#2 2022-10-07 16:48:16

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Hello and welcome.

You need to clear your saved session cache (delete the contents of ~/.cache/session while not logged into Xfce - log out and then Ctrl+Alt+F2)

...and if you don't want session saving, you should disable it (uncheck “Automatically save session on logout” in Settings Manager → Sessions and Startup, General tab).

If that doesn't solve the problem, review your autostart applications (Settings Manager → Sessions and Startup, Application Autostart tab) and make sure there isn't anything you don't want autostarting.


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 2022-10-07 17:36:12

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Good evening, ToZ.
Thank you for your reply.
I have followed your instructions but there is little change.
The only change is that Thunar opens the previously opened directories.
Jdownloader still does not open automatically and I still have programs that open in several times.
I have looked at Application Autostart tab and it does match the session I want but it is not applied when the session starts.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#4 2022-10-08 00:23:05

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Can you post back the output of the following commands:

xfce4-about -V
ls -l ~/.cache/sessions
ls ~/.config/autostart
whoami
ps -ef | grep xfsettingsd
xfconf-query -c xfce4-session -lv

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 2022-10-08 00:32:01

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Here it i:

xfce4-about -V
ls -l ~/.cache/sessions
ls ~/.config/autostart
whoami
ps -ef | grep xfsettingsd
xfconf-query -c xfce4-session -lv
xfce4-about 4.16.1 (Xfce 4.16)

Copyright (c) 2008-2019
	L’équipe de développement Xfce. Tous droits réservés.

Veuillez signaler les bogues à <https://gitlab.xfce.org/xfce/libxfce4ui/-/issues>.
total 28
drwx------ 2 ignace ignace 4096  7 oct.  19:19 thumbs-ignace-pc:0
-rw-r--r-- 1 ignace ignace  180  7 oct.  19:23 Thunar-2d2f16fba-3284-478a-a3ba-e1ae1008db59
-rw-r--r-- 1 ignace ignace 5428  7 oct.  19:23 xfce4-session-ignace-pc:0
-rw-r--r-- 1 ignace ignace 4796  7 oct.  19:19 xfce4-session-ignace-pc:0.bak
-rw-r--r-- 1 ignace ignace 2869  7 oct.  19:23 xfwm4-2b3c9e9e1-afe8-47d3-a791-b93e4dc4558a.state
 blueman.desktop
'Cairo Clock.desktop'
 Conky.desktop
 druide-agent-connectix-11-lancement-session.desktop
 GCstar.desktop
 geoclue-demo-agent.desktop
 hp-systray.desktop
'JDownloader 2-0.desktop'
 KNutClient.desktop
 leafpad.desktop
 light-locker.desktop
 meteo-qt.desktop
 msm_notifier.desktop
 nm-applet.desktop
 org.gnome.Evolution-alarm-notify.desktop
 org.kde.kalendarac.desktop
 org.kde.kdeconnect.daemon.desktop
 org.kde.kgpg.desktop
 org.keepassxc.KeePassXC.desktop
 pamac-tray-budgie.desktop
 pamac-tray.desktop
 pam_kwallet_init.desktop
 pasystray.desktop
 pia-client.desktop
 pulseaudio.desktop
 QuiteRSS.desktop
 remmina-applet.desktop
 restore_kmix_volumes.desktop
 snapshot-detect.desktop
 snap-userd-autostart.desktop
 Thunderbird.desktop
 tracker-miner-fs-3.desktop
 tracker-miner-rss-3.desktop
 user-dirs-update-gtk.desktop
 vboxclient.desktop
 xapp-sn-watcher.desktop
 xfce4-clipman-plugin-autostart.desktop
 xfce4-notes-autostart.desktop
 xfce4-notifyd.desktop
 xfce4-power-manager.desktop
 xfce4-settings-helper-autostart.desktop
 xfce4-tips-autostart.desktop
 xfce-panel-workaround.desktop
 xfce-pbw.sh
 xfce-polkit-gnome-authentication-agent-1.desktop
 xfconf-migration-4.6.desktop
 xfsettingsd.desktop
 xiccd.desktop
 z-displaycal-apply-profiles.desktop
ignace
ignace   3834549       1  0 oct.07 ?       00:00:14 xfsettingsd --replace
ignace   4135928 4135821  0 02:25 pts/1    00:00:00 grep xfsettingsd
/general/AutoSave                     true
/general/FailsafeSessionName          Failsafe
/general/LockCommand                  
/general/SaveOnExit                   true
/general/SessionName                  Default
/security/EnableTcp                   true
/sessions/Failsafe/Client0_Command    <<UNSUPPORTED>>
/sessions/Failsafe/Client0_PerScreen  false
/sessions/Failsafe/Client0_Priority   15
/sessions/Failsafe/Client1_Command    <<UNSUPPORTED>>
/sessions/Failsafe/Client1_PerScreen  false
/sessions/Failsafe/Client1_Priority   20
/sessions/Failsafe/Client2_Command    <<UNSUPPORTED>>
/sessions/Failsafe/Client2_PerScreen  false
/sessions/Failsafe/Client2_Priority   25
/sessions/Failsafe/Client3_Command    <<UNSUPPORTED>>
/sessions/Failsafe/Client3_PerScreen  false
/sessions/Failsafe/Client3_Priority   30
/sessions/Failsafe/Client4_Command    <<UNSUPPORTED>>
/sessions/Failsafe/Client4_PerScreen  false
/sessions/Failsafe/Client4_Priority   35
/sessions/Failsafe/Count              5
/sessions/Failsafe/IsFailsafe         true
/shutdown/LockScreen                  false

Thanks to you.
If it helps, I am under Manjaro Linux stable.

Last edited by ignace72 (2022-10-08 00:46:35)


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#6 2022-10-08 01:43:17

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Lets try the following:

  1. Shutdown all your running applications

  2. Go to Settings Manager > Session and Startup > Application Autostart, and confirm that the applications you want to autostart are clicked. Note that you have quite the list there

  3. Go to Settings Manager > Session and Startup, and on the General tab, uncheck "Automatically save session on logout"

  4. Using your file manager or a terminal window, delete the contents of ~/.cache/sessions

  5. Run the following command to reboot your system:

    xfce4-session-logout -r

When you log in again, lets see what applications autostart and report back.


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

#7 2022-10-08 02:07:01

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Well, it's coming along.
No windows are duplicated.
I'm missing two Thunar windows on two different directories.
I'm also missing the JDownloader window and an XFCE terminal window.

Last edited by ignace72 (2022-10-08 02:09:58)


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#8 2022-10-08 02:19:11

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

Re: [SOLVED] Starting XFCE opens the same applications several times

ignace72 wrote:

Well, it's coming along.
No windows are duplicated.

It was the "Automatically Save Session" setting that was tripping you up.

I'm missing two Thunar windows on two different directories.
I'm also missing the JDownloader window and an XFCE terminal window.

There are two options here:

  1. Create 2 new Application Startup entries that start Thunar and point to the right directory. For example "thunar ~/Pictures" and "thunar ~/Music".

  2. Start the Thunar windows and point them to the right directory. Go to Settings Manager > Session and Startup > Current Session. Make sure only the correct apps that you want restarted are listed there (I'm not sure if JDownloader will show up here. Click on "Save Session"

IF JDownloader doesn't automatically start up on restart, can you post back the contents of the file ~/.config/autostart/JDownloader 2-0.desktop?


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

#9 2022-10-08 02:39:50

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

I just made the changes.
JDownloader is not displayed in current session.
Here is the content of the JDownloader 2-0.desktop file:

[Desktop Entry]
Type=Application
Name=JDownloader 2
Exec=/bin/sh "/home/ignace/Downloads/JD2/jd2/JDownloader2"
Icon=/home/ignace/Downloads/JD2/jd2/.install4j/JDownloader2.png
Categories=Network;Application;
Hidden=false
RunHook=0

Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#10 2022-10-08 02:55:29

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Does running this command in a terminal window start JDownloader?

/bin/sh "/home/ignace/Downloads/JD2/jd2/JDownloader2"

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

#11 2022-10-08 03:10:22

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Well, it was the path that was wrong.
I copied the launcher from the XFCE menu and now it's ok, everything works.
Thanks to you.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#12 2022-10-08 04:39:15

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

I just restarted and I still find myself with programs that are launched several times.
The two Thunar are duplicated.
Cairo-clock is launched three times like Conky.
GCstar is in duplicate.
KNutClient is also launched three times.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#13 2022-10-08 11:15:59

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

Re: [SOLVED] Starting XFCE opens the same applications several times

What is the output of:

xfconf-query -c xfce4-session -p /general/AutoSave

From post #8, which of the two options did you choose?

How do you logout/restart/shutdown? Which menu item dod you choose from which application?

Last edited by ToZ (2022-10-08 11:16:48)


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

#14 2022-10-08 12:39:51

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

xfconf-query -c xfce4-session -p /general/AutoSave
false

From message 8, I chose to use two startup applications from Thunar with corresponding directories.
In the Applications Menu, I use Disconnect and I use either: Disconnect, Reboot or Shutdown.
I'm not sure I understand your last question: Which menu item do you choose from which application?
I use the Application Menu items and click and drop them into my /home/ignace/.config/autostart/ directory.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#15 2022-10-08 13:51:23

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Sorry, I meant when you log off. Depending on the method you use, there may be a "Save session for future logins" option. If it does exist, make sure its 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

#16 2022-10-08 14:22:34

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Thanks, I understand better.
I always use the same method to log out, shut down or restart.
Applications menu => Logout =>
Logout or Restart or Shutdown.
I don't use the physical button or special key on the keyboard or keyboard shortcuts.
There is no option. The action is done immediately.

I am surprised that there is no XFCE configuration file to manage the programs to launch at startup.
I miss the time when we always went through configuration files (even to create a custom application menu). It was longer but there were no surprises.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#17 2022-10-08 14:57:51

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] Starting XFCE opens the same applications several times


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#18 2022-10-08 15:08:06

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Good evening, KBar.
My configuration seems to be in accordance with what is said in the link.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#19 2022-10-08 15:45:10

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

Re: [SOLVED] Starting XFCE opens the same applications several times

ignace72 wrote:

Thanks, I understand better.
I always use the same method to log out, shut down or restart.
Applications menu => Logout =>
Logout or Restart or Shutdown.
I don't use the physical button or special key on the keyboard or keyboard shortcuts.
There is no option. The action is done immediately.

You don't see something like this (Save session for future logins checkbox):
logout.png


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

#20 2022-10-08 16:09:39

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Sorry, I couldn't see the beam in my eye.
Indeed, there is this option.
deconnexion.webp
I tried twice after checking that the option was unchecked and when I reconnect, I always have software that opens several times.
Up to four times for GCstar and Cairo-clock.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#21 2022-10-08 16:16:30

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Repeat the actions from post #8, and whenever you log out, uncheck the option at the bottom (it should remember your previous choice).


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

#22 2022-10-08 16:34:30

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

Indeed, the check mark is now always unchecked but I always have the programs in multiple versions at the reconnection.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

#23 2022-10-08 16:54:08

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

Re: [SOLVED] Starting XFCE opens the same applications several times

Lets try this instead. Reboot and before you log into Xfce, got to a virtual terminal (Ctrl+Alt+F2) and log in to the text session.

Once there, go to ~/.cache/sessions and delete everything in the directory. Then:

sudo chattr +i ~/.cache/sessions

...this set folder as immutable - can't be written to.

Then go back to your graphical login screen and log in again to see what happens.

After your logged in, post back the output of:

ls ~/.cache/sessions

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

#24 2022-10-08 17:26:27

ignace72
Member
From: France
Registered: 2022-10-07
Posts: 19
Website

Re: [SOLVED] Starting XFCE opens the same applications several times

It works. I don't have multiple windows anymore.
I lost my terminal but I created a launcher to open one in the right directory.
Thanks a lot to both of you.


Desktop PC
AMD Ryzen 3 1200 Quad-Core, 32 GB DDR4 Ram, Radeon HD 7750 fanless.
Manjaro stable XFce

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 657.38 KiB (Peak: 690.22 KiB) ]