mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Fix autostart
This commit is contained in:
parent
8f5b8129f6
commit
a26a3c4c78
|
@ -3,4 +3,5 @@
|
|||
# Automatically start the applications in $HOME/.config/autostart
|
||||
|
||||
AUTOSTART_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/autostart"
|
||||
find "$AUTOSTART_DIR" -name '*.desktop' -exec ~/.local/bin/scripts/deskopen "{}" \;
|
||||
|
||||
find $AUTOSTART_DIR -name "*.desktop" | xargs -I {} sh -c "~/.local/bin/scripts/deskopen {} &"
|
||||
|
|
|
@ -7,5 +7,5 @@ exec_line=$(grep '^Exec' "$1" | tail -1)
|
|||
cmd=$(echo $exec_line | sed 's/^Exec=//' | sed 's/%.//')
|
||||
# Remove "" around command (if present)
|
||||
cmd=$(echo $cmd | sed 's/^"//g' | sed 's/" *$//g')
|
||||
# Run the exec line of the application in the background
|
||||
$($cmd) &
|
||||
# Run the exec line of the application using /bin/sh
|
||||
/bin/sh -c "$cmd"
|
||||
|
|
Loading…
Reference in a new issue