Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911974 - =x11-wm/openbox-3.6.1-r7 fails to execute ~/.config/openbox/autostart applications
Summary: =x11-wm/openbox-3.6.1-r7 fails to execute ~/.config/openbox/autostart applica...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-09 15:18 UTC by Nathan Zachary
Modified: 2023-08-10 04:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Zachary 2023-08-09 15:18:10 UTC
In one of my VirtualBox Gentoo installations, openbox-3.6.1-r7 executes (via `exec startx`) just fine, but it fails to honour anything in ~/.config/openbox/autostart.  I'm able to manually call all of the tasks, so I don't think it's a problem with the configuration on that system.  

Dropping back to 3.6.1-r5 fixes the problem.

If you need any further information, please let me know.

Thank you for your time.

Cheers,
Nathan Zachary
Comment 1 Nathan Zachary 2023-08-09 16:04:47 UTC
Looking at the diff between the two ebuilds, I would imagine that this is the relevant change:

>>>>>
 src_install() {
-        dodir /etc/X11/Sessions
-        echo "/usr/bin/openbox-session" > "${ED}/etc/X11/Sessions/${PN}"
-        fperms a+x /etc/X11/Sessions/${PN}
+        exeinto /etc/X11/Sessions
+        newexe - ${PN} <<-EOF
+        #!/bin/sh
+        ${PN}
+        EOF
>>>>>

The difference here is that the r5 ebuild results in:

>>>>>
$ cat /etc/X11/Sessions/openbox 
/usr/bin/openbox-session
>>>>>

whereas the r7 ebuild results in:

>>>>>
$ cat /etc/X11/Sessions/openbox 
#!/bin/sh
openbox
>>>>>

The shebang line (from bug 911787) isn't the problem.  Rather, it's that the new version is only calling `openbox` instead of `openbox-session`.  I have tested the change, and it seems to fix the autostart problems.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-08-09 16:08:02 UTC
Thanks, sorry.
Comment 3 Nathan Zachary 2023-08-09 16:09:22 UTC
No worries at all, Sam.  Thank you for your help in getting the change pushed.

Cheers,
Nathan Zachary
Comment 4 Larry the Git Cow gentoo-dev 2023-08-10 04:08:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a1f9fe744c3d262b03f5024c5020876088ed099

commit 4a1f9fe744c3d262b03f5024c5020876088ed099
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-08-10 04:07:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-10 04:07:02 +0000

    x11-wm/openbox: fix session name again
    
    Closes: https://bugs.gentoo.org/911974
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-wm/openbox/{openbox-3.6.1-r7.ebuild => openbox-3.6.1-r8.ebuild} | 2 +-
 x11-wm/openbox/openbox-9999.ebuild                                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)