You are not logged in.

#1 2012-09-09 03:03:09

llsyblanket
Member
Registered: 2012-09-09
Posts: 3

Menus in LXDE, only root user has them

So I go through "Beginner's Guide" and get to the part about "Choose and install a graphical interface".

I want LXDE so I try to follow directions in wiki article for "LXDE",
installing group lxde and other items as they are suggested.

Now
as root user I can start LXDE by issuing from command line
xinit /usr/bin/startlxde
and I get LXDE running OK with menus populated with the few applications I have so far.

Problem:
As a non-root user, I start LXDE by issuing from command line
xinit /usr/bin/startlxde
but the only menu items I get are "Run" (which does nothing) and "Log Out" with does offer me a log-out window.

I suspect a file exists somewhere that root user can find and use
but
non-root user either cannot find it or doesn't have sufficient permissions.

Ideas? Advice?

Thanks.

Last edited by llsyblanket (2012-09-09 03:11:24)

Offline

#2 2012-09-09 03:07:53

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Menus in LXDE, only root user has them

We need more information. How much of the wiki did you do? Did you do this part?

After the installation finishes, copy three files to ~/.config/openbox as instructed by pacman:

Place menu.xml, rc.xml and autostart in ~/.config/openbox
They can be found in /etc/xdg/openbox

As the user of interest

mkdir -p ~/.config/openbox
cp /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/autostart ~/.config/openbox

Did you do this part?

If not using a display manager you would like to add

export DESKTOP_SESSION=LXDE

to your ~/.bash_profile in order xdg-open to function properly.

Do you have a .xinitrc file in your user/home directory?

To start LXDE from the command line without a ~/.xinitrc:

$ xinit /usr/bin/startlxde

If ~/.xinitrc already exists this will not work.

Last edited by 2ManyDogs (2012-09-09 03:12:14)

Offline

#3 2012-09-09 03:25:31

llsyblanket
Member
Registered: 2012-09-09
Posts: 3

Re: Menus in LXDE, only root user has them

Thanks for your reply!

All these things got done (and maybe undone) during the last fews day of trial and error.

Just now,
re-did
    mkdir -p ~/.config/openbox
    cp /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/autostart ~/.config/openbox

checked contents of ~/.bash_profile
and it did indeed contain
export DESKTOP_SESSION=LXDE

command "echo $DESKTOP_SESSION" did return "LXDE"

file ~/.xinitrc does not exist.

Tried again, as non-root user, hoping I'd get lucky
xinit /usr/bin/startlxde

Alas, same result,
only 2 menu items: "Run" and "Logout"

Last edited by llsyblanket (2012-09-09 03:42:42)

Offline

#4 2012-09-09 03:31:32

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Menus in LXDE, only root user has them

OK, I'm not an LXDE expert (and it's very late here) so you might have to wait for help.

Offline

#5 2012-09-13 15:29:23

llsyblanket
Member
Registered: 2012-09-09
Posts: 3

Re: Menus in LXDE, only root user has them

OK, my non-root user has LXDE menus now.

Here is what I think happened:

This first time I launched LXDE from command line using
xinit /usr/bin/startlxde
I did so as root user.

So,
all the configuration files that were created in non-root user's home directory were owned by root.
hence
when when non-root user launched LXDE, non-root did not have sufficient permissions (access) to configuration files in its own home directory.

The fix:
use chown to make non-root the owner of any files I could find in non-root's home directory.

Hope this helps any one with similar problems.

Offline

Board footer

Powered by FluxBB