Bug 150239 - knotes creates new blank notes on startup
Summary: knotes creates new blank notes on startup
Status: RESOLVED LATER
Alias: None
Product: knotes
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 22:32 UTC by Saurabh Asthana
Modified: 2007-09-28 04:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Saurabh Asthana 2007-09-26 22:32:06 UTC
Version:           3.6 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

I have a simple Autostart link for knotes (symbolic link in ~/.kde/Autostart). Whenever KDE starts, it launches knotes, which always creates one new blank note. This is remembered across sessions, so if I forget to delete it, eventually my desktop is wallpapered with lots and lots of blank notes, which are annoyingly difficult to delete (right-click, select delete for each one individually).
Comment 1 Guillermo Antonio Amaral Bastidas 2007-09-27 11:44:22 UTC
KNotes must be running more than once for that to happen, do you run more than one session at a time ? 

Now I could add a Command Line Option to address this, something along the lines of `knotes --new` to create a new note on start-up.
Comment 2 Saurabh Asthana 2007-09-27 16:10:38 UTC
Not that i know of - this just happens on KDE startup. The only reason
I can think of is if there is some other, independent way for knotes
to register to autostart, which it does automatically, and then I'm
invoking it again with my ~/.kde/Autostart/. Does that seem possible?
If so, there ought to be a way to configure that behavior in knotes
(and in KDE more generally).

Saurabh

On 27 Sep 2007 09:44:24 -0000, Guillermo A. Amaral
<me@guillermoamaral.com> wrote:
[bugs.kde.org quoted mail]
Comment 3 Guillermo Antonio Amaral Bastidas 2007-09-27 18:21:42 UTC
Do you have "Restore previous session" on login in your session manager ? 
 Please check in :

  KControl > KDE Components > Session Manager

  If so, the session remembers that you had KNotes running, so it runs KNotes for you, that might be happening before your Autologin link runs KNotes a second time creating the new blank Note.
Comment 4 Saurabh Asthana 2007-09-27 18:26:08 UTC
Aha... that would explain things. So is there any acceptable solution?
I don't want to disable the Autostart, since I want knotes to start up
every time, regardless of whether it's been killed before I restart my
old session. I suppose I could write a script to see if knotes is
running first, but this seems needlessly difficult. is there some
behavior where knotes will suppress the note-creation if another
session is running?

Saurabh

On 27 Sep 2007 16:21:42 -0000, Guillermo A. Amaral
<me@guillermoamaral.com> wrote:
[bugs.kde.org quoted mail]
Comment 5 Saurabh Asthana 2007-09-27 18:26:13 UTC
Aha... that would explain things. So is there any acceptable solution?
I don't want to disable the Autostart, since I want knotes to start up
every time, regardless of whether it's been killed before I restart my
old session. I suppose I could write a script to see if knotes is
running first, but this seems needlessly difficult. is there some
behavior where knotes will suppress the note-creation if another
session is running?

Saurabh

On 27 Sep 2007 16:21:42 -0000, Guillermo A. Amaral
<me@guillermoamaral.com> wrote:
[bugs.kde.org quoted mail]
Comment 6 Guillermo Antonio Amaral Bastidas 2007-09-27 18:48:54 UTC
  KNotes for KDE4 will allow you to suppress automatic note creation, but for 
now you can do one simple thing, add `knotes` to `Applications to be excluded 
from sessions` In the Session Manager under Advanced. This way KNotes will only be executed by the Autostart link.
Comment 7 Guillermo Antonio Amaral Bastidas 2007-09-28 04:24:26 UTC
Not a direct bug, will add command line option to suppress note creation on start-up.