LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-23-2006, 10:50 PM   #1
repei
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Rep: Reputation: 0
Cancelling autostart of GUI program


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?
 
Old 11-24-2006, 01:11 AM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Quote:
Originally Posted by repei
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.
 
Old 11-24-2006, 02:34 AM   #3
repei
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ksgill
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?
 
Old 11-24-2006, 08:40 AM   #4
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
Quote:
Originally Posted by repei
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.

Cheers
 
Old 11-24-2006, 09:43 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
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:
  1. Log out
  2. At the login screen, press control-alt-f1 to go to the text login
  3. login, cd to .kde/share/config/session
  4. get rid of the files you find there.
  5. logout
  6. 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)
  7. login and see if it helped.
 
Old 11-25-2006, 02:37 AM   #6
repei
LQ Newbie
 
Registered: Nov 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ksgill
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autostart upsd program at bootup slash72 Ubuntu 4 06-27-2006 01:10 AM
program to autostart a killed service ~=gr3p=~ Linux - Networking 4 02-21-2006 01:04 AM
Autostart program mrrrl Red Hat 1 03-27-2005 01:58 PM
Pthread cancelling msriram_linux Programming 2 11-21-2004 09:25 AM
How to set a program to autostart upon Fedora Boot j3ff Fedora 1 08-30-2004 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration