Skip to content

Start Dropbox daemon under uwsm-app from the bar panel - #10538

Open
oscarbol09 wants to merge 3 commits into
omacom:quattrofrom
oscarbol09:fix/dropbox-panel-uwsm-scope
Open

oscarbol09 wants to merge 3 commits into
omacom:quattrofrom
oscarbol09:fix/dropbox-panel-uwsm-scope

Conversation

@oscarbol09

Copy link
Copy Markdown
Contributor

The Dropbox panel invokes \dropbox-cli start\ directly in \login()\ and
esume(), unlike the installer which wraps daemon launches with \uwsm-app. Because \dropbox-cli start\ is a bare \setsid\ fork that inherits the caller's cgroup, starting or resuming Dropbox from the panel placed \dropboxd\ inside Quickshell's cgroup (or a terminal's scope) rather than its own app scope.

Wrapping daemon invocations in \shell/plugins/panels/dropbox/Service.qml\ with \uwsm-app --\ ensures the daemon lands in its own systemd session scope regardless of who triggers it.

Fixes #10423

@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed and tested at 31801a3 against quattro. Nothing needs changing.

Reproduced on an Omarchy worker VM with the real dropbox 270.4.3312 and dropbox-cli packages, with the bar shell loaded from each tree and the panel driven through its own IPC and keys:

  • On the parent commit (a9eaf79): the panel's login started dropboxd in session.slice/wayland-wm@hyprland.desktop.service, the cgroup Quickshell and the compositor run in. That is the bug from Dropbox panel's resume/login start dropboxd without uwsm-app, orphaning it from app-dropbox@autostart.service #10423.
  • On this head: login put dropboxd in its own app-graphical.slice/app-Hyprland-dropbox\x2dcli-….scope. It stayed there after dropbox-cli start exited, and the auth URL still reached the panel through uwsm-app and opened in the browser. Pausing and resuming from the panel also brought the daemon back in a fresh scope of its own.

Suite: ./test/cli passes on the worker. test/shell.d/dropbox-test.sh could not run there because node is missing. It fails the same way on the parent commit, and it only covers Model.js, which this PR does not touch.

Scope check: these are the only two places that start the daemon. The installer already uses uwsm-app --, and dropbox-cli stop rightly stays unwrapped, since it only signals the daemon that is already running. The PR already says it fixes #10423.

Second opinion: Codex Medium agreed that the change is proportionate and complete, and that stdout and exit codes pass through uwsm-app unchanged (independence not guaranteed). It also pointed out that a user who sets UWSM_APP_UNIT_TYPE=service would get a service unit instead of a scope, and the login URL would then go to the journal. I left that alone: Omarchy never sets that variable, and all 42 uwsm-app launches in the repo, the Dropbox installer included, rely on the default in the same way.

This is now waiting on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 14, 2026
Resolve the conflict in Service.qml login(): quattro moved the status string to I18n.t("dropbox.startingLogin") on the line beside the uwsm-app wrap; keep both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Oct 14, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This stopped merging cleanly after quattro moved the panel's status strings to I18n.t (#15326), on the line next to your change in login(). I merged quattro into the branch and kept both changes (ff49c9a): against quattro the diff is still just your two uwsm-app -- lines.

Re-tested at ff49c9a on an Omarchy worker VM with the real dropbox 270.4.3312 and dropbox-cli packages, with the bar shell loaded from each tree and login started through the panel's IPC:

Suite: ./test/cli and test/shell.d/installed-service-test.sh pass on the worker. test/shell.d/dropbox-test.sh could not run because the worker has no node, and it fails the same way on quattro.

Second opinion: Codex Medium checked the merge and found nothing: every quattro change to Service.qml is kept, quattro added no other place that starts the daemon, and the change is still proportionate (it agreed with my reading, and its independence is not guaranteed).

#14985 fixes the same issue. It wraps the same two lines in uwsm-app -t scope -- and adds a grep test. Codex Medium and I both judged that this pull request goes ahead, because it came first and does the same thing with Omarchy's defaults: nothing in the repository sets UWSM_APP_UNIT_TYPE, and every other uwsm-app launch, the Dropbox installer included, leaves out -t. #14985 does add one useful safeguard. Pinning -t scope keeps the login URL and exit status working for a user who has set uwsm's default unit type to service. That safeguard is to be folded into this branch, and #14985 will not be marked ready while this one is.

This is now waiting on the maintainer.

@greptile-apps

greptile-apps Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Starts Dropbox through uwsm-app -- when users log in or resume from the panel.

  • Dropbox starts from panel actions in its own app scope.

Reviews (1) · Last reviewed commit: "Merge branch 'quattro' into fix/dropbox-..." · Reviewed by Greptile

@omarchybot omarchybot removed verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Nov 6, 2026
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Nov 16, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Re-tested after your merge of quattro (c50be8c). Nothing needs changing. Against current quattro (3b36b9e), the diff is still just your two uwsm-app -- lines in Service.qml, and it merges cleanly.

Reproduced on an Omarchy worker VM with the real dropbox 278.4.4020, dropbox-cli and uwsm 0.27.2. The bar shell was loaded from each tree. I started login through the panel's IPC, then pressed p in the open panel to pause and again to resume:

  • On quattro: login and resume both put dropboxd in session.slice/wayland-wm@hyprland.desktop.service, the cgroup Quickshell and the compositor run in. That is Dropbox panel's resume/login start dropboxd without uwsm-app, orphaning it from app-dropbox@autostart.service #10423, still present.
  • On this head: login put dropboxd in its own app-graphical.slice/app-Hyprland-dropbox\x2dcli-….scope, and it was still there 60 seconds later. The login link still reached the panel and opened in the browser. Resume brought the daemon back in a fresh scope of its own.
  • On this head with your two lines reverted: the same as quattro.

Suite: ./test/cli passes on the worker, and so do test/shell.d/dropbox-test.sh, i18n-test.sh, plugin-enable-test.sh and bar-test.sh. I installed node on the worker so the shell tests could run this time.

Second opinion: Codex Medium and muse-wonder (via pi, thinking high) each reviewed the head and found nothing (independence not guaranteed). Both confirmed these are the only two places that start the daemon without a scope of their own, and that uwsm-app in its default scope mode passes stdout, stderr and the exit status straight through to the panel. Both noted that a user who sets UWSM_APP_UNIT_TYPE=service would lose the login link. Nothing in Omarchy sets that, and the same is true of every other uwsm-app launch.

A correction to my last comment: I said #14985's -t scope would be folded into this branch. I looked at it again with Codex Medium, and it won't be. None of the 57 uwsm-app launches in the repository pins -t, the Dropbox installer included, and #14985's grep test is the kind of test the repository's AGENTS.md asks not to add. This pull request stays as you wrote it. #14985 still fixes the same issue, but it is newer and won't be brought forward while this one is.

This is now waiting on the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropbox panel's resume/login start dropboxd without uwsm-app, orphaning it from app-dropbox@autostart.service

2 participants