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

Add a GNOME Shell Extension #6712

Merged
merged 25 commits into from
Jun 7, 2023
Merged

Add a GNOME Shell Extension #6712

merged 25 commits into from
Jun 7, 2023

Commits on May 30, 2023

  1. First stab at adding a GNOME Shell Extension, and the necessary logic…

    … for Ansible to install and enable it.
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    010b181 View commit details
    Browse the repository at this point in the history
  2. Fix broken commands, have Tails load extension with network hook, and…

    … make sure Ansible actually runs the new task.
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    5e1f0ff View commit details
    Browse the repository at this point in the history
  3. Don't run gnome-extensions command with elevated privileges (without …

    …this, the task will fail)
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    d2fb2f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c03686 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    88e9241 View commit details
    Browse the repository at this point in the history
  6. Switch to checking for tor_v3_keys.json to determine between Journali…

    …st and Admin workstations.
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    b295733 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0896be7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4ac0c28 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b022871 View commit details
    Browse the repository at this point in the history
  10. Load app and mon hostnames dynamically

    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    5edcfc4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1220dbd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    c223858 View commit details
    Browse the repository at this point in the history
  13. Switch to using an Ansible template.

    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    768943d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0a01b41 View commit details
    Browse the repository at this point in the history
  15. Add a button to open a file browser.

    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    d185eed View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7704a5a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a945055 View commit details
    Browse the repository at this point in the history
  18. Fix the icon appearance, set the position in the menu, and fix a bug …

    …with a button opening the wrong interface.
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    eb4d085 View commit details
    Browse the repository at this point in the history
  19. Appease the linter.

    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    1ffac83 View commit details
    Browse the repository at this point in the history
  20. Add support for gnome-shell 3.38 and fix translations.

    This explicitly adds support for GNOME Shell 3.38,
    and corrects some issues with the gettext system
    to make translations work correctly.
    
    It also wraps the user-facing strings in gettext
    calls for said translations.
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    a68d4d4 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5db2cb4 View commit details
    Browse the repository at this point in the history
  22. Only show one message to the user at end of the run, and refer to the…

    … extension as the SecureDrop Menu.
    nathandyer authored and cfm committed May 30, 2023
    Configuration menu
    Copy the full SHA
    821a2c7 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. build(gettext): extend the "translate-desktop" command to cover the G…

    …NOME Shell extension
    
    In the original (since lost) 1cfd35b, we tried to treat the GNOME Shell
    extension as a separate "securedrop/extension" Weblate component with
    its own "translate-extension" command, replicating both
    "--extract-update" and "--compile" modes.
    
    In f3d3f04, we tried to treat the GNOME Shell extension as an extension
    (sorry) of the main "securedrop/securedrop" component, taking advantage
    of Babel's mapping feature to parse the ".js.in" file as JavaScript.
    
    Here we harmonize the two approaches.  "translate-desktop
    --extract-update" is now a two-step process, first via Babel over the
    ".js.in" JavaScript file, then as usual via xgettext over the ".j2.in"
    desktop templates.  (This is logically reversed, but Babel appears to
    have no equivalent of xgettext's appending "--join-existing" mode.)
    "translate-desktop --compile" similarly does two passes with msgfmt,
    first to create the standard gettext directory layout and then to update
    the desktop templates.
    
    NB. We also add "msgmerge --no-fuzzy-matching" after #6772, which
    required rebasing from "develop".
    cfm committed May 31, 2023
    Configuration menu
    Copy the full SHA
    76f3ade View commit details
    Browse the repository at this point in the history
  2. deploy(tails-config): expect "messages" domain in "locale" directory

    In Ansible idiom, the "locale" tree should come from the role's files
    rather than its template, which would simplify the path reference.
    However, it's generated by "i18n_tool.py", which shouldn't be concerned
    with the surrounding Ansible layout.
    cfm committed May 31, 2023
    Configuration menu
    Copy the full SHA
    ab015f1 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Configuration menu
    Copy the full SHA
    85b722c View commit details
    Browse the repository at this point in the history