[Fedora-packaging] .desktop and permissions for using usb?

Nelson Manuel Marques nelson-m-marques at ext.ptinovacao.pt
Mon Dec 5 08:23:44 UTC 2011


Hi,

I'm not sure this is the answer you are looking for, but, _if_ you
require "root" permissions for your application to work, one of the
possible was would be to use one of the existing wrappers to start your
application from the .desktop file. I'm not sure which one is used by
Fedora, but I was a bit fond of 'xdg-su' in another distribution I
regularly use. To use with xdg-su (a part of xdg-utils ??) would be
something like (in the desktop file):

Exec: xdg-su -c "/usr/bin/app"

This would ask the user for root password when launching the
application. Though I suspect you are looking for something else.

NM

On Sun, 2011-12-04 at 15:07 -0500, Erik Blankinship wrote:
> Could someone please point me to where/how to grant my python
> application, installed with a .desktop file into gnome, permission to
> talk to certain devices on USB?
> 
> 
> When I run the application from the command line with sudo, usb
> communication works, but when I run from the gnome application menu,
> no luck.
> 
> 
> What is the best practice for granting these types of permissions when
> an application is installed and launched with a .desktop file?
> 
> 
> Thanks



More information about the packaging mailing list