Repository navigation
Conversation
After the login button ran dropbox-cli start, nothing watched for the link to finish. The service refreshed once, a second after the command exited, and then waited for the periodic timer, up to a minute by default. The panel sat on "Login to Dropbox" after the browser flow had succeeded, which invites a second click. The current client makes this worse: an unlinked daemon does not answer its command socket, so dropbox-cli start prints no link URL at all. The daemon opens the account-link page in the browser itself. So the wait has to start on the click, not on a URL the panel may never see. Poll every 3 seconds for up to 5 minutes after any login attempt, and stop as soon as a status poll reports a linked account. While that wait is pending the login row reads "Finish linking in your browser", and if a URL was captured a click reopens it instead of starting the flow over. If the daemon never confirms the link, say so. Measured on Omarchy 4.0.3 with client 268.4.4124: before, the panel was still on the login prompt 28 seconds after the link landed; after, it flipped within 4 seconds. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Owner
Author
|
Superseded by the upstream draft: omacom#11955 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is: a fix for the Dropbox bar panel staying on "Login to Dropbox" after you have linked the device in the browser. The panel now keeps checking for the link after a login click, instead of waiting for its 60-second refresh timer. Three files:
shell/plugins/panels/dropbox/Service.qml,Panel.qml, and the plugin's test file.What you see today
Measured on a stock 4.0.3 install: the link landed at 00:33:54, and the panel was still on the login prompt at 00:34:22. It only updated at 00:34:26 because I clicked Login a second time, which triggers a one-off refresh. Reported as omacom#10940.
Why
Service.qmlre-runsstatus.pyon a 60-second timer, when the panel opens, and once, one second afterdropbox-cli startexits. Nothing re-runs it because a link is in progress, and the browser step takes longer than one second.Two facts about the current client (268.4.4124, self-updated from the 264.4.3421 package) shape the fix:
dropbox-cli statusprinted "Dropbox isn't running!", anddropbox-cli startprinted "Dropbox isn't running!" then "Dropbox is already running!" with no URL. The daemon opens the link page in the browser by itself at startup.statusfor it, never starts or times out.Change
status.pyevery 3 seconds for up to 5 minutes. Stop as soon as a poll reports a linked account.dropbox-cli startagain.test/shell.d/dropbox-test.sh, in the existing node-test style.Evidence
Same machine, same method for both rounds: stop the daemon, move
~/.dropboxaside so it starts unlinked, trigger the panel's IPClogin, connect in the browser tab the daemon opened. A monitor logged the daemon'sdropbox-cli statusnext to the panel'somarchy-shell omarchy.dropbox statusevery 3 seconds.Omarchy 4.0.3-1, dropbox 264.4.3421-1, dropbox-cli 2024.04.17-2.1, Hyprland 0.56.2, x86_64.
Also:
bash test/shell.d/dropbox-test.shpasses;qmllinton both QML files adds nothing beyond the existing unresolvedqs.*imports.Related
dropbox-cli statusfor the link URL. On the client measured here that poll would expire into its error state, since the unlinked daemon never serves the socket. Both PRs touchopenAuthUrlFromandlogin(); whichever lands second needs a small rebase, and the two are otherwise compatible.uwsm-app. Independent.dropbox-cli starton a stale pidfile forks a second daemon that sits on "Starting..." while the real one keeps syncing omacom/omarchy#11954 is the second-daemon behaviour described above, with reproduction steps and fix options for the launch path.ExitType=cgroupkilling the daemon. I don't think that holds: here the unit's daemon ran 31 hours after the wrapper exited. What kills it is any extradropbox …command, because on Arch/usr/bin/dropboxis the daemon binary, not the CLI. Thedropbox statusin that report starts a second daemon.What a second click does
Filed separately as omacom#11954, since it is a
dropbox-clibehaviour the panel can only avoid, not fix. The short version, and the other half of why the reopen behaviour matters.dropbox-cli startdecides whether the daemon is running from~/.dropbox/dropbox.pid. With a valid pidfile a second click is harmless: the CLI prints "Dropbox is already running!" and exits. With a stale one it forks a freshdropboxdinto the caller's cgroup. Measured by moving the pidfile aside on a healthy, up-to-date install and runningdropbox-cli startfrom a terminal:From the panel, that cgroup is Quickshell's (omacom#10423). The pidfile did not go stale during either link round here, so this is a consequence of re-running
startat the wrong moment, not of linking itself. It is why a click during the wait reopens the page rather than runningstartagain.🤖 Generated with Claude Code