Bug 162417 - Please make sudo'ed Krusader (root-mode) to use configurations from actual user running, not from root
Summary: Please make sudo'ed Krusader (root-mode) to use configurations from actual us...
Status: RESOLVED DUPLICATE of bug 373720
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Shie Erlich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 17:48 UTC by Sasha Unspecified
Modified: 2017-05-26 18:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sasha Unspecified 2008-05-21 17:48:00 UTC
Version:            (using KDE 3.5.9)
Installed from:    Ubuntu Packages

Please make sudo'ed Krusader (root-mode) to use configurations from actual user running, not from root.

It's unhandy to make all the configuations twice (one time for actual user, and second time for root; especially when there are several actual users on desktop that use root mode, and each one wants his own krusader options).

It is possible by reading some enviroment variable, e.g. "SUDO_USER".
I.e. "
  if(CurrentUser()=='root' && EnvVarDefined('SUDO_USER'))  LoadConfigFor(EnvVar('SUDO_USER'));
  else  LoadConfigFor(CurrentUser());
"
(I understand that it merely depends on params of sudo, but it'll be good to make krusader always load actual-user's.)


Or, at least, make the Alt+K (Tools | Start root mode krusader) to run sudo'ed krusader with original configuations (e.g. by passing some command line parameter to it).
Comment 1 Sergei Andreev 2008-11-04 13:34:15 UTC
+1
Comment 2 Alex Bikadorov 2017-05-26 18:38:45 UTC
Merging. Some users want different configurations, some others want the same.

*** This bug has been marked as a duplicate of bug 373720 ***