Gentoo Archives: gentoo-dev

From: Alfredo Tupone <tupone@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] eutils.class fix for make_desktop_entry
Date: Sun, 04 Jun 2006 22:16:52
Message-Id: 1149459194.10485.7.camel@alfredo.tupone.dyndns.org
1 I need to add a desktop entry that call an executable with arguments.
2 Actually the entry Exec (that could contain the executable with
3 parameters) and the entry TryExec (used to test if the executable is
4 installed) are set to the same value.
5 I wonder if I can fix that with the following patch to the eutils eclass
6 @@ -900,7 +902,7 @@
7 Type=Application
8 Comment=${DESCRIPTION}
9 Exec=${exec}
10 -TryExec=${exec}
11 +TryExec=${exec%% *}
12 Path=${path}
13 Icon=${icon}
14 Categories=Application;${type};" > "${desktop}"
15
16 I meant: is there some ebuild that has space in the executable name, or
17 is there some way this change can break ebuilds. eutils is used by lot
18 of them, so I'm scared to break the whole tree.
19
20 Going to apply if I get no negative answer in, say, 10 days.
21
22 Alfredo
23
24 --
25 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] eutils.class fix for make_desktop_entry Chris Gianelloni <wolf31o2@g.o>