Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vodolaz095/e74972c114356223177980e5da043112 to your computer and use it in GitHub Desktop.
Save vodolaz095/e74972c114356223177980e5da043112 to your computer and use it in GitHub Desktop.
debuging xdg-open
+ check_common_commands http://example.com
+ '[' 1 -gt 0 ']'
+ parm=http://example.com
+ shift
+ case "$parm" in
+ '[' 0 -gt 0 ']'
+ '[' -z '' ']'
+ unset XDG_UTILS_DEBUG_LEVEL
+ '[' 0 -lt 1 ']'
+ xdg_redirect_output=' > /dev/null 2> /dev/null'
+ '[' xhttp://example.com '!=' x ']'
+ url=
+ '[' 1 -gt 0 ']'
+ parm=http://example.com
+ shift
+ case "$parm" in
+ '[' -n '' ']'
+ url=http://example.com
+ '[' 0 -gt 0 ']'
+ '[' -z http://example.com ']'
+ detectDE
+ unset GREP_OPTIONS
+ '[' -n LXDE ']'
+ case "${XDG_CURRENT_DESKTOP}" in
+ DE=lxde
+ '[' xlxde = x ']'
+ '[' xlxde = x ']'
+ '[' xlxde = x ']'
+ '[' xlxde = xgnome ']'
+ '[' -f /run/user/1000/flatpak-info ']'
+ '[' xlxde = x ']'
+ DEBUG 2 'Selected DE lxde'
+ '[' -z '' ']'
+ return 0
+ case "${BROWSER}" in
+ case "$DE" in
+ open_lxde http://example.com
+ pcmanfm --help -a is_file_url_or_path http://example.com
++ file_url_to_path http://example.com
++ local file=http://example.com
++ echo http://example.com
++ grep -q '^file:///'
++ echo http://example.com
+ local file=http://example.com
+ echo http://example.com
+ grep -q '^/'
++ pwd
+ file=/home/vodolaz095/http://example.com
+ pcmanfm /home/vodolaz095/http://example.com
+ '[' 0 -eq 0 ']'
+ exit_success
+ '[' 0 -gt 0 ']'
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment