Bug 447309 - new gnome-session no longer honors (uses?) gnome-wm preferences
Summary: new gnome-session no longer honors (uses?) gnome-wm preferences
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-session
Version: rawhide
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 449048 (view as bug list)
Depends On:
Blocks: F10Blocker, F10FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2008-05-19 13:41 UTC by sangu
Modified: 2008-09-17 04:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-08-07 19:16:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 546496 0 None None None Never

Description sangu 2008-05-19 13:41:43 UTC
Description of problem:
$ gconftool-2 --get /apps/gnome-session/rh/window_manager
compiz

But when gnome starts, metacity starts.

Version-Release number of selected component (if applicable):
2.23.2.2-3.fc10

How reproducible:
always

Steps to Reproduce:
1. 
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Ray Strode [halfline] 2008-05-30 18:27:36 UTC
*** Bug 449048 has been marked as a duplicate of this bug. ***

Comment 2 Matthias Clasen 2008-08-05 21:58:40 UTC
This should be fixed with the following commit, I think:

2008-07-31  William Jon McCann  <jmccann>

        * data/Makefile.am:
        * data/gnome-session.schemas.in:
        * data/gnome-wm:
        * data/gnome-wm.desktop.in:
        * gnome-session/gsm-util.c (gsm_util_get_app_dirs):
        Install a desktop file for gnome-wm and use that
        as the default window manager instead of calling
        metacity directly.  Add a gconf key to allow
        changing the default program for gnome-wm to use.
        Remove the gnome/wm-properties directory from
        the autostart search path.

Comment 3 sangu 2008-08-06 00:53:04 UTC
(In reply to comment #2)
> This should be fixed with the following commit, I think:
> 
> 2008-07-31  William Jon McCann  <jmccann>
> 
>         * data/Makefile.am:
>         * data/gnome-session.schemas.in:
>         * data/gnome-wm:
>         * data/gnome-wm.desktop.in:
>         * gnome-session/gsm-util.c (gsm_util_get_app_dirs):
>         Install a desktop file for gnome-wm and use that
>         as the default window manager instead of calling
>         metacity directly.  Add a gconf key to allow
>         changing the default program for gnome-wm to use.
>         Remove the gnome/wm-properties directory from
>         the autostart search path.

in gnome-session-2.23.6-1.fc10.i386.

$ cat /etc/gconf/schemas/gnome-session.schemas | grep prefered_window_manager
         <key>/schemas/apps/gnome-session/gnome-wm/prefered_window_manager</key>

prefered_window_manager <- this name is wrong.  maybe missing spell? in gnome-session.schemas.

$ cat /usr/bin/gnome-wm | grep preferred
  WINDOW_MANAGER=$(gconftool-2 --get /apps/gnome-session/gnome-wm/preferred_window_manager)

Comment 4 sangu 2008-08-06 01:17:57 UTC
(In reply to comment #3)

> in gnome-session-2.23.6-1.fc10.i386.
> 
> $ cat /etc/gconf/schemas/gnome-session.schemas | grep prefered_window_manager
>         
> <key>/schemas/apps/gnome-session/gnome-wm/prefered_window_manager</key>
> 
> prefered_window_manager <- this name is wrong.  maybe missing spell? in
> gnome-session.schemas.
> 
> $ cat /usr/bin/gnome-wm | grep preferred
>   WINDOW_MANAGER=$(gconftool-2 --get
> /apps/gnome-session/gnome-wm/preferred_window_manager)

Added http://bugzilla.gnome.org/show_bug.cgi?id=546496 to gnome bugzilla.

Comment 5 Matthias Clasen 2008-08-07 19:16:13 UTC
I've fixed the typo upstream now. Will be in the next build.

Comment 6 James Ralston 2008-09-16 22:41:09 UTC
Is this fix in Rawhide yet?

I ask because I'm running Rawhide on my laptop (gnome-session-2.23.92-1), and I'm still fighting with gnome-session to run my preferred window manager:

$ gconftool-2 --get-type /apps/gnome-session/gnome-wm/preferred_window_manager
string

$ gconftool-2 --get /apps/gnome-session/gnome-wm/preferred_window_manager
sawfish

$ type sawfish
sawfish is /usr/bin/sawfish

Yet when I login, I get metacity.  And gnome-session will stubbornly restart metacity if I attempt to kill it and run sawfish instead.  :(

If I keep executing "killall metacity; daemon sawfish", sawfish will eventually win the race, but man oh man does gnome-session become perturbed if that happens.  (As in, it keeps trying to fork metacity processes as fast as they die, thereby pegging the CPU.)

Comment 7 sangu 2008-09-17 04:21:33 UTC
(In reply to comment #6)
> Is this fix in Rawhide yet?
> 
> I ask because I'm running Rawhide on my laptop (gnome-session-2.23.92-1), and
> I'm still fighting with gnome-session to run my preferred window manager:
> 
> $ gconftool-2 --get-type /apps/gnome-session/gnome-wm/preferred_window_manager
> string
> 
> $ gconftool-2 --get /apps/gnome-session/gnome-wm/preferred_window_manager
> sawfish

See Also bug 460552, comment 2
changed gconf vaule

> 
> $ type sawfish
> sawfish is /usr/bin/sawfish
> 
> Yet when I login, I get metacity.  And gnome-session will stubbornly restart
> metacity if I attempt to kill it and run sawfish instead.  :(
> 
> If I keep executing "killall metacity; daemon sawfish", sawfish will eventually
> win the race, but man oh man does gnome-session become perturbed if that
> happens.  (As in, it keeps trying to fork metacity processes as fast as they
> die, thereby pegging the CPU.)

See Also bug 461622 : install desktop file intoXDG application dirs 

So.
Using compiz, temporary measure.
Make two file. 

$ cat /usr/share/applications/compiz.desktop 
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Compiz
Exec=startcompiz
NoDisplay=true
# name of loadable control center module
X-GNOME-WMSettingsModule=compiz
# name we put on the WM spec check window
X-GNOME-WMName=Compiz
# back compat only 
X-GnomeWMSettingsLibrary=compiz
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=compiz
X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-Autostart-Notify=true

$ cat /usr/bin/startcompiz 
#!/bin/sh
gtk-window-decorator &
compiz --replace glib gconf &

$ ls -al /usr/bin/startcompiz 
-rwxr-xr-x 1 root root 124 2008-09-10 22:52 /usr/bin/startcompiz

$ gconftool-2 --get /desktop/gnome/session/required_components/windowmanager
compiz


Note You need to log in before you can comment on or make changes to this bug.