Skip to content

Instantly share code, notes, and snippets.

@alexblackie
Created August 19, 2015 17:49
Show Gist options
  • Save alexblackie/0f40369fe48ea0929fa9 to your computer and use it in GitHub Desktop.
Save alexblackie/0f40369fe48ea0929fa9 to your computer and use it in GitHub Desktop.
diff --git a/usr/bin/xdg-open.orig b/usr/bin/xdg-open
index 7218fee..53cd90a 100755
--- a/usr/bin/xdg-open.orig
+++ b/usr/bin/xdg-open
@@ -643,7 +643,7 @@ search_desktop_file()
args=$(( $args - 1 ))
done
[ $replaced -eq 1 ] || set -- "$@" "$target"
- "$command_exec" "$@"
+ eval $("$command_exec" "$@")
if [ $? -eq 0 ]; then
exit_success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment