[no subject]

2013-03-21 Thread jupiter
Hi,

We are integrating our applications to menu desktop for virtual
machines possibly use of Grome or XFCE.

I've looked at the document in
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html,
appreciate if anyone can help to answer following questions:

(1) How can we control displaying applications on menu based on group?

We'd like to display different applications on menu for different
groups, for example, group1 may see app11, app12, app13...on menu and
group2 may see application21, app22, app23, ... on menu.

The document has a Group headers in the format [groupname], can this
be used for group access control? If so, could anyone point me or give
an example of what is the key and value and what is the format?

(2) How can we control displaying applications on menu based on individual user?

Is it possible to set up menu entry to display certain applications on
menu for certain users? UserA may be able to see app1, app2, userB may
only be see app3?

Which key may can be used for controlling the users access? OnlyShowIn
and NotShowIn? Or TryExec? Or Action?

Thank you.

Kind regards.

j
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


group control

2013-03-21 Thread jupiter
Sorry, missing the subject

On 3/21/13, jupiter jupiter@gmail.com wrote:
 Hi,

 We are integrating our applications to menu desktop for virtual
 machines possibly use of Grome or XFCE.

 I've looked at the document in
 http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html,
 appreciate if anyone can help to answer following questions:

 (1) How can we control displaying applications on menu based on group?

 We'd like to display different applications on menu for different
 groups, for example, group1 may see app11, app12, app13...on menu and
 group2 may see application21, app22, app23, ... on menu.

 The document has a Group headers in the format [groupname], can this
 be used for group access control? If so, could anyone point me or give
 an example of what is the key and value and what is the format?

 (2) How can we control displaying applications on menu based on individual
 user?

 Is it possible to set up menu entry to display certain applications on
 menu for certain users? UserA may be able to see app1, app2, userB may
 only be see app3?

 Which key may can be used for controlling the users access? OnlyShowIn
 and NotShowIn? Or TryExec? Or Action?

 Thank you.

 Kind regards.

 j

___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Re:

2013-03-21 Thread Thiago Macieira
On quinta-feira, 21 de março de 2013 21.20.30, jupiter wrote:
 (1) How can we control displaying applications on menu based on group?

 (2) How can we control displaying applications on menu based on individual
 user?

The specification has no access control for users or groups. If you want
settings to apply to specific users or specific groups, make them see those 
files
and make other users not see those files.

For users, that's easy: just put the files necessary under that user's home
directory. For applying to a group, either apply to all users in the group, or
add another directory found by the XDG base specification containing those files
and make it apply to that group.

--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
  PGP/GPG: 0x6EF45358; fingerprint:
  E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


signature.asc
Description: This is a digitally signed message part.
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Re:

2013-03-21 Thread Thomas Kluyver
On 21 March 2013 15:13, Thiago Macieira thi...@kde.org wrote:

  The specification has no access control for users or groups. If you want
 settings to apply to specific users or specific groups, make them see
 those files
 and make other users not see those files.


You may also want to have a look at the menu spec:
http://standards.freedesktop.org/menu-spec/menu-spec-latest.html

For example, to show a particular menu to a specific user, you could create
a ~/.config/menus/application.menu file under their home directory.

Thomas
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg