You are not logged in.

#1 2015-08-12 19:32:29

Machine_Monarch
Member
Registered: 2015-08-12
Posts: 4

Can't autostart "spacefm --desktop" [Almost Solved]

Hello everyone!

I was hoping someone might be able to help me as I'm having some serious trouble in making spacefm launch it's desktop feature automatically after starting openbox.
So far I've tried adding the following combinations of "spacefm --desktop" to my ~/.config/openbox/autostart as well as .xinitrc but with no result:

spacefm --desktop &
spacefm --desktop -d &

Also tried adding the "exec" before the command in .xinitrc. Didn't work.

Neither openbox's autostart nor .xinitrc seems to able to make it launch automatically. Openbox autostart has no problems launching tint2 so I don't think the error is with openbox. Same goes for .xinitrc as it manages to start openbox without any problems.

I checked the executable permissions for /usr/bin/spacefm and everything seems to be in order:

-rwxr-xr-x 1 root root 1116696 Jun  4 00:15 /usr/bin/spacefm

Why won't it launch? It starts just fine if I launch the command from my xfce4-terminal.

Last edited by Machine_Monarch (2015-08-12 21:25:33)

Offline

#2 2015-08-12 19:48:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't autostart "spacefm --desktop" [Almost Solved]

Post your ~/.xinitrc.
Can you launch 'spacefm --desktop' manually?

Offline

#3 2015-08-12 20:12:26

Machine_Monarch
Member
Registered: 2015-08-12
Posts: 4

Re: Can't autostart "spacefm --desktop" [Almost Solved]

Yes I can launch it manually.

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
exec openbox-session
sleep 5
exec spacefm --desktop -d &

Offline

#4 2015-08-12 20:13:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Can't autostart "spacefm --desktop" [Almost Solved]

The execution of your ~/.xinitrc stops at the first 'exec' it encounters i.e. 'exec openbox-session' - no wonder spacefm is not run.
Read https://wiki.archlinux.org/index.php/Xi … figuration

Offline

#5 2015-08-12 21:24:48

Machine_Monarch
Member
Registered: 2015-08-12
Posts: 4

Re: Can't autostart "spacefm --desktop" [Almost Solved]

Hah! Would at that, eh? wink Thank you for pointing it out. It seems to work now.

Still dosen't explain why I can't seem to launch it from open box's autostart.

Last edited by Machine_Monarch (2015-08-12 21:25:11)

Offline

#6 2015-08-13 01:39:39

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: Can't autostart "spacefm --desktop" [Almost Solved]

Machine_Monarch wrote:

Still dosen't explain why I can't seem to launch it from open box's autostart.

Adding

spacefm --desktop -d &

to the openbox autostart file works here - but replaces openbox's right-mouse-button menu with the spacefm menu.

How do you launch programs without the openbox menu? Desktop icons?

Last edited by sonoran (2015-08-13 01:40:14)

Offline

#7 2015-08-13 13:03:27

Machine_Monarch
Member
Registered: 2015-08-12
Posts: 4

Re: Can't autostart "spacefm --desktop" [Almost Solved]

sonoran wrote:
Machine_Monarch wrote:

Still dosen't explain why I can't seem to launch it from open box's autostart.

Adding

spacefm --desktop -d &

to the openbox autostart file works here - but replaces openbox's right-mouse-button menu with the spacefm menu.

How do you launch programs without the openbox menu? Desktop icons?

I do it by adding a taskbar with icons in it. In my case tint2. I can also righ-click on Tint2 and get my openbox-menu. Desktop right-clock still gets me the spacefm-menu but if one wishes to have the openxbox-menu remain also on desktop that can be configured in "spacefm --desktop-pref".

Offline

Board footer

Powered by FluxBB