You are not logged in.

#1 2008-11-10 00:17:37

000krf
Member
Registered: 2008-10-30
Posts: 23

[SOLVED] Nitrogen --restore ... Won't in LXDE

I'm using LXDE as my desktop environment, but I don't like having icons on the wallpaper. I removed the file manager, pcmanfm, (pacman -R pcmanfm) which also controls the desktop. I installed nitrogen and set a wallpaper for my background image. So far, so good. In my .config/openbox/autostart.sh file I added "nitrogen --restore &" but when I start x from the command line all I get is a black background. If I run "nitrogen --restore" from a terminal, the wallpaper will reset. I've tried a sleep value from 2 to 10 with no change. I'm sure it is something simple I'm overlooking, but I can't think what it would be.

Help, please smile

Kent

Last edited by 000krf (2008-11-10 01:48:19)

Offline

#2 2008-11-10 00:23:13

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

What else is in your autostart.sh? Make sure it has the correct permissions (I think you need execute)

Offline

#3 2008-11-10 00:23:33

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

I think LXDE uses its own session management .

Now I'm a complete n00b , so don't take me seriously but did you try adding a launcher in   ~/.config/autostart


English is not my native language .

Offline

#4 2008-11-10 00:28:54

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

Do you have icons on the desktop? If so, turn off PCManFM's desktop icon support. If you wish to use said feature, you won't need nitrogen to set the wallpaper - PCManFM will do it itself.

Offline

#5 2008-11-10 00:54:01

000krf
Member
Registered: 2008-10-30
Posts: 23

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

heleos wrote:

What else is in your autostart.sh? Make sure it has the correct permissions (I think you need execute)

Here is my autostart.sh

# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.

# Set a background color
BG=""
if which hsetroot >/dev/null; then
    BG=hsetroot
else
    if which esetroot >/dev/null; then
    BG=esetroot
    else
    if which xsetroot >/dev/null; then
        BG=xsetroot
    fi
    fi
fi
test -z $BG || $BG -solid "#303030"

# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
fi

# Conky
#conky &
nitrogen --restore &

The permissions are Owner: rwx Group: none Others: none

Nezmer wrote:

I think LXDE uses its own session management .

Now I'm a complete n00b , so don't take me seriously but did you try adding a launcher in   ~/.config/autostart

That is entirely possible, and probable. I just don't know what file I need to edit.

Gullible Jones wrote:

Do you have icons on the desktop? If so, turn off PCManFM's desktop icon support. If you wish to use said feature, you won't need nitrogen to set the wallpaper - PCManFM will do it itself.

No, I don't have icons on the desktop. As I said in my OP, I have removed PCManFM. When I turned off the desktop icon support, I wasn't able to change wallpapers either. That is why I removed PCManFM and installed nitrogen.

Offline

#6 2008-11-10 01:50:42

000krf
Member
Registered: 2008-10-30
Posts: 23

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

SOLVED:

The autostart file I needed to edit is:

/etc/xdg/lxsession/LXDE/autostart

Apparently, this is a system wide file. I still can't figure out how to do it on a per user basis. At least it is working now.

Offline

#7 2008-11-10 01:52:45

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

000krf wrote:

That is entirely possible, and probable. I just don't know what file I need to edit.

LXDE does NOT use autostart.sh.

Instead, add *.desktop files in your ~/.config/autostart folder (make one if it is not there).

It would be nice to have a small app for quick adding LXDE startup programs. I'm planning to make one smile

Offline

#8 2008-12-02 18:17:04

ottod
Member
Registered: 2008-11-28
Posts: 3

Re: [SOLVED] Nitrogen --restore ... Won't in LXDE

pcmanfm --set-wallpaper /path/file.jpg in a cron job

Offline

Board footer

Powered by FluxBB