FS#16676 - [openbox] only 1 workspace when login from GDM
Attached to Project:
Arch Linux
Opened by cookie (ammon) - Thursday, 15 October 2009, 19:41 GMT
Last edited by Andrea Scarpino (BaSh) - Wednesday, 21 October 2009, 19:46 GMT
Opened by cookie (ammon) - Thursday, 15 October 2009, 19:41 GMT
Last edited by Andrea Scarpino (BaSh) - Wednesday, 21 October 2009, 19:46 GMT
|
Details
Description:
The window manager only has one workspace titled "Workspace 1" if logged in through GDM using the Openbox or GNOME/Openbox sessions. Openbox won't respect the number of workspaces or their names in ~/.config/openbox/rc.xml. When openbox is started with openbox --replace : (openbox:3273): Openbox-WARNING **: Openbox is configured for 4 desktops, but the current session has 1. Overriding the Openbox configuration. Bug is well descripted at many bug trackers: http://bugzilla.icculus.org/show_bug.cgi?id=4040 https://bugzilla.redhat.com/show_bug.cgi?id=444135 ...And on arch forum: http://bbs.archlinux.org/viewtopic.php?id=82323 Additional info: * package version(s) Openbox - 3.4.7.2-3 GDM - 2.28.0-1 Steps to reproduce: Install latest openbox and gdm from repo. Try shift desktops. P.S. There are some patches mentioned on redhat bug tracker? Can you try to apply them on arch gdm package? |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Wednesday, 21 October 2009, 19:46 GMT
Reason for closing: Fixed
Additional comments about closing: openbox 3.4.7.2-4
Wednesday, 21 October 2009, 19:46 GMT
Reason for closing: Fixed
Additional comments about closing: openbox 3.4.7.2-4
Did you write this is outdated? It is not, check versions in repo and ones I reported.
xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP
before launching the openbox binary.
gdm runs the openbox-session script that calls the user (if it exists) or global autostart before executing openbox.
I put that line in my autostart.sh.
- Where to place that within autostart.sh? Which line?
A temporary patch for the Arch package should touch /usr/bin/openbox-session.
@cookie: I think /etc/xdg/openbox/autostart.sh isn't run if ~/.config/openbox/autostart.sh is present.
You edited /etc/xdg/openbox/autostart.sh, remove it. remove ~/.config/openbox/autostart.sh and reinstall openbox
$ ps axu|grep session
4446 0.0 0.1 51516 2320 ? S 18:41 0:00 /usr/lib/gdm/gdm-session-worker
4512 0.0 0.3 163036 7756 ? Ssl 18:41 0:00 gnome-session
4531 0.0 0.0 11068 1524 ? Ss 18:41 0:00 /usr/bin/dbus-daemon --fork --print-pid 7 --print-address 9 --session
4532 0.0 0.0 19704 712 ? S 18:41 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
4535 0.0 0.0 13860 544 ? Ss 18:41 0:00 /usr/bin/ssh-agent -- gnome-session
4983 0.0 0.0 7776 964 pts/0 R+ 18:47 0:00 grep session
Guess not, I run openbox --replace. Actually gnome does it for me upon start. It worked before. Should I change it?
Are you in a pure gnome session and you modified the WM in some way?
$ xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP
$ openbox --replace &
It works. In which script do you change the WM?
#! /bin/sh
xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP
openbox --replace &
This should fix. If it works, please request a clusure for this task.
Can I use it via gnome-startup-applications? And how? Btw, I use zsh.
Go there and change that entry, giving the full path to the new script or, alternatively, delete it and add a new item.
And don't worry about the shell.
I'll move this discussion to arch-general.
However, it took gnome-startup several times to remeber it. :)
Ty adoroo, ty all!
P.S.
Pls post this on forum, many user will be happy about this.