projects
/
dotfiles
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1464cb1
)
Ensures tmux doesn't start twice
author
Julien Valroff
<julien@kirya.net>
Thu, 21 Jul 2011 18:33:16 +0000
(20:33 +0200)
committer
Julien Valroff
<julien@kirya.net>
Thu, 21 Jul 2011 18:33:16 +0000
(20:33 +0200)
autostart.sh
patch
|
blob
|
history
diff --git
a/autostart.sh
b/autostart.sh
index
23c740f
..
8d7ef6a
100644
(file)
--- a/
autostart.sh
+++ b/
autostart.sh
@@
-34,7
+34,7
@@
chmod 600 $HOME/.Xdbus
env | grep DBUS_SESSION_BUS_ADDRESS > $HOME/.Xdbus
echo 'export DBUS_SESSION_BUS_ADDRESS' >> $HOME/.Xdbus
-tmux new-session -d -s offlineimap offlineimap &
+
[ $(pgrep -c offlineimap) = 1 ] ||
tmux new-session -d -s offlineimap offlineimap &
# Launch default desktop applications
gajim &