SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-09-11 04:22:52

bonezzzzzzzzzzz
Member
Registered: 2012-08-29
Posts: 11

Autostart problem (won't run)

Greetings,

I was messing with my autostart file, adding a few things, and it stopped working.  Well, first it would only start like 6 out of the 12 things that I wanted it to, and then when I tried to revert it back to the original it stopped running altogether.  In the terminal when I run it I get

"./autostart: line 38: syntax error near unexpected token `)'
./autostart: line 38: `) &'"

I looked at line 38, and I don't think that I messed with it at all.  (It's the line right under the command that starts tint2)  What I've been looking around for and not finding is the default autostart file for #! 11. 

Also, here is the contents of my autostart file in case someone sees that it's easily fixable (but it doesn't really matter that much since I already tried to put (most) everything back to how it was in the original). 

## Openbox autostart.sh
## ====================
## When you login to your CrunchBang Openbox session, this autostart script 
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## Note*: some programs, such as 'nm-applet' are run via XDG autostart.
## Run '/usr/lib/openbox/openbox-xdg-autostart --list' to list any
## XDG autostarted programs.
##
## More information about this can be found at:
## http://openbox.org/wiki/Help:Autostart
##
## If you do something cool with your autostart script and you think others
## could benefit from your hack, please consider sharing it at:
## http://crunchbanglinux.org/forums/
##
## Have fun! :)

## Set root window colour
hsetroot -solid "#2E3436" &

## Group start:
## 1. nitrogen - restores wallpaper
## 2. compositor
## 3. sleep - give compositor time to start
## 4. conky
## 5. cairo-dock
## 6. tint2 panel

(\
nitrogen --restore && \
cb-compositor --start && \
sleep 2s && \
conky -q && \
cairo-dock && \
tint2 && \
) &

## Enable hot corners
cb-hotcorners --daemon &

## Volume control for systray
(sleep 2s && pnmixer) &

## Volume keys daemon
xfce4-volumed &

## Enable power management (DISABLED)
## xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'touchpad' /proc/bus/input/devices; then
    synclient VertEdgeScroll=1 &
    synclient TapButton1=1 &
fi

## Start xscreensaver (DISABLED)
## xscreensaver -no-splash &

## Start Clipboard manager
(sleep 3s && clipit) &

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &

## cb-welcome - post-installation script, will not run in a live session and
## only runs once. Safe to remove.
(sleep 10s && cb-welcome --firstrun) &

## cb-fortune - have Waldorf say a little adage
#(sleep 120s && cb-fortune) &

## GNOME PolicyKit and Keyring
(\
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 && \
/usr/bin/gnome-keyring-daemon --start --components=ssh && \
/usr/bin/gnome-keyring-daemon --start --components=secrets && \
/usr/bin/gnome-keyring-daemon --start --components=pkcs11 && \
/usr/bin/gnome-keyring-daemon --start --components=gpg \
) &

Last edited by bonezzzzzzzzzzz (2012-09-11 04:25:31)


I'm in the building and I'm feelin' myself.

Offline

Help fund CrunchBang, donate to the project!

#2 2012-09-11 04:45:30

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,257
Website

Re: Autostart problem (won't run)

Sorry, I can't find anything wrong with that... maybe someone else will spot it?

Anyway, the default user files should all be in /etc/skel so the openbox autostart file should be at /etc/skel/.config/openbox/autostart


John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Online

#3 2012-09-11 04:53:16

gurtid
#! Junkie
From: NEW ZEALAND
Registered: 2011-04-07
Posts: 379

Re: Autostart problem (won't run)

here's a link to (perhaps) an original - yeah there's obvious differences around line38 when compared to the one in the link

http://crunchbanglinux.org/forums/post/245019/#p245019

would have thought an original autostart would be in skel somewhere.

[Edit] perhaps . . . etc/skel/.config/openbox/autostart.sh . . . ???

[Edit 2] note to self : read other replies b4 posting

Last edited by gurtid (2012-09-11 05:06:27)


all your Base are belong to us

Offline

#4 2012-09-11 05:41:27

bonezzzzzzzzzzz
Member
Registered: 2012-08-29
Posts: 11

Re: Autostart problem (won't run)

johnraff - Thanks, I'm checking there currently. 

And indeed it was there.  I just replaced it, hopefully things will work after loging out/in again. 

gurtid - Right on, thank  you for that.


I'm in the building and I'm feelin' myself.

Offline

#5 2012-09-11 05:54:30

bonezzzzzzzzzzz
Member
Registered: 2012-08-29
Posts: 11

Re: Autostart problem (won't run)

The good: almost everything starts up like it should. 
The bad: for some reason conky doesn't start on startup, even when using the original autostart.  I checked the file, it's in there like it should be, but for some reason doesn't start.  When I ran it from the terminal I got this error (and then it started):
"gnome-keyring:: couldn't connect to: /home/bonez/.cache/keyring-ocHEOZ/pkcs11: No such file or directory
"


I'm in the building and I'm feelin' myself.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo