Openbox-session not working with lightdm

Everything about X, Gnome, KDE, ... and everything running on it

Re: Openbox-session not working with lightdm

Postby Head_on_a_Stick » 2020-02-23 13:36

Please post the output of
Code: Select all
file $(which -a openbox-session)
User avatar
Head_on_a_Stick
 
Posts: 11528
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Openbox-session not working with lightdm

Postby steve1961 » 2020-02-23 14:42

Deb-fan wrote:Did you try setting it as default x-session? Then simply using startx at login. Might try checking what it's/openbox is set as in update-alternatives --config x-window-manager too. Though what's set default x-session overrides that. If were using it as default wm, no idea what lightdm would set it to. Surely not openbox-session. Though should still work with startx + full path I guess. Would check what's set anyway. Wondering how you went about all this lightdm config'ing, what all/how you set ob to be Mate's wm? Your situation is a head scratcher to me. Never had issues like those and started openbox tons of ways. Gdm, slim, nodm, lightdm, without a DM via xinitrc and update-alternatives. Time being using an xinitrc file ( just has an exec openbox-session line in it I uncomment when wanting to use OB) and exec'ing the startx cmd from the .profile file in my users /home. Only reason I've switched back to using an xinitrc file is fluxbox wouldn't behave without one.


Hi, I’m tearing my hair out trying to figure this one out. Someone asked me to see if I could set up mate to use openbox as the default wm and it worked well. When I came to try openbox on it’s own though it wouldn’t launch openbox-session. I’ve set mate back to the default wm so that shouldn’t cause issues and although I’ve customised lightdm with my own image it works fine on arch, Ubuntu and even another instance of Debian so I’m not sure what’s screwed up with this installation. If I hadn’t got it just as I want it I’d reinstall but I’m trying to avoid that
User avatar
steve1961
 
Posts: 63
Joined: 2005-10-16 21:07
Location: Coventry, UK

Re: Openbox-session not working with lightdm

Postby steve1961 » 2020-02-24 18:43

Head_on_a_Stick wrote:Please post the output of
Code: Select all
file $(which -a openbox-session)


Will do. Working away for a few days but will post once I get back
User avatar
steve1961
 
Posts: 63
Joined: 2005-10-16 21:07
Location: Coventry, UK

Re: Openbox-session not working with lightdm

Postby steve1961 » 2020-02-25 14:35

Head_on_a_Stick wrote:Please post the output of
Code: Select all
file $(which -a openbox-session)


Here you go

Code: Select all
steve@steve-pc:~$ file $(which -a openbox-session)
/usr/bin/openbox-session: POSIX shell script, ASCII text executable
/bin/openbox-session:     POSIX shell script, ASCII text executable
User avatar
steve1961
 
Posts: 63
Joined: 2005-10-16 21:07
Location: Coventry, UK

Re: Openbox-session not working with lightdm

Postby Head_on_a_Stick » 2020-02-25 15:48

Does the content match this:
Code: Select all
#!/bin/sh

if test -n "$1"; then
    echo "Syntax: openbox-session"
    echo
    echo "See the openbox-session(1) manpage for help."
  exit
fi

# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
      -remove _NET_DESKTOP_NAMES \
      -remove _NET_CURRENT_DESKTOP 2> /dev/null

# Set up the environment
A="/etc/xdg/openbox/environment"
test -r $A && . $A
A="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/environment"
test -r $A && . $A

# Run Openbox, and have it run the autostart stuff
exec /usr/bin/openbox --startup "/usr/lib/x86_64-linux-gnu/openbox-autostart OPENBOX" "$@"

Do you have /usr/lib/x86_64-linux-gnu/openbox-autostart? Or /usr/lib/i386-linux-gnu/openbox-autostart if you have a 32-bit system.

I presume you've already tried
Code: Select all
# apt reinstall openbox

The fact that it works fine for me and also works for you in a VM strongly suggests that something is wrong with your installation. Have you added any foreign sources?
User avatar
Head_on_a_Stick
 
Posts: 11528
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Openbox-session not working with lightdm

Postby steve1961 » 2020-02-25 18:43

Head_on_a_Stick wrote:Does the content match this:
Code: Select all
#!/bin/sh

if test -n "$1"; then
    echo "Syntax: openbox-session"
    echo
    echo "See the openbox-session(1) manpage for help."
  exit
fi

# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
      -remove _NET_DESKTOP_NAMES \
      -remove _NET_CURRENT_DESKTOP 2> /dev/null

# Set up the environment
A="/etc/xdg/openbox/environment"
test -r $A && . $A
A="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/environment"
test -r $A && . $A

# Run Openbox, and have it run the autostart stuff
exec /usr/bin/openbox --startup "/usr/lib/x86_64-linux-gnu/openbox-autostart OPENBOX" "$@"

Do you have /usr/lib/x86_64-linux-gnu/openbox-autostart? Or /usr/lib/i386-linux-gnu/openbox-autostart if you have a 32-bit system.

I presume you've already tried
Code: Select all
# apt reinstall openbox

The fact that it works fine for me and also works for you in a VM strongly suggests that something is wrong with your installation. Have you added any foreign sources?


All is exactly the same as yours, no foreign sources apart from google chrome and yes I've tried uninstalling and reinstalling multiple times. I have the 64bit system. A reinstallation may be the only way I think
User avatar
steve1961
 
Posts: 63
Joined: 2005-10-16 21:07
Location: Coventry, UK

Previous

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable