[gedit] Edit a text file as root when a user is in admin group

2009-03-09 Thread Lukas Vacek
Hi,

I think it would be handy to have an option to open file with text editor as 
root, especially, when recovering a system from a live CD, but not only in 
that case. It would be useful just any time a user is told to edit a system 
file by hand, which still can happen sometimes. Now the user has to use a 
terminal, know sudo and more.

I guess there are basically two ways to do it, add support to gedit for gaining 
privileged permissions only for read/save operations, but all that gobject code 
is a bit too scary for me :-) or much easier but potentially not that secure 
way:

It could be enough to install a file like this:

$ cat /usr/share/application-registry/gksudogedit.applications

gksudogedit
command=gksudo gedit
name=Text editor as root
can_open_multiple_files=false
expects_uris=true
uses_gnomevfs=true
requires_terminal=false
mime_types=text/*,text/html,text/plain

(with permissions root:admin 750) and run update-mime-database and so on.

regards,
Lukáš Vacek

-- 
ubuntu-desktop mailing list
ubuntu-desktop@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop


[Bug 336647] Re: Please merge pidgin 2.5.5 from Debian

2009-03-09 Thread Sebastien Bacher
unsubscribing sponsors since there is no nothing to sponsor there yet

-- 
Please merge pidgin 2.5.5 from Debian
https://bugs.launchpad.net/bugs/336647
You received this bug notification because you are a member of Ubuntu
Desktop, which is a direct subscriber.

-- 
ubuntu-desktop mailing list
ubuntu-desktop@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop


[Bug 336647] Re: Please merge pidgin 2.5.5 from Debian

2009-03-09 Thread Sebastien Bacher
doing the update would be a good idea indeed

-- 
Please merge pidgin 2.5.5 from Debian
https://bugs.launchpad.net/bugs/336647
You received this bug notification because you are a member of Ubuntu
Desktop, which is a direct subscriber.

-- 
ubuntu-desktop mailing list
ubuntu-desktop@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop