Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plasma/KDE starts unwanted applications on start [Solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Sun Jan 08, 2023 8:31 pm    Post subject: Plasma/KDE starts unwanted applications on start [Solved] Reply with quote

Hi!
The issue is that whenever I start Plasma/KDE it opens another instance of Konqueror, Krusader even Dolphin. The really annoying thing is that each time there is more instances if possible. So fore example there are more krusadres (or more tabs with home directory in krusader).
A little help comes when I delete by hand records from ~/.config/xsessions but this only makes things start over.
Can you point me to where to look for solution so Plasma won't open apps that were closed before closing Plasma?
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"


Last edited by m.s.w on Fri Jan 13, 2023 8:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Sun Jan 08, 2023 9:43 pm    Post subject: Reply with quote

Use the "Desktop Session" section in the systemssettings5 and make sure that's correct.
The other thing to check is /etc/xdg/autostart/ :Anything in there, that you don't want to autostart that is, copy the .desktop file to ~/.config/autostart/ and append Hidden=true to the end of the file.
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Mon Jan 09, 2023 7:14 pm    Post subject: Reply with quote

Ralphred, thank you for your advice.

In Desktop Session settings I have set "Restore last session" because this is what I want to have. So when I leave open something at shutdown I want it to be opened next time I log in.
But if something is closed before shutdown I don't want it to be started next time I log in. This is how I understand this setting. Am I wrong?

I review the content of a /etc/xdg/autostart and there is no entry with the apps that are starting unwillingly (konqueror, krusader)

I think I do not know whchi .desktop file you are talking about. I have none in ~ nor in ~/.config
In ~/.config/autostart I have only one entry that I added in Plasma and I do want it to be started on Plasma start (it is flameshot)

So still I don't know how to solve it, unless it is necessary to give up on "Restore last session".
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Mon Jan 09, 2023 10:04 pm    Post subject: Reply with quote

m.s.w wrote:
This is how I understand this setting. Am I wrong?

That's how I understand it too, but don't use it so...

You mentioned ~/.config/xsessions. Can you post the contents, log out with no windows/programs running, log back in and post the contents again?
Back to top
View user's profile Send private message
rab0171610
Apprentice
Apprentice


Joined: 24 Dec 2022
Posts: 299

PostPosted: Tue Jan 10, 2023 5:54 am    Post subject: Reply with quote

You can also create a comma (,) or colon (:) delimited list of applications that you do not want to start with a restored session. System Settings>Startup and Shutdown>Desktop Session. Click the radio button for Restore Last Session and then enter your list in the box titled "Don't restore these applications" and then click Apply. For example, the list should be something like "konqueror:dolphin:krusader" or "konqueror,dolphin,krusader".
Otherwise, if that is not an acceptable solution, you could eliminate the possibility that the affected apps are not shut down cleanly when you log out from your KDE Plasma session. If not, they would be started automatically when you login again if they are still running in the background at logout. You could you use top, a gui task manager, or, just as an example:
Code:
ps -aux | grep dolphin

I would at least eliminate that as a possible cause of the issue.
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Wed Jan 11, 2023 6:32 pm    Post subject: Reply with quote

Ralphred wrote:


You mentioned ~/.config/xsessions. Can you post the contents, log out with no windows/programs running, log back in and post the contents again?


To be accurate it is ~/.config/session and it is a directory. And the content is:

Code:

maniek@mkm-box ~ $ ls -l .config/session/
razem 11
-rw------- 1 maniek maniek  462 01-09 21:53  dolphin_dolphin_dolphin
-rw------- 1 maniek maniek 2095 01-11 19:24  konqueror_10cfdae52d000167329137200000028280011_1673297989_116095
-rw------- 1 maniek maniek  555 01-08 19:48  krusader_10cfdae52d000167303425600000029210009_1673203729_927857
-rw------- 1 maniek maniek 2929 01-09 21:59 'kwin_saved at previous logout_'
-rw------- 1 maniek maniek  669 10-02 20:45  kwrite_10cfdae52d000166464177400000027230008_1664736349_678890
-rw------- 1 maniek maniek  363 11-06 16:54  systemsettings_10cfdae52d000166750182800000026740007_1667750061_441473
-rw------- 1 maniek maniek  283 11-07 19:45  systemsettings_10cfdae52d000166750182800000026740007_1667846730_347760


I am not 100% sure if I am right about relation of content of this directory to restoring the app on startup. Today, with the above content of the ~/.config/session directory the only apps restored on startup was Firefox (which is expected, because I didn't closed it on shutdown) and Konqueror (which is unexpected because it wasn't running on shutdown). Krusader wasn't restored as well. So it looks that this directory content is irrelevant.
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Wed Jan 11, 2023 6:40 pm    Post subject: Reply with quote

rab0171610 wrote:
You could you use top, a gui task manager, or, just as an example:
Code:
ps -aux | grep dolphin

I would at least eliminate that as a possible cause of the issue.


Well, I think this is it.

With no Krusader nor Konqueror running I get this:

Code:

maniek@mkm-box ~ $ ps -aux |grep konqueror
maniek    3072  0.0  0.3 276628 53060 ?        S    19:24   0:00 /usr/lib64/qt5/libexec/QtWebEngineProcess --type=zygote --no-zygote-sandbox --application-name=konqueror --webengine-schemes=error:lL;konq:lL;tar:lL;help:lL;man:lL;ghelp:lL;info:lL;about:lL;qrc:sLV --lang=pl
maniek    3077  0.0  0.3 276628 53124 ?        S    19:24   0:00 /usr/lib64/qt5/libexec/QtWebEngineProcess --type=zygote --application-name=konqueror --webengine-schemes=error:lL;konq:lL;tar:lL;help:lL;man:lL;ghelp:lL;info:lL;about:lL;qrc:sLV --lang=pl
maniek    3079  0.0  0.0 276628 11796 ?        S    19:24   0:00 /usr/lib64/qt5/libexec/QtWebEngineProcess --type=zygote --application-name=konqueror --webengine-schemes=error:lL;konq:lL;tar:lL;help:lL;man:lL;ghelp:lL;info:lL;about:lL;qrc:sLV --lang=pl
maniek    3426  0.0  1.2 2320360 203112 ?      Sl   19:24   0:00 /usr/bin/konqueror --preload
maniek    3433  0.0  0.3 276628 53948 ?        S    19:24   0:00 /usr/lib64/qt5/libexec/QtWebEngineProcess --type=zygote --no-zygote-sandbox --application-name=konqueror --webengine-schemes=error:lL;konq:lL;tar:lL;about:lL;help:lL;man:lL;ghelp:lL;info:lL;qrc:sLV --lang=pl
maniek    3434  0.0  0.3 276628 53744 ?        S    19:24   0:00 /usr/lib64/qt5/libexec/QtWebEngineProcess --type=zygote --application-name=konqueror --webengine-schemes=error:lL;konq:lL;tar:lL;about:lL;help:lL;man:lL;ghelp:lL;info:lL;qrc:sLV --lang=pl
maniek    3436  0.0  0.0 276628 11796 ?        S    19:24   0:00 /usr/lib64/qt5/libexec/QtWebEngineProcess --type=zygote --application-name=konqueror --webengine-schemes=error:lL;konq:lL;tar:lL;about:lL;help:lL;man:lL;ghelp:lL;info:lL;qrc:sLV --lang=pl
maniek    3646  0.0  0.0   9448  2192 pts/1    S+   19:36   0:00 grep --colour=auto konqueror


I have no idea what is it. Should I kill all the processes? Is it something that Konqueror left behind or do you thing it is made by some other app?
Is there a way to investigate it?
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
rab0171610
Apprentice
Apprentice


Joined: 24 Dec 2022
Posts: 299

PostPosted: Wed Jan 11, 2023 7:44 pm    Post subject: Reply with quote

For now, the konqueror issue is a bug with session management improperly restoring the app on startup. It looks like the devs patched it and will be reflected in the 22.12 version, which is available on gentoo but is currently in unstable. See:
https://bugs.kde.org/show_bug.cgi?id=450624
https://packages.gentoo.org/packages/kde-apps/konqueror
You could try the dev's (Stefano Crocco, comment 9) solution from the bug report in the current versions which are affected:
Quote:
In the meanwhile, a workaround for this behavior is to go to Konqueror settings dialog and disable the "Preload instance after desktop startup" option in the "KDE performance" tab. After that, kill all the Konqueror instances with a `killall konqueror` from the command line.
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 190
Location: Kraków, Poland

PostPosted: Fri Jan 13, 2023 8:03 pm    Post subject: Reply with quote

Thank you all.
This solves the problem
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum