aboutsummaryrefslogtreecommitdiff
path: root/packages/sensible-apps
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-01-03 12:11:51 +0530
committerAkshay Nair <phenax5@gmail.com>2024-01-03 12:11:51 +0530
commitb2348ede8bef85e8ebf9ed49bab81defafd7a8a4 (patch)
tree3511fcd26160e4eb4fefac6873f1335153d115ee /packages/sensible-apps
parent6dcf30e323ae94e1c5fd8c34190f81c2bc5cf4c0 (diff)
downloadnixos-config-b2348ede8bef85e8ebf9ed49bab81defafd7a8a4.tar.gz
nixos-config-b2348ede8bef85e8ebf9ed49bab81defafd7a8a4.zip
config sync
Diffstat (limited to 'packages/sensible-apps')
-rw-r--r--packages/sensible-apps/install.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/sensible-apps/install.sh b/packages/sensible-apps/install.sh
index ec13109..ab66e01 100644
--- a/packages/sensible-apps/install.sh
+++ b/packages/sensible-apps/install.sh
@@ -1,17 +1,19 @@
apps="
-sensible-terminal $TERMINAL
-sensible-editor $EDITOR
+sensible-terminal exec $TERMINAL
+sensible-editor exec $EDITOR
sensible-browser $BROWSER
sensible-private-browser $PRIVATE_BROWSER
";
BIN=$out/bin;
+mkdir -p $BIN;
+
echo -e "$apps" | while read app bin; do
if [[ ! -z "$bin" ]]; then
echo "[SENSIBLE_APPS]:: Setting $app to $bin ($BIN/$bin)";
mkdir -p $BIN;
- echo -e "#!/usr/bin/env sh\nexec $bin \"\$@\"" > $BIN/$app;
+ echo -e "#!/usr/bin/env sh\n $bin \"\$@\"" > $BIN/$app;
chmod +x $BIN/$app;
fi;
done;