← Back to team overview

touch-packages team mailing list archive

[Bug 1393551] [NEW] /usr/bin/see from mime-support should keep temporary file extensions

 

Public bug reported:

If /usr/bin/see decides to make a temporary link to the file it's
processing, it should keep the extension of the original file if it's
reasonably sane (i.e. consists of alphanumeric characters and doesn't
exceed, say, 8 characters)

For example, I run "see Latest Document.png". see creates a link for the
file because the file has a space in the name. The link is called
/tmp/filePMro4U rather than /tmp/filePMro4U.png. see runs gthumb with
the link as the argument. gthumb gets confused.

I realize that programs should not need extensions to recognize the
files, but sometimes they take useful hints from the extensions,
especially for old file formats.

see users tempfile internally, and tempfile has a "--suffix" option that
could be used.

Ubuntu 14.10 i386
mime-support 3.55ubuntu1

** Affects: mime-support (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mime-support in Ubuntu.
https://bugs.launchpad.net/bugs/1393551

Title:
  /usr/bin/see from mime-support should keep temporary file extensions

Status in “mime-support” package in Ubuntu:
  New

Bug description:
  If /usr/bin/see decides to make a temporary link to the file it's
  processing, it should keep the extension of the original file if it's
  reasonably sane (i.e. consists of alphanumeric characters and doesn't
  exceed, say, 8 characters)

  For example, I run "see Latest Document.png". see creates a link for
  the file because the file has a space in the name. The link is called
  /tmp/filePMro4U rather than /tmp/filePMro4U.png. see runs gthumb with
  the link as the argument. gthumb gets confused.

  I realize that programs should not need extensions to recognize the
  files, but sometimes they take useful hints from the extensions,
  especially for old file formats.

  see users tempfile internally, and tempfile has a "--suffix" option
  that could be used.

  Ubuntu 14.10 i386
  mime-support 3.55ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mime-support/+bug/1393551/+subscriptions


Follow ups

References