LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-08-2006, 06:20 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
kmail starts automatically upon login - how to remove?


All of a sudden, kmail has begun to get loaded automatically upon login for one of the users on my PC.

I'm on Slackware-current (10.2) with KDE 3.4.2.

~/.kde/Autostart only contains kmix, and I have set KDE up to start with an empty session on login, not to remember last session.

Still kmail (and not the full Kontact as I always start it with) is loaded automagically on login, appearing after kmix, and before the korganizer daemon on the taskbar.

Anyone experienced kmail all of a sudden insisting to load upon KDE login? And know how to get rid of it?

Thanks!

-Y1
 
Old 02-08-2006, 10:25 AM   #2
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
Is kmail configured to show in your system tray? (Settings-->Configure Kmail-->Appearance-->System Tray)

It's an idea, anyway...
 
Old 02-08-2006, 10:46 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Hi,

Yes, it's configured to show in the system tray, as it always have, but that doesn't explain why KDE at some point auto-loads the KMail application..

-Y1
 
Old 02-08-2006, 12:02 PM   #4
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
True, it _shouldn't_, but that doesn't mean that it may not be related.

Admittedly, I'm not a kmail expert, but it might be a place to start.

Another idea: could it for some reason be reading /opt/kde/share/autostart?

Just tossing out ideas...
 
Old 02-08-2006, 12:05 PM   #5
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks for your ideas. Answer is nope and nope. The config file that check the systray function is only read after kmail is started, ie after the problem occurs. To be sure I tried it as well, no success.
As for /opt/kde/share/autostart it can't be as this only occurs for one user, and not everyone, and there's no kmail links there either..

Thus I'm very puzzled why this all of a sudden appeared...
 
Old 02-08-2006, 12:32 PM   #6
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
check .kde/Autostart for Kmail shortcut allowing mail checking on login. See http://www.skolenix.no/~klaus/newnotater/x3526.html for discussion of this topic.
Google can help find more info. pico /etc/rc.d/rc.local may have some info too. Good luck.
 
Old 02-08-2006, 02:39 PM   #7
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Yalla-One
~/.kde/Autostart only contains kmix, and I have set KDE up to start with an empty session on login, not to remember last session.
Quote:
Originally Posted by lestoil
check .kde/Autostart for Kmail shortcut allowing mail checking on login.
I'm sure you're just trying to be helpful, and by fear of scaring other people away from answering, may I humbly suggest taking an additional couple of seconds reading the original and previous posts, as this would quite early reveal that the Autostart directory does not contain anything other than kmix (which proves that this has been tested). Furthermore - rc.local is part of the system startup and is loaded when the system boots, not when a single user logs in.

Please get your facts straight before trying to help, as you may inadvertently end up breaking someone's system by passing blatantly wrong advise.

-Y1
 
Old 02-08-2006, 10:55 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Well, you have checked Autostart and whether the user is starting KDE with a saved session. Hmm.

Seems to me that I recall that KDE comes packaged with some kind of mail-fetch front-end utility (Korn). Possibly such a utility is running? Also, check the KDE Control Center: KDE Components->Service Manager. Might be something there.

Also, just a guess, are you starting KDE from runlevel 3? Perhaps the user's .xinitrc file might be auto-running KMail?

You also might want to delete all files located in $HOME/.kde/share/config/session. And there are bunch of files that can be deleted stored in /tmp/kde-$USER, /tmp/kdesocket-$USER, /tmp/mcop-$USER, /var/tmp/kdecache-$USER. Also consider deleting any .DCOP* files located in the user's home directory, as well as .ICEauthority.
 
Old 02-10-2006, 08:16 AM   #9
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks Woodsman,

I have now tried the following - still unsuccessful:

1. Shutdown X
2. Delete all kde-, mcop and .Ice (and such) related directories in /tmp
3. Verified that ~/.kde/share/config/session is empty
4. Removed all .tmp and .new files from ~/.kde/share/*
5. Tried enabling session restore, login, logout, then disable - no difference (except that with session restore, it kept my browser, obviously)
6. Turned off,on, off KMails systray icon
7. grepped for KMail in all kde directories without finding anything useful

When timing things - it seems like KMail is loaded *after* the KDE-splash says everything is ready and up and running. Thus not when the session is restored or anything else.

This still affects only one user on the system.

Could this be a bug, or am I missing a hidden trigger somewhere?

-Y1
 
Old 02-10-2006, 11:49 AM   #10
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
You try just deleting your .kde in your home directory?
 
Old 02-10-2006, 12:11 PM   #11
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Deleting .kde in the homedirectory would certainly remove the problem. In addition to removing the problem, it would also remove about one year of email correspondence, the entire address book, custom settings and a whole lot other information.

One would hope that taking such drastic measures would not be necessary.

What scares me is that advise such as this is given without *any* warning whatsoever about the consequences and near total loss of data. Once again with fear of scaring people from trying to help in these forums, but please - before giving advise that may remove vital user data, at least spend a couple of moments thinking about the consequences of your advise.

Asking someone to rm -rf ~/.kde is almost like asking to do a mkfs /dev/hda ...

-Y1
 
Old 02-10-2006, 12:43 PM   #12
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
You know, I am fairly insulted by your reply.

I give you a suggestion that would certainly work. I assume you have the knowledge to realize that *you* have data in there that is important to *you*. If you want I can assume you are an idiot user who has gone on their first trip beyond the boundaries of a GUI.

As for emails, I don't know if you use pop or imap for email access so I don't know if you keep emails stored locally or remotely. Not all mail apps put mail in .kde. There is many email apps. Kmail, pine, mutt, Thunderbird, the list goes on. It's your system not mine.

It's called advice.

ad·vice Audio pronunciation of "advice" ( P ) Pronunciation Key (d-vs)
n.

1. Opinion about what could or should be done about a situation or problem; counsel.
2. Information communicated; news. Often used in the plural: advices from an ambassador.

It's my opinion about what should be done. It's your decision wether or not to take it, not mine. I use imap and keep all my emails on my email server. I don't keep any important data on my desktop/laptop, it's all on a server if its important. My data is also backed up and archived daily/weekly/monthly as well as my emails on the server. I could delete my .kde directory without a second thought and I would lose nothing more then the 3 seconds it would take to recreate it from a backup.

I don't know how you manage your system. I don't know what email app you use or where it puts things. I don't know if you backup things. I don't know whether you smash everything into your .kde directory. It's not my system. It's yours. Therefore it's your resposibility to take advice as just that. I wasn't trying to write a howto on backing up your .kde directory and then deleting it. A simple one line suggestion to a problem. Your the user, it's your system. If you did just delete your .kde directory without even thinking about backing up things then that really sucks to be you. I'm sure you wouldn't be making that mistake a second time and it would certainly be a hard lesson in thinking before you leap.

As the most intelligent life forms on the planet sometimes I really wonder.
 
Old 02-10-2006, 01:47 PM   #13
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by Yalla-One
Asking someone to rm -rf ~/.kde is almost like asking to do a mkfs /dev/hda ...
Not if you do backups. And it's nowhere near the same.
You may be to that point. Obviously, you did something to cause this to happen. Started a program that caused kmail to fire up, or still does so. We are just coming up with solutions. Since you are that way, do it like this:

It is obviously in your .kde directory, so make a backup of it, delete one item at a time in your .kde directory, until you get the desired response. Then delete that one item in your backup, restore .kde, and you are up and running.

It's a very basic troubleshooting step. Try it that way.

Or keep complaining.


Either way, it's your system.
 
Old 02-10-2006, 07:00 PM   #14
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Rather than delete the ~/.kde directory, consider temporarily renaming: mv ~/.kde ~/.kde-old. Of course, you need to be at the command line and not in X/KDE before doing this.

I have had to do this a few times to troubleshoot weird KDE events and renaming rather than deleting sometimes provides me some clues about the problem. I easily restore/rename that directory a few minutes later. Yeah, I have to temporarily live with default desktop settings, etc., but renaming the directory provides a quick test and I lose no data and need not spend time restoring from backups.

Of course, this renaming test might not succeed because in the particular problem for this thread, you haven't yet narrowed the list of suspects. So a blanket renaming likely will remove or mask the root cause of the problem and resolve little.

Off topic, but FWIW, I would configure my email client to store all of my mail in a separate directory outside of ~/.kde, even if I was using a KDE-based client.

This particular problem is curious. Something is starting KMail, but what? You have deleted a bunch of the temporary files, but the problem persists. You don't need to delete or rename all KDE config files, but possibly rename only those related to KMail. You temporarily lose a lot of your configuration, but once outside X/KDE you can restore those temporarily renamed files. My wild guess, however, is that something external to KMail is triggering KMail into running. Possibly some obscure config setting in Kontact or Kopete or something like that.

Quote:
...am I missing a hidden trigger somewhere?
This is my initial guess. Because email is the typical medium used to inform users of various process events, I wonder if your user has enabled some program/process that uses email to notify the user of events.

I would temporarily configure all KDE programs (Kontact, KAlarm, whatever, etc.) that autostart to stop doing so. That might provide a clue as to which program/process might be triggering KMail to start.

You did not mention whether you checked the user's KDE Control Center: KDE Components->Service Manager. As a test, you might want to disable everything there.

Have you tried opening a Konsole terminal and typing ps ax to see what KDE apps are running? That short list might provide a clue too.

Lastly, does the user have any desktop icons that remotely could be connected with autostarting KMail?
 
Old 02-12-2006, 04:15 AM   #15
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
cwwilson, Woodsman,

Problem found. Turns out that Controlpanel's Resources section has a plugin for IMAP which triggers a bug/feature in KDE that causes KOrganizer Reminder Daemon to start KMail to check the IMAP Calendar plugin to check the calendar on the server.

As for the different measures necessary or not to isolate the problem, it has not been my intention to complain about this issue, but rather try to describe the problem as accurately and detailed as possible, and to report back when I've learned something new. Both to give pinpoints to KDE people more experienced than me, and to have a sufficiently thorough description to provide guidelines to others who may run into this problem in the future.

The reason why I object to one-line "smart" responses such as "delete it" is that people passing such advise has no way to know the comfort-level and experience of the others who read the thread, and possibly deleting so much valuable information without even spending another 30 seconds with a warning is something I maintain as irresponsible. Simply "mv .kde .kde.orig-$DATE" would be *far* safer for future thread-readers.

Furthermore, I feel it is important to be able to isolate such problems in order to be able to provide an as accurate as possible bug report to the KDE project. Together with the KDE maintainers we just isolated the problem 15 minutes ago, and now that they know exactly what causes the problem they are free to reproduce it and decide how to address it.

-Y1
 
  


Reply



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
Application Starts Automatically jadurant Linux - Newbie 5 01-22-2006 04:12 PM
Noatun automatically starts up? JockVSJock Slackware 9 12-22-2005 05:45 PM
X starts up automatically & other problems kloss Debian 8 12-09-2005 12:17 AM
knode starts automatically?? attila_66 Linux - Newbie 1 10-22-2005 04:50 PM
mozilla starts automatically bm1 Linux - Software 1 08-29-2004 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Open Source Consulting | Domain Registration