FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-08-2011, 04:47 PM
kellyremo
 
Default sudo in .desktop file when launching graphical app

Fedora 14

i can run a program with another user with:

(command before): xhost local:transmission-user

the command:
sudo -u transmission-user -- /usr/bin/transmission-gtk &

from the gnome-terminal.

But:

echo -e '#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Icon[en_US]=gdu-encrypted-lock
Name[en_US]=transmission-user
Exec=sudo -u transmission-user -- /usr/bin/transmission-gtk &
Name=transmission-user
Icon=gdu-encrypted-lock' > transmission-user.desktop
chmod +x transmission-user.desktop

it doesn't work, if i put the command in a .desktop file.

Why?
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-08-2011, 05:14 PM
Steven Stern
 
Default sudo in .desktop file when launching graphical app

On 02/08/2011 11:47 AM, kellyremo wrote:
> Fedora 14
>
> i can run a program with another user with:
>
> (command before): xhost local:transmission-user
>
> the command:
> sudo -u transmission-user -- /usr/bin/transmission-gtk &
>
> from the gnome-terminal.
>
> But:
>
> echo -e '#!/usr/bin/env xdg-open

[Desktop
> Entry]
Version=1.0
Type=Application
Terminal=true
Icon[en_US]=gdu-encrypted-lock
Name[en_US]=transmission-user
Exec=sudo
> -u transmission-user -- /usr/bin/transmission-gtk
> &
Name=transmission-user
Icon=gdu-encrypted-lock' >
> transmission-user.desktop
> chmod +x transmission-user.desktop
>
> it doesn't work, if i put the command in a .desktop file.
>
> Why?
>
http://fedoranews.org/contributors/matt_hansen/nautilus/

--
-- Steve
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-08-2011, 10:39 PM
Chris Smart
 
Default sudo in .desktop file when launching graphical app

On Wed, Feb 9, 2011 at 5:14 AM, Steven Stern
<subscribed-lists@sterndata.com> wrote:

> http://fedoranews.org/contributors/matt_hansen/nautilus/

Ahhh, so _that's_ how it works.. thanks!

-c
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 09:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org