Bug 407102 - Single instance not working in root mode
Summary: Single instance not working in root mode
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.7.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-30 15:42 UTC by milkaca
Modified: 2020-05-19 07:18 UTC (History)
3 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 milkaca 2019-04-30 15:42:43 UTC
Hi, when I run Krusader in root mode, single instance mode is not working. I am on latest Kubuntu version 19.04 and Krusader version 2.8.0-dev.
Comment 1 milkaca 2019-05-06 16:41:04 UTC
Bump.
Comment 2 milkaca 2019-05-21 12:06:57 UTC
Is there some other place for reporting bugs, or is this the right website?
Comment 3 Nikita Melnichenko 2019-05-23 07:48:34 UTC
This is the right place.

Try the stable release v2.7.1 - does it work for you? It works for me. If not, please describe exact repro steps and what you mean by "not working".
Comment 4 milkaca 2019-05-23 09:25:27 UTC
Hi, I just tried on stable version and same result.

This is one very simple test case:
1. Open Terminal and type: sudo krusader
2. Open another Terminal and type: sudo krusader /home/

You will have 2 running instances of Krusader application. If you repeat all this without "sudo" command then "home" path will be created as a tab in already running instance of Krusader application. Of course "Single instance mode" is enabled in settings.
Comment 5 Nikita Melnichenko 2019-05-24 05:12:30 UTC
Try
$ su -
$ krusader &
$ krusader /home/ &

Sudo is not the same as root. https://superuser.com/questions/771500/sudo-vs-root-any-actual-differences
Comment 6 milkaca 2019-05-24 09:33:11 UTC
This is what I get:
[1] 16240
root@Jumper:~# 11:01:26.999-warning qt.qpa.xcb unknown@0 # could not connect to display 
11:01:26.999-info qt.qpa.plugin unknown@0 # Could not load the Qt platform plugin "xcb" in "" even though it was found.
11:01:26.999-fatal default unknown@0 # This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.


Not sure what do I need to correct?
Comment 7 Toni Asensi Esteve 2019-05-25 07:42:18 UTC
Hi! Using Kubuntu 18.04 (or Kubuntu 19.04) and the latest git version of Krusader: If I enable the single instance checkbox in root mode, in order to make it have an effect, then I have to exit Krusader, and open it again, in my case using:
    $(kde4-config --path libexec)kdesu -c KDE_FULL_SESSION=true krusader
            
Note: That command was obtained from what it was seen when executing:
    $ partitionmanager 
    Executing:  "/usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu" "-c KDE_FULL_SESSION=true XDG_RUNTIME_DIR=/run/user/1000 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zPGGsyqsR6,guid=7ba5081d338f0b29487736a95b2a4898 partitionmanager --dontsu"
    [...]
Comment 8 milkaca 2019-05-25 07:58:57 UTC
Can you please write all steps. This is not working. My settings are looking fine in root mode. I am using Kubuntu 19.04.

With this command I am able to start in root mode, but not under su -: /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu -c "KDE_FULL_SESSION=true krusader"

But effect is same, I have multiple instances all the time.
Comment 9 milkaca 2019-06-03 10:49:31 UTC
Any update on this topic?
Comment 10 milkaca 2019-06-17 15:06:18 UTC
bump
Comment 11 milkaca 2019-07-21 10:09:19 UTC
Last bump from my side.

Is someone reading this forum and can investigate this strange issue? I hate using Krusader in not rooted mode.
Comment 12 Toni Asensi Esteve 2020-05-03 22:53:09 UTC
Hello, I've just performed a test using Kubuntu 20.04 and the latest git version of Krusader, although the bug is still not seen. 

I utilized a regular user (not root) and executed
    $(kf5-config --path libexec)kf5/kdesu -c krusader

I enabled the single instance checkbox in root mode, I closed Krusader, and opened it again, in my case using the same command:
    $(kf5-config --path libexec)kf5/kdesu -c krusader
which I executed several times, but without effects, like it was expected.

Does the problem still happen to you?

P.S. About the state of this bug, to be "confirmed" it has to be confirmed by other people... ¯\_(ツ)_/¯
Comment 13 Bug Janitor Service 2020-05-18 04:33:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 milkaca 2020-05-19 07:18:37 UTC
Still the same issue with command:
$(kf5-config --path libexec)kf5/kdesu -c krusader

Executed in two Terminal instances.