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 > Ubuntu > Kubuntu Development

 
 
LinkBack Thread Tools
 
Old 05-12-2012, 04:15 PM
Harald Sitter
 
Default kdesudo and the config problem

lo'

https://bugs.launchpad.net/ubuntu/+source/kdesudo-kde4/+bug/632503

Let me quickly outline how user (kde) configuration work with kdesudo.
They do not.
The entire idea is that kdesudo makes applications use the target
users home rather than the invokees. otherwise running `kdesudo kate`
would write a config that is only writable/readable by root into the
users home making kate when invoked the regular way unable to save
data.
But! KDE software also stores theming data in config files (widget
style, fonts, colors ...) which then leads to inconsistent appearance
of applications running using kdesudo. Incidentally enough that is why
one is supposed to use gksu/kdesudo with gui apps .

This is a long standing complaint with users of kdesudo and AFAIK we
never actually discussed what we want to (not) do about it. Suppose it
is time

You might be able to imagine that since the problem is caused by the
very core idea of kdesudo working around it would be a right pain in
the booty. In particular applications/kdelibs needs to have a runtime
theme override (runtime being data that is already in memory, for
example as envrionment variables). I reckon GTK3 has the very same
thing with theme configs being stored in X11 from what I understand.
Since I don't see Qt/KDE moving to an X11 bound way of defining the
theme (portability and whatnot) the only way to achieve this would be
to define other means for settings transfer (e.g. dbus) coming with
equally invasive code changes. This however also affects kdesu and
thus all that rubbish can be done upstream.

The question is whether that is even worth thinking about.

I for one do not think so, particularly since running most apps using
kdesudo is a bad idea to begin with. Also one would have to define
where to draw the line, because I can totally imagine people asking
for kdesudo kate to use the settings of the user adding a whole new
layer of problems. Should an app really need to run as root the app
developer can probably make theme transfer work individually (e.g.
have a host app that exports the data via dbus and invoke kdesu(do)
from that host app, the rootified app then reads the data from dbus).

Thoughts?

HS

--
kubuntu-devel mailing list
kubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
 

Thread Tools




All times are GMT. The time now is 12:23 AM.

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