Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url handlers #5059

Closed
wants to merge 1 commit into from
Closed

Url handlers #5059

wants to merge 1 commit into from

Commits on Sep 5, 2023

  1. webui: Launch storage utility via url-handler instead of cockpit.spawn

    cockpit.spawn isn't a good command to run UI tools because it doesn't
    know the user event that lead to it getting called. UI applications need
    to be run with that sort of context in their environment or compositors
    won't start them in the foreground. This is so if a user is typing, a
    slow starting program doesn't steal focus inadvertently when it finally
    starts.
    
    Firefox has a mechanism for launching applications with the appropriate
    context, however: Url Handlers.
    
    This commit registers a url handler "anaconda-storage:" and changes
    the Web UI to use it instead of cockpit.spawn.
    halfline committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    bea7d30 View commit details
    Browse the repository at this point in the history