su is not exactly the same as sudo. And kdesu does not run the target user's shell profile as best as I can tell.
I would suggest you try Carlos's suggestion of "su - username" just to see if it behaves different.
This comes back to my original question from about a year ago which was how
to get dolphin to come up at all under user john when logged into a full KDE
GUI desktop session under user joe. It turns out that none of "su -
username"; "su -l username"; or "kdesu username" will work without various
processes being primed and made ready first. Any of those would work in
openSUSE 10.3 and 12.1, but not 13.2 (or 13.1). You can read all of the
details at
http://www.linuxquestions.org/questions/suse-opensuse-60/running-dolphin-in-...
and
https://forums.opensuse.org/showthread.php/510414-Running-Dolphin-under-user...
Originally, on linuxquestions.org, I was given the suggestion of using
"ssh - username" instead of "su -l username" and that worked. Then, later,
on the openSUSE forum, deano-ferrari suggested using enable-linger and that
also works, and is a lot cleaner than "ssh - username". In any event,
enable-linger (or an equivalent) for user john is absolutely necessary in
order to be able to bring up a file manager under user john in joe's full
KDE GUI desktop session. That problem is solved, in that a file manager
under user john can be brought up in joe's full KDE GUI desktop session.
What isn't solved is the collision problem that occurs when you do so.
Perhaps, using a shell script, it is possible replicate a new instance of
that xorg stack prior to using kdesu?
----- Original Message -----
From: "John Andersen"
On 10/29/2016 04:32 PM, Alec Destry wrote:
I found out that I have to first set enable-linger for user john using loginctl, or do something else equivalent to that. Perhaps, using a shell script, it is possible replicate a new instance of that xorg stack prior to using kdesu?
Linger is only to get around an (utterly unwarranted) assumption made by the systemd devs that when you log out you automatically want every process you started to be killed.
I'm not sure why you are seeing the need for linger. Its lot like you were logging out. Mystifying.
su is not exactly the same as sudo. And kdesu does not run the target user's shell profile as best as I can tell.
I would suggest you try Carlos's suggestion of "su - username" just to see if it behaves different.
-- After all is said and done, more is said than done.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org