Summary: | kwallet dialogs open in background | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | RJVB <rjvbertin> |
Component: | kwallet | Assignee: | Michael Leupold <lemma> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | mk-lists, mk.mateng |
Priority: | NOR | ||
Version: | 4.12.5 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | macOS | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=337122 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | example ObjC file that shows how to launch an application in the foreground |
Description
RJVB
2014-06-06 13:36:20 UTC
The KWallet daemon is a separate process. I am not sure if/how OS X allows windows from alien processes steal the focus of the currently running application. It certainly doesn't make it impossible to do that. In fact, it allows it with too much ease to my taste (there used to be a time when you could launch an app, switch to another and keep working therein while the other app prepped itself in its own "layer"; no longer so). Hooking into QtKeyChain will of course make the question a moot point, because it'd be the OS handling the focus control. Created attachment 87514 [details]
example ObjC file that shows how to launch an application in the foreground
Kwallet isn't the only application opening elsewhere but in the foreground; in fact, it is the OS default when an application is started through system() or execve() or even NSTask. I thus had a look around and found a solution on StackExchange for launching an(y) application with arguments and have it appear in the foreground. Contrary to the standard [NSWorkSpace launchApplication: arguments:] function, this one accepts all kinds of arguments, not only documents to be opened.
The problem isn't with launching new applications, because the kwallet daemon is already launched. But when it needs to open a window, it will have to open it in a way to force stealing the focus of the currently running application. Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone! It is, cannot be otherwise given how the password dialog is brought to the foreground under X11. That cannot work on Mac (nor under Wayland IIUC). The only solution I found is make kwalletd force itself to the foreground (together with changes that make it do this without becoming a full GUI application with a menubar and presence in the Dock and app-switcher. I could put this changeset up for review, but only if the overall consensus is that kwalletd has a right of existence on Mac. The alternative would be to use a Mac-native mechanism to unlock KDE wallets, but I don't see how that would work. *** This bug has been marked as a duplicate of bug 141267 *** |