Re: [code] [Textadept] .desktop file has a few issues

From: Mitchell <m.att.foicica.com>
Date: Tue, 2 May 2017 11:59:10 -0400 (EDT)

Hi Pedro,

On Mon, 1 May 2017, Pedro Andres Aranda Gutierrez wrote:

> Hi Mitchell,
>
> /usr/share/pixmaps seems to be sufficient in GNOME3 and XFCE. As I progress
> through more desktops, I'll tell you if I find something that needs to be
> fixed. I have also found that we can live without the hicolor theme.

Great.

> Regarding the freedesktop tools, here is what I mean.
>
> install_desktop:
> install -d $(DESTDIR)$(XDG_DATA_DIR)
> for d in $(patsubst ../%,%.desktop,$(patsubst
> ../textadeptjit%,../textadept%,$(install_targets))); do \
> desktop-file-install --dir=$(DESTDIR)$(XDG_DATA_DIR) $$d ;\
> done
>
> The desktop-file-install command is the standard tool from freedesktop.org.
> It also allows you to edit the .desktop file when installing it. The
> patsubst is suboptimal, since it will make a double installation for
> install_targets=../textadept
> ../textadeptjit,
> but it is good enough not to install the desktop file for the curses
> version if you don't compile it ;-)

I don't think modifications to Textadept's .desktop files are necessary
anymore, so desktop-file-install would just be a glorified "cp" or
"install" command, but an extra dependency. It's best to do without it.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 02 May 2017 - 11:59:10 EDT

This archive was generated by hypermail 2.2.0 : Wed 03 May 2017 - 06:32:38 EDT