Ghost Assembly QuickRem

GNOME Shell extension

QuickRem

Remmina connections in GNOME Quick Settings.

Open the system menu, click the Remmina tile, pick a saved connection. The list is read from Remmina’s own profile directory and follows it as it changes, so a connection saved in Remmina shows up here without a reload.

  • GNOME Shell 49–50
  • Flatpak or native Remmina
  • GPL-3.0-or-later

Install Source on GitHub

01

Overview

QuickRem adds one tile to Quick Settings. Its menu lists every connection saved in Remmina; pick one and Remmina connects. There is no top bar icon: Remmina is not a status, and an icon that never changes is noise.

Every saved profile

Sorted by name, with an icon per protocol and user@host beside each. A long list scrolls, capped at half the screen.

Follows Remmina

Saving, editing or removing a profile updates the menu straight away. A Remmina installed later, or a new datadir_path, is picked up too.

Opens it the way Remmina does

Through the handler registered for application/x-remmina, so a Flatpak and a distribution package work alike and a running Remmina is reused.

Never reads your passwords

Remmina encrypts them. QuickRem drops every password, passphrase and secret key while parsing, so none can reach a label or the log.

02

Install

Requires GNOME Shell 49 or 50. Requires Remmina and its saved connection profiles.

From a release

Download the latest release ZIP and install it for your user. xh is a download tool; you can also download the ZIP from GitHub in a browser. Installing compiles the settings schema.

Shell
xh --download GET https://github.com/Ghost-Assembly/quickrem/releases/latest/download/quickrem@napalm255.github.io.shell-extension.zip
gnome-extensions install --force quickrem@napalm255.github.io.shell-extension.zip

Log out and back in so GNOME discovers the extension, then enable it:

Shell
gnome-extensions enable quickrem@napalm255.github.io

From a clone

Install mise and activate it in your shell. Clone the repository, install its pinned tools, and build and install the same ZIP used for releases:

Shell
git clone https://github.com/Ghost-Assembly/quickrem.git
cd quickrem
mise install
mise exec -- just setup
mise exec -- just install

Log out and back in, then run just enable. Run just prefs to open preferences. After updating a loaded extension, start a new session to load its new code; opening preferences does not reload GNOME Shell.

03

Uninstall

Disable and uninstall the extension for your user. These commands preserve saved settings and other user data.

Shell
gnome-extensions disable quickrem@napalm255.github.io
gnome-extensions uninstall quickrem@napalm255.github.io

From a clone, just uninstall performs the same steps. Disabling with just disable leaves the extension installed.

04

Profiles

A Remmina profile is a .remmina file: a GKeyFile with one [remmina] group. QuickRem reads four of its keys — name, protocol, server and username — and ignores the rest. A profile with no usable name is listed by its filename stem, which Remmina’s default template (%G_%P_%N_%h) makes a fair description anyway.

The list is sorted by name the way your locale collates, and each row shows user@host, or the host alone, dimmed beside the name. Long names and details end in an ellipsis rather than widening the menu.

Protocol Icon
SSH utilities-terminal-symbolic
SFTP folder-remote-symbolic
RDP, VNC, GVNC, SPICE preferences-desktop-remote-desktop-symbolic
WWW web-browser-symbolic
EXEC system-run-symbolic
Anything else network-server-symbolic

Only regular files are read — a symlink to one is followed — and at most 256 KiB of each. A profile that cannot be read is skipped and the rest of the list stays. An empty list says why: Remmina not found and Profile directory setting is invalid both open the preferences; No profiles saved means Remmina is there with nothing in it yet.

05

Where profiles live

The directory is found rather than configured. The first of these that applies wins:

  1. The Profile directory setting. It must be absolute or start with ~/; anything else is reported, not guessed at.
  2. datadir_path from remmina.pref. The first readable of the native and the Flatpak copy decides — the native one first when remmina is on PATH.
  3. A native install, when remmina is on PATH: $XDG_DATA_HOME/remmina, usually ~/.local/share/remmina. It wins over the Flatpak because its profiles are the ones remmina -c would open.
  4. The Flatpak, when ~/.var/app/org.remmina.Remmina/data/remmina exists.

With none of them, the menu says Remmina not found.

Nothing needs a restart. A fresh Remmina has no profile directory until it saves a profile, so QuickRem watches the nearest folder that exists and moves onto the directory once it appears. It also watches where detection looks — the Flatpak data directory and both remmina.pref files — so a Remmina installed after the extension, or a datadir_path set later, is picked up on its own. A native install only appears on PATH, which cannot be watched, so opening the menu while it says Remmina not found looks again.

06

Launching

Remmina has no D-Bus interface and is not D-Bus activatable, so something has to be run. Shelling out to flatpak run org.remmina.Remmina -c <path> would hard-code the packaging, and a path handed straight to a sandboxed process is not necessarily one it can see.

So QuickRem opens a profile through whatever is registered for application/x-remmina. On a Flatpak install that is Remmina’s own connect entry:

org.remmina.Remmina-file.desktop
Exec=flatpak run --command=remmina-file-wrapper --file-forwarding \
     org.remmina.Remmina -c @@u %U @@

That entry is the -c connect action, and --file-forwarding has the portal map the path into the sandbox. The same call works unchanged for a distribution package and reuses an already-running Remmina. Open Remmina… goes through Shell.AppSystem, whose launch context puts the window on the workspace the click came from.

The Launch command setting overrides both. It is split with GLib.shell_parse_argv and the profile path is appended as a separate argument, never interpolated — a profile named with a semicolon is an argument, not a second command.

07

Preferences

Open them from Settings at the bottom of the menu, from the Extensions app, or with just prefs from a clone. The first row shows which directory QuickRem resolved and how, and says so when it does not exist yet or the setting is not a usable path — a wrong guess is visible rather than silent.

Setting Empty means Notes
Profile directory Detect it An absolute path, or one starting with ~/.
Launch command Open a profile with the application/x-remmina handler For an unusual install. The profile path is appended as its own argument. With it empty, Open Remmina… goes through org.remmina.Remmina.desktop via Shell.AppSystem; a command set here is used for both.

08

Security

The profile directory is trusted. Clicking a profile hands it to Remmina, and Remmina does what it says: protocol=EXEC runs its execcommand, and SSH profiles can run commands before and after connecting. Anyone who can write a profile there, or point profile-dir or datadir_path somewhere they can write, can get a command run the next time it is clicked. Keep it writable only by you.

Passwords are never read

Remmina encrypts stored passwords with a key kept in remmina.pref. QuickRem cannot decrypt them and does not try: modules/profiles.js drops every key matching password, passphrase or secret while parsing, so a later code path that forgets to filter has nothing to leak into a label or the journal. remmina.pref itself is read for one key, datadir_path; the secret= beside it is never even unescaped. A unit test holds this: the parsed profile has only its five expected keys and none of the ciphertext.

What else QuickRem promises

  • A FIFO, a device node or a symlink to one — /dev/zero, say — is skipped without being opened, and no read goes past 256 KiB, so nothing in the profile directory can stall or exhaust the Shell.
  • Log lines never name a profile: Remmina’s default filename embeds the server’s hostname.
  • A profile path is always its own argument, never part of a command string.

Report a vulnerability privately through the security advisory form; the security policy has the full scope.

09

Architecture

The decisions live in modules that import nothing, so the suite tests them on plain Node. The files around them only move data between those rules and the disk or the Shell.

paths.js · profiles.js · keyfile.jsEvery decision about the files: which directory, what a profile says, how a key file reads. Import nothing; tested on Node.
File Job
extension.js Pairs construction with teardown, nothing else.
modules/keyfile.js Reads one group of a GKeyFile, exact keys only.
modules/profiles.js Parses a profile, sorts, maps protocol to icon.
modules/paths.js Decides which directory to read.
modules/io.js Asynchronous probes, and bounded reads of regular files.
modules/detect.js Probes the system and applies the rules in paths.js.
modules/store.js Scans and watches; publishes profiles and source.
modules/launch.js Decides what to run, and with which arguments.
modules/panel.js The tile, its menu and its rows.
prefs.js Preferences, in their own process.

Every read and probe is asynchronous: a profile directory lives on whatever the home directory is mounted from, and a synchronous read would stall the whole desktop. File events are debounced for 300 ms, because Remmina rewrites a profile in several steps when it saves, and generation counters drop a scan or a resolve that a newer one has overtaken. The store emits one changed signal per update, and the panel rebuilds from it, holding no profile state of its own.

Why the list scrolls

A Quick Settings menu has no scrolling of its own: measured on a 1080p screen, thirty profiles want 1296px of a 1048px work area and the rest is clipped. GNOME’s Wi-Fi menu shows eight networks and sends you to Settings for the rest, which suits a list you skim but not one you pick from. So modules/panel.js swaps its section’s actor for an St.ScrollView around the same box, capped at half the work area. The cap is applied just before the menu opens — the menu measures the height it animates to before it says it is opening — so a monitor or text-scaling change is picked up without watching for either.

10

Testing

just test runs the JavaScript suite with Vitest, the shared tooling tests, and any project-specific offline suites. just coverage reports runtime JavaScript and Python tooling coverage, including untested files. Test stubs and generated reports are not runtime source.

just test-docs runs Playwright and axe in Chromium and Firefox: dark and light accessibility checks, keyboard navigation, mobile layout, reduced motion, links, metadata, local assets, and no page JavaScript. Automated accessibility checks still require human review of reading and focus order.

just test-live checks the package and runs isolated GNOME lifecycle checks. It is a separate local check, not proof of compatibility from a hosted runner. Verify each declared GNOME version and complete the project's manual checks before releasing.

Project checks

The offline suite verifies file-watcher coalescing, unsafe file types, argument-vector launching, preferences, and menu lifetimes. The isolated Shell check adds and removes profiles across enable/disable/re-enable. Use just fixtures 5 for throwaway profiles, then just fixtures-clean to remove them. Verify real Remmina launching manually.

11

Packaging

Shell
just build
just pack-check

The output is quickrem@napalm255.github.io.shell-extension.zip at the repository root, with metadata.json at the archive root. Python's standard library packages the explicit runtimeFiles allowlist in quick-project.json, using stable file order and timestamps.

just pack-check compares both filenames and file contents with GNOME's official packer and validates shipped icons. Docs, tests, dependencies, credentials, downloaded binaries, and development artifacts stay outside the ZIP. Update the runtime allowlist when adding a runtime file.

12

Contributing

main is protected: no direct pushes, no force-pushes and no merge commits. Everything lands through a pull request whose title is a Conventional Commit — it becomes the squashed commit subject.

Shell
$ git switch -c type/short-description
$ just ci
$ gh pr create --fill
$ gh pr merge --squash --auto

The required ci check includes CodeQL and Sonar, and the branch has to be current with main. No approving review is required, so a single maintainer is not locked out.

13

Releasing

Run just ci, just test-live, and the project manual checklist. Set metadata.json version-name and package.json version to the same new version. The GNOME Extensions website assigns the numeric metadata.json version during submission. Update the npm lockfile, regenerate the docs, and commit the reviewed changes to main through a passing pull request.

Create and push a v-prefixed tag for that version. The release workflow verifies the version, main ancestry, and successful required checks for the tagged commit, then attaches its tested ZIP to a GitHub release. It does not upload to extensions.gnome.org; that submission and its review remain manual.

14

Development

mise.toml pins runtime and CLI versions; justfile owns commands; npm owns development dependencies and the lockfile. GNOME libraries come from the host. On image-based Fedora, use the host's available tools or a toolbox/distrobox for missing system packages; do not layer packages onto the OS.

Shell
just setup        # install pinned tools, dependencies, and browsers
just fmt          # format source and configuration
just lint         # verify template, generated docs, source, and schemas
just test         # JavaScript, Python, and project offline tests
just coverage     # report JavaScript and Python coverage without source exclusions
just test-docs    # Chromium and Firefox documentation checks
just security     # dependencies, secrets, and workflow checks
just build        # build the runtime-only extension ZIP
just pack-check   # compare files and contents with GNOME's packer
just ci           # complete local verification and packaging
just test-live    # isolated GNOME lifecycle and project integration checks
just docs         # serve the static site at localhost:8000
just template-check  # verify the pinned canonical template
just template-status # report a newer approved template revision

GitHub requires local verification, security analysis, and completed Sonar analysis. The shared Sonar policy requires zero security, reliability, and maintainability issues and zero duplicated lines. PR checks cover changed code; main checks cover the entire project. Missing configuration fails instead of silently skipping analysis. Pages publishes the tested docs only after the required checks pass on main.

Common tooling and these instructions are generated from a pinned canonical template. Change that source and synchronize its approved revision; do not edit generated sections or locally bless drift. Extension-specific behavior belongs in project configuration and project.just.