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

Automatically log into the client application #1188

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Oct 2, 2024

  1. Automatically log into the client application

    Most of the time we're developing the client, we are not testing the
    login screen, and just want to quickly log in. With a combination of
    xdotool and oathtool, we can script typing the correct values and login.
    
    It's a bit fragile for two reasons. First, we're just blindly typing, so
    if some other window takes focus or switch, it'll be typed into that
    window. Second, we're kicking off a background process that sleeps,
    launching the window in the foreground, and then the background process
    will do the typing into the foreground.
    
    Adapted from work by @legoktm [1]
    
    [1]: freedomofpress/securedrop-client#2237
    deeplow committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    be3c702 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    9c97d7d View commit details
    Browse the repository at this point in the history
  2. make run-client: start client instead of launcher

    Starting the launcher could lead to autotyping into launcher
    application instead of the client login prompt.
    deeplow committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    d75911b View commit details
    Browse the repository at this point in the history