← Back to team overview

desktop-packages team mailing list archive

[Bug 1454833] [NEW] xdg-mime query filetype does not work on KDE 5 (Fixed in Portland)

 

Public bug reported:

System information:

cat /etc/lsb-release:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=15.04
DISTRIB_CODENAME=vivid
DISTRIB_DESCRIPTION="Ubuntu 15.04"

apt-cache policy xdg-utils:
xdg-utils:
  Installed: 1.1.0~rc1-2ubuntu10
  Candidate: 1.1.0~rc1-2ubuntu10
  Version table:
 *** 1.1.0~rc1-2ubuntu10 0
        500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

Expected behavior:

The command "xdg-mime query filetype $FILENAME" returns the MIME type of
the specified file.

Actual behavior under KDE 5:

No output to stdout. If the specified file is executable, it is
executed, e.g. "xdg-mime query filetype /usr/bin/xclipboard" executes
the program xclipboard.

Source of error:

The xdg-mime script checks in the function "info_kde()" only for KDE
version being 3 or 4. The new Kubuntu release bundles KDE 5 which is not
checked against.

This bug is fixed in the Portland repository:
http://cgit.freedesktop.org/xdg/xdg-
utils/commit/?id=18645a50fe25064b42ba421e231869c6063705f7

** Affects: xdg-utils (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- xdg-mime does not work on KDE 5 (Fixed in Portland)
+ xdg-mime query filetype does not work on KDE 5 (Fixed in Portland)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1454833

Title:
  xdg-mime query filetype does not work on KDE 5 (Fixed in Portland)

Status in xdg-utils package in Ubuntu:
  New

Bug description:
  System information:

  cat /etc/lsb-release:
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=15.04
  DISTRIB_CODENAME=vivid
  DISTRIB_DESCRIPTION="Ubuntu 15.04"

  apt-cache policy xdg-utils:
  xdg-utils:
    Installed: 1.1.0~rc1-2ubuntu10
    Candidate: 1.1.0~rc1-2ubuntu10
    Version table:
   *** 1.1.0~rc1-2ubuntu10 0
          500 http://archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
          100 /var/lib/dpkg/status

  Expected behavior:

  The command "xdg-mime query filetype $FILENAME" returns the MIME type
  of the specified file.

  Actual behavior under KDE 5:

  No output to stdout. If the specified file is executable, it is
  executed, e.g. "xdg-mime query filetype /usr/bin/xclipboard" executes
  the program xclipboard.

  Source of error:

  The xdg-mime script checks in the function "info_kde()" only for KDE
  version being 3 or 4. The new Kubuntu release bundles KDE 5 which is
  not checked against.

  This bug is fixed in the Portland repository:
  http://cgit.freedesktop.org/xdg/xdg-
  utils/commit/?id=18645a50fe25064b42ba421e231869c6063705f7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1454833/+subscriptions


Follow ups

References