🔧 chore(hypr/scripts/exec): support executing desktop entries by name
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script executes the provided program with UWSM
|
||||
# if in usage or launches it normally with hyprctl.
|
||||
# if active, or else normally.
|
||||
# ---------------
|
||||
# Licensed under the MIT License
|
||||
# Made by retrozinndev (João Dias)
|
||||
@@ -13,4 +13,9 @@ if uwsm check is-active; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ $1 =~ [.]desktop$ ]]; then
|
||||
gtk-launch $@
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user