You are not logged in.

#1 2012-03-27 03:06:35

medianmajik
Member
Registered: 2010-05-27
Posts: 53

[Solved]Untangling my Openbox Install

Somehow I've improperly installed Openbox.  My rc.xml, autostart, and menu.xml were all root:root with 644 permissions.

I used

chown js:users ~/.config/openbox/rc.xm ~/.config/openbox/menu.xml ~/.config/openbox/autostart

 

ls -la

now shows the correct user and group.  When I boot into Openbox it runs the example rc.xml menu.xml and autostart it first installs by default on any Arch system, despite the fact that I've rewritten them all.
example of menu.xml
Edit: for clarity

Last edited by medianmajik (2012-03-27 20:58:25)


One thing at a time

Offline

#2 2012-03-27 03:18:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [Solved]Untangling my Openbox Install

Are those files actuall at ~/path/...  or are they in ~/.config/openbox/...?

Last edited by Trilby (2012-03-27 03:18:34)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-03-27 05:06:11

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: [Solved]Untangling my Openbox Install

Trilby wrote:

Are those files actuall at ~/path/...  or are they in ~/.config/openbox/...?

~/.config/openbox/

Apologies for any confusion.


One thing at a time

Offline

#4 2012-03-27 05:40:46

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved]Untangling my Openbox Install

it still refuses to execute anything beyond the default installed rc.xml menu.xml and autostart even though it shouldn't

Could you clarify what you mean by that exactly? Whatever you have configured in the xml files is not applied (menu,..) or,...?

PS: also check that the directory itself (~/.config/openbox/) has the correct permissions.


Burninate!

Offline

#5 2012-03-27 18:33:21

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: [Solved]Untangling my Openbox Install

Gcool wrote:

it still refuses to execute anything beyond the default installed rc.xml menu.xml and autostart even though it shouldn't

Could you clarify what you mean by that exactly? Whatever you have configured in the xml files is not applied (menu,..) or,...?

I've edited my original post for clarity and added a screencap.  You are correct that whatever I configure in xml is not applied.

Gcool wrote:

check that the directory itself (~/.config/openbox/) has the correct permissions.

drwxr-xr-x  2 js   users  4096 Mar 26 19:33 openbox

Strangely, I found a literal $HOME directory within /js/home/ that is generating leafpad and spacefm configure files when I boot into Openbox.

/home/js/$HOME/.config

rather than

/home/js/.config

edit: added $HOME issue

Last edited by medianmajik (2012-03-27 18:55:20)


One thing at a time

Offline

#6 2012-03-27 18:46:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [Solved]Untangling my Openbox Install

*confused*

What is /js/home

Normally that would be /home/js/ assuming "js" is your user account.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-03-27 18:56:44

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: [Solved]Untangling my Openbox Install

Trilby wrote:

Normally that would be /home/js/ assuming "js" is your user account.

I incorrectly wrote the order.  It is /home/js and "js" is the user account.


One thing at a time

Offline

#8 2012-03-27 19:02:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [Solved]Untangling my Openbox Install

Can you post the output of

env | grep XDG

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2012-03-27 19:53:41

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: [Solved]Untangling my Openbox Install

$ env | grep XDG
XDG_DATA_HOME=/home/js/.local/share
XDG_SESSION_COOKIE=5b7b173476ad8cb42445d8dc00000475-1332877792.365901-1956612543
XDG_CONFIG_DIRS=/etc/xdg
XDG_CONFIG_HOME=$HOME/.config
XDG_CACHE_HOME=/home/js/.cache
XDG_DATA_DIRS=/usr/share/:/usr/local/share/

One thing at a time

Offline

#10 2012-03-27 20:25:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [Solved]Untangling my Openbox Install

somehow your XDG_CONFIG_HOME is wrong.  Have you ever reset it?

If you set a variable like so XDG_CONFIG_HOME="$HOME/.config" you'd be fine.  But if you replace those double-quotes with single quotes bash wont expand the variable and you'll find yourself in the bind you are currently in.

You'll have to reset XDG_CONFIG_HOME to /home/js/.config then you'll have to clean the directory with the actual name $HOME and remove it and move anything imortant to /home/js/

You should check all your startup files (start with ~/.bashrc and /etc/bashrc) to figure out what is setting that variable incorrectly.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2012-03-27 20:57:33

medianmajik
Member
Registered: 2010-05-27
Posts: 53

Re: [Solved]Untangling my Openbox Install

Trilby, thank you for helping me solve this!  I'd incorrectly used single quotes in .bashrc and, after changing to double quotes, Openbox is behaving just fine now.

export XDG_CONFIG_HOME="$HOME/.config"

One thing at a time

Offline

#12 2012-03-27 23:27:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: [Solved]Untangling my Openbox Install

Glad it worked, but AFAIK you should not have to set that variable at all.  Off the top of my head I don't know which Xorg process sets it, or if it is in a config file somewhere, but I don't know of any reason you should set it in bashrc.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2012-03-28 00:14:36

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved]Untangling my Openbox Install

Edit -- wrong thread.

Last edited by thisoldman (2012-03-28 00:22:26)

Offline

Board footer

Powered by FluxBB