Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fluxbox - Autostart dont work [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Tue Oct 24, 2017 7:05 am    Post subject: Fluxbox - Autostart dont work [solved] Reply with quote

Hello,

i use Fluxbox with startx and an entry in .xinitrc . I want start nm-applet at boot. It doesnt work. I have add in .fluxbox/startup:

Code:
keinerangegeben .fluxbox # less startup

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/home/sdoubleyou/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

echo "Hallo Welt!" > HalloWelt-test2.text
nm-applet &
thunderbird &
firefox &
exec fluxbox
# or if you want to keep a log:
 exec fluxbox -log "/home/michi/.fluxbox/log"

~

Code:

keinerangegeben .fluxbox # ls -all
insgesamt 64
drwx------  3 michi 18 4096 Okt 24 08:17 .
drwxr-xr-x 29 michi 18 4096 Okt 24 08:42 ..
-rw-r--r--  1 michi 18   70 Sep 30 10:33 apps
-rw-r--r--  1 michi 18  358 Okt 24 08:35 fbrun_history
drwxr-xr-x  2 michi 18 4096 Okt 14 19:00 icons
-rw-r--r--  1 michi 18 3040 Okt  1 16:07 init
-rw-r--r--  1 michi 18 3699 Sep 30 10:33 keys
-rw-r--r--  1 michi 18  132 Okt 24 08:17 lastwallpaper
-rw-r--r--  1 michi 18  727 Okt 23 16:57 log
-rw-r--r--  1 michi 18 2867 Okt 22 12:12 menu
-rw-r--r--  1 michi 18 2789 Okt 21 16:07 menu.bak
-rw-r--r--  1 michi 18 1747 Okt 14 19:00 menuconfig
-rw-------  1 michi 18    0 Okt 23 13:58 nano.save
-rw-r--r--  1 michi 18   89 Sep 30 10:33 overlay
-rw-r--r--  1 michi 18    0 Okt 24 08:42 slitlist
-rwxr-xr-x  1 michi 18  600 Okt 23 18:05 startup
-rw-r--r--  1 michi 18  168 Sep 30 10:33 windowmenu
-rw-------  1 michi 18    2 Okt 23 13:58 w.save

Code:


Fluxbox LOG :------------------------------------------
Log Datei: /home/michi/.fluxbox/log
Fluxbox Version: 1.3.7-gentoo-r3
GIT Revision: unknown
Kompiliert am: Oct 13 2017 12:46:29
Compiler: GCC
Compilerversion: 5.4.0

Standardeinstellungen/-Dateien:
       menu: /usr/share/fluxbox/menu
 windowmenu: /usr/share/fluxbox/windowmenu
      style: /usr/share/fluxbox/styles/Emerge
       keys: /usr/share/fluxbox/keys
       init: /usr/share/fluxbox/init
        nls: /usr/share/fluxbox/nls

Einkompilierte Optionen (- => deaktiviert):
-BIDI
-DEBUG
EWMH
IMLIB2
NLS
REMEMBER
RENDER
SHAPE
SLIT
SYSTEMTRAY
TOOLBAR
RANDR
XFT
-XINERAMA
XMB
XPM

------------------------------------------
Fehler: Couldn't connect to XServer passing null display


Whats wrong?
_________________
www.edv-bildung.de


Last edited by michi-monster on Tue Oct 24, 2017 11:47 am; edited 1 time in total
Back to top
View user's profile Send private message
sdoubleyou
n00b
n00b


Joined: 27 May 2016
Posts: 42

PostPosted: Tue Oct 24, 2017 9:27 am    Post subject: Reply with quote

Amusing You use an Xmodmap of mine? :wink:

Note 1
If you use
Code:
exec /usr/bin/fluxbox

in the autostart, then you have to write in the .xinitrc
Quote:
exec startfluxbox

and not
Code:
exec fluxbox


Note 2
Quote:
When you start X, either via 'startx' or by your display manager, it runs startfluxbox which ends up running this ~/.fluxbox/startup script. When this script reaches its end, the X server will shut down (or you will return to your login manager). This is why by default you must have exec fluxbox as the final line in your script, or in the latter case, the wait $fbpid line, both of which will suspend the script's execution until fluxbox exits. This ensures the X server keeps running for as long as fluxbox itself is running, which is usually what you want - Your session will be really short otherwise ;)

http://fluxbox-wiki.org/category/howtos/en/Editing_the_startup_file.html
Code:
This is why by default you must have exec fluxbox as the final line in your script


Your last lines are
Code:
exec fluxbox
exec fluxbox -log "/home/michi/.fluxbox/log"
Back to top
View user's profile Send private message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Tue Oct 24, 2017 11:46 am    Post subject: Reply with quote

I learn from you :-)
I think you have add infos from fluxbox online ... the file is copied.

MANY THANKS - all ok
_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum