Hi Per,

(FYI I did not originally file this bug)

> Please, it's not unusable.

Well, /technically/ true but the current situation is almost
unusable for a lot of modern use-cases. :)

In particular, when I download files in
Chromium with identical names they are called:

  foo.ext
  foo (1).bar
  foo (2).bar
  foo (3).bar

… so the first file works and opens directly in Chromium but
subsequent ones fail with an obscure error message about /tmp.

(I am not using Cinnamon but the "awesome" window manager)

§

>   sh -x /usr/bin/xdg-open "file with spaces.txt"

Attached. So, I think this an issue in run-mailcap:

    $ run-mailcap --debug --action=view file\ with\ spaces.xspf

     - parsing parameter "--action=view"
     - parsing parameter "file with spaces.xspf"
     - Reading mime.types file "/home/lamby/.mime.types"...
       could not read "/home/lamby/.mime.types" -- No such file or directory
     - Reading mime.types file "/usr/local/etc/mime.types"...
       could not read "/usr/local/etc/mime.types" -- No such file or directory
     - Reading mime.types file "/usr/share/etc/mime.types"...
       could not read "/usr/share/etc/mime.types" -- No such file or directory
     - Reading mime.types file "/etc/mime.types"...
     - extension "xspf" maps to mime-type "application/xspf+xml"
     - Reading mailcap file "/home/lamby/.mailcap"...
       could not read "/home/lamby/.mailcap" -- No such file or directory
     - Reading mailcap file "/etc/mailcap"...
     - Reading mailcap file "/usr/local/etc/mailcap"...
       could not read "/usr/local/etc/mailcap" -- No such file or directory
     - Reading mailcap file "/usr/share/etc/mailcap"...
       could not read "/usr/share/etc/mailcap" -- No such file or directory
     - Reading mailcap file "/usr/etc/mailcap"...
       could not read "/usr/etc/mailcap" -- No such file or directory
    Processing file "file with spaces.xspf" of type "application/xspf+xml" 
(encoding=none)...
     - checking mailcap entry "application/xspf+xml; audacious %s; test=test -n 
"$DISPLAY""
     - program to execute: audacious %s
     - running test: test -n "$DISPLAY"  (result=0=true)
     - filename contains shell meta-characters; aliased to '/tmp/fileNt0KnK'
     - executing: audacious /tmp/fileNt0KnK
    ERROR util.cc:269 [audgui_simple_message]: Error playing 
file:///tmp/fileNt0KnK:
    File format not recognised

… so reassign to src:mime-support and mark as "affects" ?


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org 🍥 chris-lamb.co.uk
       `-
+ check_common_commands file with spaces.xspf
+ [ 1 -gt 0 ]
+ parm=file with spaces.xspf
+ shift
+ [ 0 -gt 0 ]
+ [ -z  ]
+ unset XDG_UTILS_DEBUG_LEVEL
+ [ 0 -lt 1 ]
+ xdg_redirect_output= > /dev/null 2> /dev/null
+ [ xfile with spaces.xspf != x ]
+ url=
+ [ 1 -gt 0 ]
+ parm=file with spaces.xspf
+ shift
+ [ -n  ]
+ url=file with spaces.xspf
+ [ 0 -gt 0 ]
+ [ -z file with spaces.xspf ]
+ detectDE
+ unset GREP_OPTIONS
+ [ -n GNOME ]
+ DE=gnome
+ [ xgnome = x ]
+ [ xgnome = x ]
+ [ xgnome = x ]
+ [ xgnome = xgnome ]
+ which gnome-default-applications-properties
+ DE=gnome3
+ [ -f /run/user/1000/flatpak-info ]
+ [ xgnome3 = x ]
+ DEBUG 2 Selected DE gnome3
+ [ -z  ]
+ return 0
+ open_gnome3 file with spaces.xspf
+ gio help open
+ gvfs-open --help
+ open_generic file with spaces.xspf
+ is_file_url_or_path file with spaces.xspf
+ echo file with spaces.xspf
+ grep -q ^file://
+ echo file with spaces.xspf
+ egrep -q ^[[:alpha:]+\.\-]+:
+ return 0
+ file_url_to_path file with spaces.xspf
+ local file=file with spaces.xspf
+ + echo file with spaces.xspf
grep -q ^file:///
+ echo file with spaces.xspf
+ local file=file with spaces.xspf
+ check_input_file file with spaces.xspf
+ [ ! -e file with spaces.xspf ]
+ [ ! -r file with spaces.xspf ]
+ has_display
+ [ -n :0 ]
+ return 0
+ xdg-mime query filetype file with spaces.xspf
+ sed s/;.*//
+ filetype=
+ open_generic_xdg_mime file with spaces.xspf 
+ filetype=
+ xdg-mime query default 
xdg-mime: mimetype argument missing
Try 'xdg-mime --help' for more information.
+ default=
+ [ -n  ]
+ which run-mailcap
+ run-mailcap --action=view file with spaces.xspf
+ [ 0 -eq 0 ]
+ exit_success
+ [ 0 -gt 0 ]
+ exit 0

Reply via email to