Bug#1005074: plasma-workspace: please provide some default MIME-handling application associations

2022-02-06 Thread Simon McVittie
Package: plasma-workspace
Version: 4:5.23.5-1
Severity: normal
X-Debbugs-Cc: debian-desk...@lists.debian.org

Steps to reproduce:

- Install task-kde-desktop
- Also install gimp, nautilus and libglib2.0-bin
- Have a PDF file (if you're testing in a VM like I was, there's one in
  /usr/share/doc/shared-mime-info)
- Log in to a KDE Plasma session
- Run Dolphin
- Double-click the PDF file in Dolphin
- Close whatever viewer opens
- Run Nautilus
- Double-click the PDF file again, this time in Nautilus
- Close whatever viewer opens
- In a terminal, run: gio mime application/pdf

Expected result:

- From both file managers, the PDF opens in some reasonable KDE viewer,
  like Okular
- `gio mime` says the default is the same KDE viewer

Actual result (in my testing, but might be non-deterministic):

- From Dolphin, the PDF opens in Okular as expected
- From Nautilus, the PDF opens in GIMP
- `gio mime` says the default is gimp.desktop

Workaround: sysadmins can put this in /etc/xdg/kde-mimeapps.list or
/usr/local/share/applications/kde-mimeapps.list:

[Default Applications]
application/pdf=okularApplication_pdf.desktop;

or individual users can configure this in ~/.config/kde-mimeapps.list
or ~/.config/mimeapps.list.

This can be resolved in the KDE/Plasma packaging by providing a
/usr/share/applications/kde-mimeapps.list, analogous to the
gnome-mimeapps.list in gnome-session-common.

More details


The way this fits together is:

- The Shared Mime Info spec (implemented by the shared-mime-info package
  in Debian) is used to detect content-types (MIME types) from content
  and extensions.

- The Desktop Entry spec (.desktop files) allows applications to declare
  which content-types they can open. It deliberately does not allow
  application maintainers to mark their application as preferred or a
  default, to avoid an "arms race" where every maintainer says their
  app should be the default.
  https://specifications.freedesktop.org/desktop-entry-spec/latest/

- The MIME apps spec allows distros, desktop environments, sysadmins
  and/or users to choose which application they want to use for each
  content-type, in a way that depends on the desktop environment they
  logged into (but does not depend on the application from which the
  file was opened - Dolphin and Nautilus should behave the same).
  https://specifications.freedesktop.org/mime-apps-spec/latest/

If nobody has expressed a preference, then the fallback behaviour of
the MIME apps spec is to choose an arbitrary one of the apps that can
open the appropriate content-type. For some file types, like PDF, this
leads to unexpected behaviour: there are several apps, including GIMP
and Calibre, that technically *can* open PDFs but are probably not what
you want as a PDF viewer.

Perhaps the Qt/KDE libraries used by Dolphin have some built-in way to
choose a "better" implementation as an extension of the MIME apps spec,
but GLib just follows the spec (and I suspect its arbitrary choice might
just be the first possible handler in alphabetical order).

The intended design seems to be that in a well-integrated desktop
environment, there should usually be an opinionated configuration for
that desktop environment in some central "data" package, installed
to /usr/share/applications/$desktop-mimeapps.list, where $desktop
is the desktop environment's value of $XDG_CURRENT_DESKTOP,
case-folded to lower case. For example, GNOME installs
/usr/share/applications/gnome-mimeapps.list via the gnome-session-common
package, which configures GNOME sessions to prefer GNOME or GNOME-adjacent
applications like eog, evince and firefox.

As with #1004906 in XFCE, I think it would be appropriate for some
"central" KDE/Plasma package (plasma-workspace-data?) to install
/usr/share/applications/kde-mimeapps.list with Okular as the preferred
PDF handler, and perhaps other PDF viewers like qpdfview as a fallback:

[Default Applications]
application/pdf=okularApplication_pdf.desktop;qpdfview.desktop;

Similarly, KDE should probably configure viewers for image/photo file
types that would fit well into an KDE environment, to avoid JPEGs
accidentally getting loaded into GIMP, a web browser, or sometimes
even Wine.

Default URL handlers can also be configured in the same way, by configuring
associations for the pseudo-MIME-types x-scheme-handler/http and
x-scheme-handler/https (or any other URL scheme of interest, such as
x-scheme-handler/mailto).

It would be technically possible for the Debian desktop team to set
defaults on a distro-wide basis, by providing
/usr/share/applications/mimeapps.list in the desktop-base package. However,
the choice of defaults is opinionated, so the desktop team would not
necessarily find it straightforward to choose something useful: I expect
it to be difficult to choose defaults that are appropriate for everyone,
because every desktop environment team will probably want their
applications to be the default.

As a result, it's probably b

Processing of kuserfeedback_1.2.0-1_source.changes

2022-02-06 Thread Debian FTP Masters
kuserfeedback_1.2.0-1_source.changes uploaded successfully to localhost
along with the files:
  kuserfeedback_1.2.0-1.dsc
  kuserfeedback_1.2.0.orig.tar.xz
  kuserfeedback_1.2.0.orig.tar.xz.asc
  kuserfeedback_1.2.0-1.debian.tar.xz
  kuserfeedback_1.2.0-1_amd64.buildinfo

Greetings,

Your Debian queue daemon (running on host usper.debian.org)



kuserfeedback_1.2.0-1_source.changes ACCEPTED into unstable

2022-02-06 Thread Debian FTP Masters



Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Format: 1.8
Date: Sun, 06 Feb 2022 23:45:13 +0100
Source: kuserfeedback
Architecture: source
Version: 1.2.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers 
Changed-By: Aurélien COUDERC 
Changes:
 kuserfeedback (1.2.0-1) unstable; urgency=medium
 .
   * Update upstream signing key for Jonathan Ridell.
   * New upstream release (1.2.0).
   * Added myself to the uploaders.
   * Update the list of installed files, gracefully handle move of
 org_kde_UserFeedback.categories from /etc to /usr.
   * Update symbols from build for 1.2.0.
   * Refresh copyright information.
   * Bump Standards-Version to 4.6.0, no changes required.
Checksums-Sha1:
 627a912ebe0fa0591988b76c3da16e1de81aab7b 3032 kuserfeedback_1.2.0-1.dsc
 0643392fc56132a17814c2e3cfc21714ae05e270 206364 kuserfeedback_1.2.0.orig.tar.xz
 f612bc18e30bf2239481e81721c37e9509ccaec4 833 
kuserfeedback_1.2.0.orig.tar.xz.asc
 c0b05db6e0a827da21809303a1542e9cda243040 16572 
kuserfeedback_1.2.0-1.debian.tar.xz
 7c1fd94b8cc900754f90d35ffb9fcee968e95467 15172 
kuserfeedback_1.2.0-1_amd64.buildinfo
Checksums-Sha256:
 469462557cde6b7ecbfeba47c888c69e832ac022a6057932f926ef6acc5b6c6a 3032 
kuserfeedback_1.2.0-1.dsc
 76aac922b153249b274680a6f4c72c238ef14e3df04bad00cb64158b1063f264 206364 
kuserfeedback_1.2.0.orig.tar.xz
 6dd78451be8290e2d5802541094dbcc890e70387a2e8dc67d005f5c7c3f0717b 833 
kuserfeedback_1.2.0.orig.tar.xz.asc
 f7af49fbeb3ea41ec4e286fe5d9403d195dcb2bb3dc3bd7e8204040e30ca552b 16572 
kuserfeedback_1.2.0-1.debian.tar.xz
 0ab60d80441ec72edb6b4e7af17536c3ed84adac36feb8a0cd76dc3429008cbb 15172 
kuserfeedback_1.2.0-1_amd64.buildinfo
Files:
 463dbda67c5c43a86f110031e15c8606 3032 libs optional kuserfeedback_1.2.0-1.dsc
 905f3e9686c15814594956bea084da64 206364 libs optional 
kuserfeedback_1.2.0.orig.tar.xz
 ffb702483621fe84b33e6ac489f23e0a 833 libs optional 
kuserfeedback_1.2.0.orig.tar.xz.asc
 3da3a8b0ecd471b72d5def030ea7d48f 16572 libs optional 
kuserfeedback_1.2.0-1.debian.tar.xz
 df0605ada4aa16d9dc5ae8bcb59a6c44 15172 libs optional 
kuserfeedback_1.2.0-1_amd64.buildinfo

-BEGIN PGP SIGNATURE-

iQJHBAEBCgAxFiEEIW//QAAaDgcOKDsfcaflM/KRoyQFAmIAWc8THGNvdWNvdWZA
ZGViaWFuLm9yZwAKCRBxp+Uz8pGjJNRAEADgzhHJoDzq9mb9EfM01Cl/rRXp4wSy
yaXl2CZsflVkdeygjJalG13Xbb/RzMunSHMVhqP3qH74UTSzmJhOCTzwAMpU5jl7
YFCT6GgSj+SrAYsYtVSzpD7MSgg0ZNbmcX1yjXuBWTrEiQB4qB+Af81o/QzJeby8
rkbBmkKERzhiSs4ow7J9APb2ZVbYeMwOWmz2Qrk4+AGOQ7NYl9GaoTOwlCHC3DPg
mrtoCFBO8Nd9NsPCQw4nrxrPFfR7JSqEdPfGWNeUtK/M3gZrrAsSMDvQGDiRRzPW
2A9/eM8fI2h2OSU0wh5reWBq92hW5k0RcuDl5xOY+SJUQBt6oGQiCJGVtT0/TmUX
4sKH0DxP3SKl2Rj3JvtPYjx24FEiFL5kfyI14KRMx5cW/JigCBzZhyemW+MoAFEL
97w/HC7OJHbFuFjg0CTP38vB2eEm92oKob32xHZtpxaga29O5iYBYKP51dOV7Sg9
tbDG94nH1O7jV1pB7++o7LlhBWVXSGZjAqPJ6ULI+zHEPy9MkfoneveX+qnfN3T4
g3/3I2mn669xp6XaHqT+9x85VeBONYieKwxCXfmEh78//4gDt7o7veU0QqV7jrJE
9f2mBu2yd78rPc8VuL7lKrjyorl0Jmq2n3L3lLgofxMnWEj85Vkj0GHfVPcvgW/C
1+b/q2nijRWsWQ==
=dq0g
-END PGP SIGNATURE-


Thank you for your contribution to Debian.