Skip to content

WIP: detect running browsers#19

Draft
alyraffauf wants to merge 1 commit into
masterfrom
running-browser-hack
Draft

WIP: detect running browsers#19
alyraffauf wants to merge 1 commit into
masterfrom
running-browser-hack

Conversation

@alyraffauf

Copy link
Copy Markdown
Owner

Extremely hacky process detector that should, in theory, detect which browsers are running, which could be leveraged by Switchyard someday.

Wayland has inherent limitations that isolate windows from each other. Unlike X11, it is impossible to query from running windows in a desktop/compositor-agnostic manor. This PR currently resorts to pattern matching from ps aux output (it's bad!).

Progress:

  • Functions to detect and return subsets of detected browsers (detectBrowsers()) that are running.
  • Logic for actually selecting one of/from running browsers.
  • GUI toggles.

But realistically I don't want to merge this kind of hack, so this PR may be a code graveyard. Other projects like https://github.com/vicinaehq/vicinae rely on gnome extensions, bespoke IPC parsing, etc.

@alyraffauf alyraffauf force-pushed the running-browser-hack branch from 0ec7724 to 18db4b4 Compare January 23, 2026 20:48
@alyraffauf alyraffauf force-pushed the master branch 3 times, most recently from f935fd7 to 1663cca Compare May 28, 2026 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant