! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Session cache stores multiple instances of xfwm4
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Vince C. 2011-01-02 10:54:05 CET
Hi.

I've installed Xfce 4.7 on my Gentoo laptop (mainly to get rid of HAL). From my .xsession-errors it appears that xfwm4 is launched more than once:

xfwm4-Message: To replace the current window manager, try "--replace"

(xfwm4:5188): xfwm4-WARNING **: Another Window Manager is already running
xfwm4-Message: To replace the current window manager, try "--replace"

(xfwm4:5189): xfwm4-WARNING **: Another Window Manager is already running
xfwm4-Message: To replace the current window manager, try "--replace"

(xfwm4:5190): xfwm4-WARNING **: Another Window Manager is already running
xfwm4-Message: To replace the current window manager, try "--replace"

(xfwm4:5191): xfwm4-WARNING **: Another Window Manager is already running
xfwm4-Message: To replace the current window manager, try "--replace"

(xfwm4:5192): xfwm4-WARNING **: Another Window Manager is already running
xfwm4-Message: To replace the current window manager, try "--replace"

(xfwm4:5193): xfwm4-WARNING **: Another Window Manager is already running


So I looked up in my Xfce session cache file under .cache/sessions/ and I found the following:

[Session: Default]
Client0_ClientId=29497738e-1b17-406a-955b-e7187b66ea72
Client0_CloneCommand=xfwm4
Client0_RestartCommand=xfwm4,--display,:0.0,--sm-client-id,29497738e-1b17-406a-955b-e7187b66ea72
Client0_Program=xfwm4
Client0_Priority=20
...
Client1_ClientId=2d967a6de-7fee-4406-86e5-d3aba2775264
Client1_CloneCommand=xfwm4
Client1_DiscardCommand=rm,-rf,/home/vinz/.cache/sessions/xfwm4-2d967a6de-7fee-4406-86e5-d3aba2775264.state
Client1_RestartCommand=xfwm4,--sm-client-id,2d967a6de-7fee-4406-86e5-d3aba2775264,--display,:0.0
Client1_Program=xfwm4
Client1_Priority=15
...

With another (test) user account on my system xfwm4 is even launched three times! I wiped out my test account's home directory beforehand so the bug occurs even with a blank Xfce profile.

I didn't check if the bug occurs because I saved a session to have some applications like Terminal or gkrellm running when I open a session though. Anyway xfwm4 shows only once in "Xfce settings" > "Sessions and startup" dialog box.
Comment 1 Nick Schermer editbugs 2011-01-02 12:03:37 CET
What version of xfwm4 and libxfce4ui do you have? Looks like a dup of bug #6330.
Comment 2 Vince C. 2011-01-03 00:39:57 CET
(In reply to comment #1)
> What version of xfwm4 and libxfce4ui do you have? Looks like a dup of bug
> #6330.

I have xfce-base/xfwm4-4.7.3 and xfce-base/libxfce4ui-4.7.5. But I see there's been an update of a couple of Xfce packages dated 2nd January 2011... I'll try them at once and post back right away.
Comment 3 Vince C. 2011-01-03 02:08:49 CET
Voilà. I have just sync'ed and upgraded all Xfce-related packages (xfdesktop-4.7.5, xfce4-session-4.7.3, thunar-1.1.6, xfce4-appfinder-4.7.2, xfwm4-4.7.4, xfce4-settings-4.7.7, xfce-utils-4.7.4, xfce4-panel-4.7.7, libxfce4ui-4.7.6, exo-0.5.6, xfconf-4.7.5 and libxfce4util-4.7.5).

The problem still exists. Saving the current session still saves a session cache file with more than one occurrence of xfwm4.
Comment 4 Vince C. 2011-01-10 14:30:04 CET
I erased ~/.config/xfce4-session, everything under ~/.cache and
almost everything under ~/.config/xfce4, i.e. erased all but
~/.config/xfce4/(desktop|orage|parole). Now only one instance of xfwm4 is mentioned in the session file (curiously enough it's stored under Client5_xxx but I don't mind as long as it works).

Note I have saved my session only once. I don't want to bet but I'm fearing there'll be another instance once I exit, saving my session's state. On the other hand I'm reluctant on trying for I'll have to clean my profile again and it's certainly *not* the kind of thing I'd do with pleasure.
Comment 5 Nick Schermer editbugs 2011-01-10 14:48:46 CET
They that was indeed fixed in the bug I mentioned, but because you were probably using an xfwm4 4.7 version before the fix, the multiple instances were added (and the fix does not add new ones, but isn't removing old ones either).
Comment 6 Vince C. 2011-01-10 16:50:24 CET
(In reply to comment #5)
> [...] the fix does not add new ones, but isn't removing old ones either.

Sounds good and relieving :) . Thanks a lot for the fix.

Bug #7048

Reported by:
Vince C.
Reported on: 2011-01-02
Last modified on: 2011-01-10

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

Additional information