You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
644 B
20 lines
644 B
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
|
|
index 50e31e6..6f698dc 100644
|
|
--- a/scripts/xdg-open.in
|
|
+++ b/scripts/xdg-open.in
|
|
@@ -320,7 +320,14 @@ search_desktop_file()
|
|
args=$(( $args - 1 ))
|
|
done
|
|
[ $replaced -eq 1 ] || set -- "$@" "$target"
|
|
- env "$command" "$@"
|
|
+ if [ x"$(get_key "${file}" "Terminal")" = x"true" ]; then
|
|
+ if [ -z "$TERMINAL" ]; then
|
|
+ TERMINAL="xterm -e"
|
|
+ fi
|
|
+ $TERMINAL env "$command" "$@" &
|
|
+ else
|
|
+ env "$command" "$@"
|
|
+ fi
|
|
|
|
if [ $? -eq 0 ]; then
|
|
exit_success
|
|
|