https://bugs.kde.org/show_bug.cgi?id=453494

--- Comment #7 from kde....@grau.net ---
If it works like you describe it, then I don't think it has a parent window set
in X11, either. At least for me, in X11 it always centers on the screen and is
not displayed centered above in the application window, requesting the
authentication. If I understand the way the integration of the polkit window
works correctly, the requesting application asks for the authentication to
performed via dbus. Therefore the polkit window is running in a separate
process and doesn't have any information about the windows of the calling
application. Hence, polkit cannot easily set the parent window. Imagine a
command run on the commandline in konsole requesting authorization, for example
 "pamac" in Manjaro. That command doesn't even have any windows. If this
command requests authorization, polkit would have to figure out that the
command is run from within konsole and then find out, which of the Konsole
windows it's run from. As this is quite complicated to get right and would
probably require a lot of information passed on dbus between the applications
and polkit, it's probably easier for polkit to just open the window centered on
the screen. As I have only one screen, I wouldn't even know if polkit manages
to display the window on the correct screen.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to