mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 05:34:35 +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
|
# Automatically start the applications in $HOME/.config/autostart
|
||||||
|
|
||||||
AUTOSTART_DIR="${XDG_CONFIG_HOME:-$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/%.//')
|
cmd=$(echo $exec_line | sed 's/^Exec=//' | sed 's/%.//')
|
||||||
# Remove "" around command (if present)
|
# Remove "" around command (if present)
|
||||||
cmd=$(echo $cmd | sed 's/^"//g' | sed 's/" *$//g')
|
cmd=$(echo $cmd | sed 's/^"//g' | sed 's/" *$//g')
|
||||||
# Run the exec line of the application in the background
|
# Run the exec line of the application using /bin/sh
|
||||||
$($cmd) &
|
/bin/sh -c "$cmd"
|
||||||
|
|
Loading…
Reference in a new issue