Subject: Re: bug#26988: Add desktop-file-utils to all gtk applications

From: Danny Milosavljevic <[email-masked]>
Date: Mon, 3 Jul 2017 19:08:20 +0200

Hi 宋文武,

On Mon, 03 Jul 2017 23:32:11 +0800
[email-masked] (宋文武) wrote:

> >> GTK+ and Qt, it won't catch some cases where we add the ".desktop" file
> >> manually such as "rxvt-unicode".  

How about just adding desktop-file-utils as a native-input to rxvt-unicode (and other few special cases) with a comment saying that's because of the desktop file?

> So I end up with modify the profile hook to test for GLib, it should
> work in most cases.

Glib is a basic C library that hasn't much to do with GUI.  I think that if you check for glib you'll run the hook for system daemons, dbus etc.

Glib is basically the runtime library that makes C sane to use for any purpose.

Also, desktop-file-utils itself requires glib so make sure you don't enter an endless loop :)