You are not logged in.
Ok, so I've tried searching the forums and either cannot find the one that answers my question or it doesn't exist. Either way, I have my openbox autostart script set up like this:
xcompmgr &
nitrogen --restore &
yakuake &
cairo-dock &
The file is saved as ~/.config/openbox/autostart.sh Only cairo dock and yakuake start up at the start of the openbox session. The cairo dock has the black box around it from xcompmgr not being run but then if i manually start it in a terminal with "xcompmgr" then it goes away like it should. So xcompmgr won't autostart and nitrogen won't restore either. Nitrogen works if I manually do it after the openbox session has begun but only stays while i'm logged in, no restoring upon next login. I'm trying to figure out if I have some syntax wrong? I've tried separating the xcompmgr as far away from the cairo dock to give it more time to load but nothing...any help would be very appreciated.
other info: I have no DE, just the dock, openbox and nitrogen for my desktop.
Last edited by DonTonberry (2012-10-05 00:48:00)
Offline
Is the file that nitrogen tries to use maybe in a partition that isn't mounted on startup?
Also, I'm not sure, but maybe assigning some values to xcompmgr could change things.
Or try to use compton instead.
Here's my autostart file and it works like a charm.
setxkbmap -model pc104 -layout us,gr -variant ,extended -option grp_led:scroll,grp:alt_shift_toggle &
compton -fF -I0.034 -O0.08 -D7.4 &
nitrogen --restore &
tint2 &
pnmixer &Offline
Try copying autostart.sh to autostart see if that works
Mr Green
Offline
I've tried xcompmgr -c & and other variables and none work, and as far as nitrogen, it uses files on the home partition. I have gpt partitioned disk sda1 grub-bios 2mb partition, sda2 15g root partition as ext4, sda3 5gb (ish) swap partition and sda4 300gb home partition as ext4. as far as i know, root and home mount on startup, i've never had any trouble accessing files or anything.
Last edited by DonTonberry (2012-10-04 17:31:30)
Offline
I've tried separating the xcompmgr as far away from the cairo dock to give it more time to load but nothing...any help would be very appreciated.
Lol... It doesn't matter how many empty lines you add.
Use this:
nitrogen --restore &
xcompmgr &
(sleep 4 && yakuake) &
(sleep 5 && cairo-dock) &Be warned that composite managers will cause video tearing, because OpenBox is not an OpenGL window manager.
An alternative would be to add them to ~/.xinitrc, above the exec line (and with a "&" symbol at the end -- very important!).
PS: Please use [ code ] tags when posting code. It's easier to read this way. And don't forget to mark the topic as solved (by editing the first post), so that other people (including yourself sometimes) may find useful.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
DSpider,
I have tried adding to ~/.xinitrc and nothing, and I'm not actually adding blank lines to the autostart, I meant that I had xcompmgr run first and cairo-dock run last. Also, since i'm new I don't know how to do the [ code ] tags on the forums yet but will look into it for the next time i have to post code. No clue what you mean by video tearing either, I'm a Newbie.
Mr. Green, when you say to copy autostart.sh to autostart do you mean to just make a document called autostart without the suffix of .sh?
Offline
xcompmgr &
nitrogen --restore &
yakuake &
cairo-dock &ha, okay so that's how you post code, got it DSpider
Last edited by DonTonberry (2012-10-04 20:08:22)
Offline
Did you see the sleep commands DSpider added to your code? Did you try them?
Offline
Mr. Green, when you say to copy autostart.sh to autostart do you mean to just make a document called autostart without the suffix of .sh?
Yes, I just installed Arch with openbox on a different laptop a few days ago and the autostart file on it is ~/.config/openbox/autostart, not ~/.config/openbox/autostart.sh .
It doesn't explain how two of the programs on your list start, but it might be worth a try.
Offline
2ManyDogs, I added the sleep commands and still, only cairo dock and yakuake start up, xcompmgr does not and neither does nitrogen. The problem i think is not that xcompmgr needs more time, rather that it doesn't start at all.
I also tried saving the autostart file as just "autostart" NOT "autostart.sh" and that did not work either. Added xcompmgr to ~/.xinitrc as "exec xcompmgr &" and that did not work. I know that xcompmgr is there, when i run it on a terminal the black box around cairo goes away and i know that nitrogen is there, i can run it in a terminal and nitrogen pops up, but for some reason, openbox will not start either of these programs. neither will ~/.xinitrc it seems.
Offline
Here's another interesting bit, I just installed numlockx and put the command into the autostart.sh file I have and it works, yet xcompmgr and nitrogen don't.
Offline
What happens if you run the autostart script after openbox is already running (don't run the commands in the script, run the script itself). In a terminal:
~/.config/openbox/autostart.shOffline
If I paste
~/.config/openbox/autostart.shinto the terminal i get this
bash: /home/tonberry/.config/openbox/autostart.sh: Permission deniedOffline
is it executable?
Offline
i get this when i list all permissions for my user:
drwx------ 17 tonberry users 4096 Oct 4 19:07 .
drwxr-xr-x 4 root root 4096 Oct 3 18:47 ..
drwx------ 3 tonberry users 4096 Oct 3 20:36 .adobe
-rw------- 1 tonberry users 2330 Oct 4 19:22 .bash_history
-rw-r--r-- 1 tonberry users 21 Jul 19 21:00 .bash_logout
-rw-r--r-- 1 tonberry users 57 Jul 19 21:00 .bash_profile
-rw-r--r-- 1 tonberry users 141 Jul 19 21:00 .bashrc
drwxr-xr-x 8 tonberry users 4096 Oct 3 21:02 .cache
drwx------ 12 tonberry users 4096 Oct 3 21:46 .config
drwx------ 3 root root 4096 Oct 3 19:55 .dbus
drwx------ 2 tonberry users 4096 Oct 3 21:43 Downloads
-rw------- 1 tonberry users 16 Oct 3 21:22 .esd_auth
-rw-r--r-- 1 tonberry users 80 Oct 3 21:45 .fehbg
drwx------ 3 tonberry users 4096 Oct 4 19:08 .gconf
drwxr-xr-x 2 tonberry users 4096 Oct 3 21:24 .gstreamer-0.10
-rw------- 1 tonberry users 0 Oct 3 20:13 .gtk-bookmarks
dr-x------ 2 tonberry users 0 Oct 4 19:07 .gvfs
drwxr-xr-x 3 tonberry users 4096 Oct 3 20:51 .kde4
drwxr-xr-x 3 tonberry users 4096 Oct 3 20:13 .local
drwx------ 3 tonberry users 4096 Oct 3 20:36 .macromedia
drwxr-xr-x 3 tonberry users 4096 Oct 3 21:43 Pictures
drwx------ 3 tonberry users 4096 Oct 3 20:28 .pki
drwx------ 2 tonberry users 4096 Oct 4 17:23 .pulse
-rw------- 1 tonberry users 256 Oct 3 20:53 .pulse-cookie
drwxr-xr-x 3 tonberry users 4096 Oct 3 20:18 .thumbnails
-rw------- 1 tonberry users 50 Oct 4 19:07 .Xauthority
-rw-r--r-- 1 tonberry users 336 Oct 4 16:59 .xinitrcOffline
what's really confusing me is that some of the programs in that .sh script will run. would xcompmgr and nitrogen have different permissions than numlockx or cairo dock?
Offline
We specifically want to see permissions for autostart.sh. I don't think it needs to be executable for openbox to run it, but it does for you to run it. Do us a favor and just run
chmod +x ~/.config/openbox/autostartand then try to run the script again:
~/.config/openbox/autostart(edit) Personally, I still think it's a timing issue. That's usually the case when some parts of autostart work and others don't. Have you posted your entire autostart.sh (is it just the little piece you posted, or is there more)?
Last edited by 2ManyDogs (2012-10-05 00:30:10)
Offline
did as you said 2ManyDogs and received this:
~]$ ~/.config/openbox/autostart.sh
/home/tonberry/.config/openbox/autostart.sh: line 3: $'\357\273\277nitrogen': command not found
/home/tonberry/.config/openbox/autostart.sh: line 1: $'\357\273\277xcompmgr': command not found
[tonberry@knife ~]$ QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Yakuake is already running, opening window....
============================================================================
Cairo-Dock version : 3.0.2
Compiled date : Jul 16 2012 19:29:57
Built with GTK : 3.4
Running with OpenGL: 1
============================================================================
CairoKeyBinding '<Super>L' failed!
warning : (/tmp/yaourt-tmp-arch/aur-cairo-dock/src/cairo-dock-3.0.2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:283)
Couldn't bind '<Super>L' (Log out: Lock the screen)
This shortkey is probably already used by another applet or another application
CairoKeyBinding '<Control>F12' failed!
warning : (/tmp/yaourt-tmp-arch/aur-cairo-dock/src/cairo-dock-3.0.2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:283)
Couldn't bind '<Control>F12' (Log out: Show the log-out menu)
This shortkey is probably already used by another applet or another application
CairoKeyBinding '<Control>Return' failed!
warning : (/tmp/yaourt-tmp-arch/aur-cairo-dock/src/cairo-dock-3.0.2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:283)
Couldn't bind '<Control>Return' (Scooby-Do: Enable/disable the Finder)
This shortkey is probably already used by another applet or another application
CairoKeyBinding '<Super>Return' failed!
warning : (/tmp/yaourt-tmp-arch/aur-cairo-dock/src/cairo-dock-3.0.2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:283)
Couldn't bind '<Super>Return' (Control from keyboard: Enable/disable the keyboard control of the dock)
This shortkey is probably already used by another applet or another application
CairoKeyBinding '<Shift><Ctrl>F4' failed!
warning : (/tmp/yaourt-tmp-arch/aur-cairo-dock/src/cairo-dock-3.0.2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:283)
Couldn't bind '<Shift><Ctrl>F4' (Show Desktop: Expose all the desktops)
This shortkey is probably already used by another applet or another applicationOffline
I'm guessing cairo freaked out because it was already running
Offline
Yeah, OK. There's your problem. You have weird characters in front of the names "nitrogen" and "xcompmgr" so those commands can't be found. Delete those lines and enter them again, then run the script again.
Last edited by 2ManyDogs (2012-10-05 00:36:21)
Offline
except that I don't see those characters in my autostart script, they aren't in that script that I can tell, my autostart is this:
xcompmgr -c &
numlockx &
nitrogen --restore &
yakuake &
cairo-dock &that is all i see when i open autostart.sh with leafpad or libre writer to edit it
Offline
They are non-printing characters. Please just delete the lines (use leafpad or nano -- it's usually not a good idea to use libre writer to edit code) and retype them, then run the script again. Work with me here Don.
Last edited by 2ManyDogs (2012-10-05 00:41:59)
Offline
Hidden characters
Offline
thank you very much 2ManyDogs, that solved it (I usually use leafpad as code editor) deleting the lines and re-entering the commands worked, xcompmgr is up, and I have wallpaper! Is there a way in leafpad to show hidden characters, and how would they have been put on those commands? Either way I'm saying a huge Thank You and marking this as solved.
Offline
You're welcome. I'm not sure how they got in there -- maybe if you ever edited the file in libreoffice?
If autostart.sh works when you rename it to just autostart, you might want to do that. autostart.sh is the "old" openbox autostart file name, and they apparently still support it, but at some point that may go away (with an update, when you least expect it).
Last edited by 2ManyDogs (2012-10-05 00:51:53)
Offline