Hi

Work currently done on a shared specification about file manager actions
extensions (a definitive name is always to be found) has led us to define
an 'ExecuteAs' key.

Goal of this key is to let the action creator specify with which user/uid
the command must be ran.

We think that this key has its full place in the Desktop Entry Specification
on which our own spec is heavily based.

As we're not sure about the exact revision process,  I propose the attached
patch against last available version. Let's talk about it ?

Regards
Pierre
--- desktop-entry-spec-1.1.xml	2010-03-04 02:07:40.000000000 +0100
+++ desktop-entry-spec-1.1-execute-as.xml	2010-03-05 12:17:54.000000000 +0100
@@ -496,6 +496,18 @@
             <entry>1</entry>
 	  </row>
 	  <row>
+	    <entry id="key-path"><varname>ExecuteAs</varname></entry>
+	    <entry>
+           If entry is of type <constant>Application</constant>, the user the command must be ran as.
+           The user may be identified by its UID or by its login.
+           The implementation might require the presence of a well-configured subsystem (e.g. sudo).
+           Defaults to empty: the command will be executed as the current user.
+	    </entry>
+	    <entry>string</entry>
+	    <entry>NO</entry>
+        <entry>1</entry>
+	  </row>
+	  <row>
 	    <entry id="key-terminal"><varname>Terminal</varname></entry>
 	    <entry>
            Whether the program runs in a terminal window.
@@ -1223,4 +1235,4 @@
       the name as it appears in the "Encoding" column above.
     </para>
   </appendix>
-</article>
\ No newline at end of file
+</article>
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to