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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by cookie (ammon) - Thursday, 15 October 2009, 22:42 GMT
@ Andrea Scarpino

Did you write this is outdated? It is not, check versions in repo and ones I reported.
Comment by Ramses de Norre (Ramses_de_Norre) - Friday, 16 October 2009, 17:41 GMT
I have the same issue, and additionally my mouse pointer is insanely big! It is definitely a gdm issue because it does not occur when I start openbox with startx without gdm. The size is configured in ~/.Xdefaults but ignored when I log in with gdm.
Comment by Alessandro Doro (adoroo) - Monday, 19 October 2009, 13:16 GMT
As suggested in https://bugzilla.redhat.com/show_bug.cgi?id=444135#c15 one can run:
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.
Comment by Jan de Groot (JGC) - Monday, 19 October 2009, 13:25 GMT
Assinging to openbox maintainer, it's a bug in openbox, not in gdm.
Comment by cookie (ammon) - Monday, 19 October 2009, 14:11 GMT
@adoroo

- Where to place that within autostart.sh? Which line?
Comment by Alessandro Doro (adoroo) - Monday, 19 October 2009, 16:19 GMT
You can place it everywhere in ~/.config/openbox/autostart.sh or /etc/xdg/openbox/autostart.sh or /usr/bin/openbox-session (in this file before the last line).

A temporary patch for the Arch package should touch /usr/bin/openbox-session.
Comment by cookie (ammon) - Monday, 19 October 2009, 17:37 GMT
Ty but it did not work. I placed the line at end of /etc/xdg/openbox/autostart.sh file.
Comment by Ramses de Norre (Ramses_de_Norre) - Monday, 19 October 2009, 20:06 GMT
The xprop fixed all but the mouse pointer here.
@cookie: I think /etc/xdg/openbox/autostart.sh isn't run if ~/.config/openbox/autostart.sh is present.
Comment by cookie (ammon) - Monday, 19 October 2009, 20:43 GMT
I dont have ~/.config/openbox/autostart.sh
Comment by Andrea Scarpino (BaSh) - Tuesday, 20 October 2009, 08:09 GMT
should be fixed in openbox 3.4.7.2-4. confirmed?
Comment by Alessandro Doro (adoroo) - Tuesday, 20 October 2009, 16:14 GMT
Fixed for me.
Comment by cookie (ammon) - Tuesday, 20 October 2009, 16:30 GMT
  • Field changed: Percent Complete (100% → 0%)
Not workin in my case. Still one "Workspace 1" and cant shift.
Comment by Andrea Scarpino (BaSh) - Tuesday, 20 October 2009, 16:32 GMT
@ ammon
You edited /etc/xdg/openbox/autostart.sh, remove it. remove ~/.config/openbox/autostart.sh and reinstall openbox
Comment by cookie (ammon) - Tuesday, 20 October 2009, 16:39 GMT
Yes, I have removed /etc/xdg/openbox/ before I installed new relase. And I dont have ~/.config/openbox/autostart.sh
Comment by Alessandro Doro (adoroo) - Tuesday, 20 October 2009, 16:43 GMT
Are you sure you're running openbox-session?
$ ps axu|grep session
Comment by cookie (ammon) - Tuesday, 20 October 2009, 16:45 GMT
4390 0.0 0.0 19704 744 ? S 18:41 0:00 /usr/bin/dbus-launch --exit-with-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?
Comment by Alessandro Doro (adoroo) - Tuesday, 20 October 2009, 16:55 GMT
The fix is intended for a pure openbox session, or for a gnome/kde session launched with openbox-gnome-session or openbox-kde-session.
Are you in a pure gnome session and you modified the WM in some way?
Comment by cookie (ammon) - Tuesday, 20 October 2009, 16:58 GMT
Yes, pure gnome with openbox --replace. Login from gdm.
Comment by Alessandro Doro (adoroo) - Tuesday, 20 October 2009, 17:01 GMT
Place the xprop line before "openbox --replace", please.
Comment by cookie (ammon) - Tuesday, 20 October 2009, 17:06 GMT
Nope, still the same.
Comment by Alessandro Doro (adoroo) - Tuesday, 20 October 2009, 17:16 GMT
I just started a gnome session; opened a terminal and run:

$ 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?
Comment by cookie (ammon) - Tuesday, 20 October 2009, 18:15 GMT
In gnome-startup-applications, thats gui. Dont know what script it is.
Comment by Alessandro Doro (adoroo) - Wednesday, 21 October 2009, 13:58 GMT
You can create a script and launch that instead of directly call openbox.

#! /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.
Comment by cookie (ammon) - Wednesday, 21 October 2009, 18:57 GMT
Ok, pls help me with script. I have crated it, gave it executable flag, and placed it in ~/bin.
Can I use it via gnome-startup-applications? And how? Btw, I use zsh.
Comment by Alessandro Doro (adoroo) - Wednesday, 21 October 2009, 19:25 GMT
You said that you added "openbox --repace" to gnome-startup-applications.
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.
Comment by cookie (ammon) - Wednesday, 21 October 2009, 19:46 GMT
Yep! Script does the job! :D
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.

Loading...