Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-22 Thread davidson
On Mon, 22 Jun 2020 l0f...@tuta.io wrote: Hi davidson, I share your great answer (see below) with the whole list as I think your explanations are very didactic, relevant and could be beneficial to anyone. I've just tested and it works so thank you very much :) Lol. Good news! It is good to le

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-22 Thread Greg Wooledge
On Mon, Jun 22, 2020 at 07:40:04PM +0200, l0f...@tuta.io wrote: > So if I sum up, here is the logic: [...] > Am I correct please? https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-22 Thread l0f4r0
Hi davidson, I share your great answer (see below) with the whole list as I think your explanations are very didactic, relevant and could be beneficial to anyone. I've just tested and it works so thank you very much :) If I have well understood, my issue was that I've mixed up reserved charact

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-01 Thread Andrei POPESCU
On Lu, 01 iun 20, 20:33:28, l0f...@tuta.io wrote: > 1 juin 2020 à 20:03 de andreimpope...@gmail.com: > > > > Question for you: how much would it have taken you to write that into a > > script compared to the time you spent trying to get the quoting right? > > > HaHa, of course the latter is much m

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-01 Thread l0f4r0
Hi Andrei, 1 juin 2020 à 20:03 de andreimpope...@gmail.com: > On Lu, 01 iun 20, 17:34:10, l0f...@tuta.io wrote: > >> 1 juin 2020 à 15:25 de wool...@eeg.ccf.org: >> >> > I would not even *attempt* to do what you are trying to do here. Your >> > life would become enormously simpler if you would ju

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-01 Thread Andrei POPESCU
On Lu, 01 iun 20, 17:34:10, l0f...@tuta.io wrote: > 1 juin 2020 à 15:25 de wool...@eeg.ccf.org: > > > I would not even *attempt* to do what you are trying to do here. Your > > life would become enormously simpler if you would just put this shell > > script inside a file, and Exec it as a script.

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-01 Thread l0f4r0
Hi Greg, 1 juin 2020 à 15:25 de wool...@eeg.ccf.org: > On Mon, Jun 01, 2020 at 03:12:03PM +0200, l0f...@tuta.io wrote: > >> Let's take an example, here is my fusuma.desktop file:[Desktop Entry] >> >> Type=Application >> Name=fusuma >> Exec=sh -c 'if which ruby >/dev/null && which gem >/dev/null;

Re: Syntax regarding "Exec" instruction in .desktop files

2020-06-01 Thread Greg Wooledge
On Mon, Jun 01, 2020 at 03:12:03PM +0200, l0f...@tuta.io wrote: > "Arguments may be quoted in whole. If an argument contains a reserved > character the argument must be quoted. The rules for quoting of arguments is > also applicable to the executable name or path of the executable program as > p