Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was trying to learn GUI programming with Qt and wrote a simple program, something of "Hello World" level. It builds and runs fine. But on some step of that building and running process it somehow got into autostarts, several times. Now when I'm booting into KDE I see several instances of that program's window on the desktop.
So, my question is, where is "autostart" in KDE (my system is SuSE 10, if it matters), and how can I remove that program from there?
I was trying to learn GUI programming with Qt and wrote a simple program, something of "Hello World" level. It builds and runs fine. But on some step of that building and running process it somehow got into autostarts, several times. Now when I'm booting into KDE I see several instances of that program's window on the desktop.
So, my question is, where is "autostart" in KDE (my system is SuSE 10, if it matters), and how can I remove that program from there?
K Menu > System Settings > KDE Components OR User account under the personal tab. Play with those settings... I believe one of the settings allows you to forget the previous session (it is under the session manager in KDE components menu) and load a fresh one each time you log on. That should remove any program from the previous time you logged in. Try it and let us know if it works.
K Menu > System Settings > KDE Components OR User account under the personal tab. Play with those settings...
There are neither, to start with. Am I even in KDE? I think I am, but found no way to check it
Now then, there is a program called "Conctol Center" in the Menu, which seems to be what you are talking about. There is a "Sessin Manager", and there are three choices: "Restore previous session" (selected), "Restore manually saved session" and "Start with an empty session". Is your advice to try the last one?
Ok, I've tried that, and indead those programs have desappeared. But what's the concept behind this behavior?
There are neither, to start with. Am I even in KDE? I think I am, but found no way to check it
Now then, there is a program called "Conctol Center" in the Menu, which seems to be what you are talking about. There is a "Sessin Manager", and there are three choices: "Restore previous session" (selected), "Restore manually saved session" and "Start with an empty session". Is your advice to try the last one?
Ok, I've tried that, and indead those programs have desappeared. But what's the concept behind this behavior?
Yeah, I wanted you to try the last one. The concept behind it is that whenever you shutdown your computer, KDE saves the list of programs that were running in the last session. By choosing the last option, you're telling it to start fresh and only load services or programs that were included in the initial startup.
As well as the session management, there's also ~/.kde/Autostart which might be the source of your auto-launching program. More likely session management though. If you can't remove whatever it is from control centre, you can try to clear out the session manually. This might be a little risky - you might stop some programs running which you need. It's up to you if you want to take a risk:
Log out
At the login screen, press control-alt-f1 to go to the text login
login, cd to .kde/share/config/session
get rid of the files you find there.
logout
press alt-f7 to go back to the graphical login (it might be a different fkey, if alt-f7 doesn't work, just run through them until you get back to the graphical login)
Yeah, I wanted you to try the last one. The concept behind it is that whenever you shutdown your computer, KDE saves the list of programs that were running in the last session. By choosing the last option, you're telling it to start fresh and only load services or programs that were included in the initial startup.
Cheers
But I closed those programs every time, so they were (hopefully) not running at the time I logged out. Should it mean that they were not finished correctly and still were in memory as running processes? I checked with 'ps -a', there were none of them...
Quote:
Originally Posted by matthewg42
there's also ~/.kde/Autostart which might be the source of your auto-launching program
No, it was not (again, if I was even looking in the right place).
Maybe I'll revert to my previous session management settings and check your suggestion as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.