Comment 2 for bug 286577

Revision history for this message
cristinel mazarine (cristinel) wrote : Re: [Bug 286577] [NEW] invalid application state after system restart

Hello Mr Michael Trausch,

In Kubuntu I have enabled "restore previous session on login".

"
/*[...]
*/

/*If that is the case, I am going to guess that this is because Thunderbird registers something with KDE and AllTray does not.
[...]
*/

"
I think that this is the problem.
I presume that "restore previous session" is done by saving the running
applications into a list and launching them back when log-in is performed.

AllTray should check if "restore previous session" flag is set and if it
is, should change the start-up command of each owned application which
is running when log-off is performed (/owned application = application
started through alltray/) .

"
/*[...]
*/

/*I don't understand how 5.3 and 5.4
lead to 5.5 (Thunderbird not running).
[...]
*/

"
Is not 5.3 an 5.4 is 5.4 = 3.0. Close the thunderbird from "close"
button and see that thunderbird process is not running, which means that
tunderbird was not started through alltray.

--

*Cristinel Mazarine*
Team Lead
+4 01 627 16 82 office
+4 0743 104 850 mobile

*Crom-Osec, SRL.*
Fundeni 2
Bucharest, RO *
www.osec.ro* <http://www.osec.ro/>

Michael B. Trausch wrote:
> On Mon, 20 Oct 2008 19:38:18 -0000
> cristinel mazarine <email address hidden> wrote:
>
>
>> Public bug reported:
>>
>> Binary package hint: alltray
>>
>> Steps:
>> 1. Create a button icon and assign the command: "alltray -na -s -l
>> thunderbird -i thunderbird %u" 2. Click on button and wait until
>> thunderbird is visible. 3. Close thunderbird from "close" button (to
>> minimize to tray) - this is ok, as expected. 4. Restart kubuntu
>> 5. Log in and:
>> 5.1. check that thunderbird is not visible (as window in desktop or
>> as icon into tray) - this is not ok, expected icon in tray
>> 5.2. check that thunderbird process is started 5.3. start again
>> thunderbird from the button icon created at step 1. 5.4. repeat the
>> step 3 (close from "close" button) and check the tray - thunderbird
>> is not there (this is not ok) 5.5. check the processes and see that
>> thunderbird process is not running.
>>
>
> I don't understand the bug. Upon restart, why is Thunderbird running?
> Do you have some sort of session-save preference enabled in KDE?
>
> If that is the case, I am going to guess that this is because
> Thunderbird registers something with KDE and AllTray does not. I can
> attempt to see if this is a cross-desktop issue a bit later when I have
> some time.
>
> Since Thunderbird is already running as per 5.2, when you execute 5.3,
> strange things will happen if Thunderbird detects it's already
> running. It won't create a new window, so AllTray will have nothing to
> hook into, this is unavoidable. I don't understand how 5.3 and 5.4
> lead to 5.5 (Thunderbird not running).
>
> I would suspect that if you put the command "alltray -na -s -l
> thunderbird -i thunderbird" in your startup items (on GNOME, at least,
> this is System→Preferences→Sessions in the "Startup Programs" tab), it
> will work as you expect. Can you confirm that, if there is such an
> equivalent in KDE?
>
> --- Mike
>
>