Re: [e-users] efm open with doesn't use the complete Exec line of the .desktop

2016-03-25 Thread The Rasterman
On Fri, 25 Mar 2016 09:41:34 +0100 jls  said:

it depends how you look at the spec.. but the spec to my reading does not allow
xxx && yyy

etc. it's not a full shell commandline. i'ts restricted. it does nto say "this
is a /bin/sh compatible command line as if typed there". it specifically says:

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables

"The Exec key must contain a command line. A command line consists of an
executable program optionally followed by one or more arguments. The executable
program can either be specified with its full path or with the name of the
executable only."

that says to me there can be only a single command. in fact the cmdline doesnt
say it's a shell. if it were then a valid shell command might be:

if test -n "$HOME"; then for I in `ls /bin`; do $I &; done; fi

i can type that at a cmd prompt. && is a shell logical "and" signifier meaning
it will execute the 2nd cmd if the first succeeds in order to get the result of
the 2nd (otherwise it does not have to) and this && is part of flow control
like the if and for above.

a .desktop file was not by reading specs intended to BE a shell. it's a
simplified subset with a single command and parameters expanded/passed. if it
was it'd mention shell flow control, environment variables etc. (it does not
even specif environment vars should work). :(

so use a shell script wrapper. :)

> Hi to all "e" users.
> efm open with doesn't use the complete Exec line of the .desktop.
> for example I've
> sce-load shotwell && shotwell %F
> in the shotwell's desktop file, but, when I right click on an a file in 
> efm, choose open with ,other applications, I choose shotwell I see in 
> the text box below (personalize command):
> sce-load shotwell
> only
> thaks
> 
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140
> ___
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] efm open with doesn't use the complete Exec line of the .desktop

2016-03-25 Thread Christopher Barry
On Fri, 25 Mar 2016 09:41:34 +0100
jls  wrote:

>Hi to all "e" users.
>efm open with doesn't use the complete Exec line of the .desktop.
>for example I've
>sce-load shotwell && shotwell %F
>in the shotwell's desktop file, but, when I right click on an a file
>in efm, choose open with ,other applications, I choose shotwell I see
>in the text box below (personalize command):
>sce-load shotwell
>only
>thaks
>

point the desktop file at a simple wrapper script.

contents of /home/you/bin/my-shotwell-wrapper:
(chmod 750 to make executable)

#!/bin/bash
# my-shotwell-wrapper
# load and run shotwell
sce-load shotwell && shotwell "$@"


.desktop contents:

/home/you/bin/my-shotwell-wrapper %F



-- 
Regards,
Christopher

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


[e-users] efm open with doesn't use the complete Exec line of the .desktop

2016-03-25 Thread jls
Hi to all "e" users.
efm open with doesn't use the complete Exec line of the .desktop.
for example I've
sce-load shotwell && shotwell %F
in the shotwell's desktop file, but, when I right click on an a file in 
efm, choose open with ,other applications, I choose shotwell I see in 
the text box below (personalize command):
sce-load shotwell
only
thaks

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users