Repository navigation
feat(app): the app on Linux and macOS - #99
Merged
Merged
Conversation
… to Claude Code on Linux and macOS - Folders, files, links and "show in folder" go through open (macOS) or xdg-open (Linux) instead of explorer.exe; reveal_file no longer needs a Windows-only API to build. - Opening the app at sign-in is an autostart entry on Linux and a launch agent on macOS. - Signing in to Claude Code opens a terminal window off Windows; the command writes its exit code to a file the app waits for. - CI checks and tests the app crate on Ubuntu and macOS.
"Start with Windows", "when you sign in to Windows", the system's notifications and animations now read macOS or Linux there, from the app window's user agent (lib/system.ts). The browser that did not open names Chrome, Chromium or Edge off Windows. All three languages.
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.
Slice 4 of Linux/macOS support (spec 18, item 8): the app works off Windows, and its texts name the system it runs on.
Changes
open.rs:open_path,open_file,open_urlandreveal_fileuseexplorer.exeon Windows (unchanged),openon macOS andxdg-openon Linux..appas a folder is refused, becauseopenwould start it.reveal_fileisopen -Ron macOS. Linux has no common way to select a file, so it opens the file's folder.reveal_fileused a Windows-only API, so the app did not build elsewhere.sign_in.rs: opening the app at sign-in is the Run key on Windows (unchanged),~/.config/autostart/botloft.desktopon Linux, and the launch agentio.github.httpsphl.botloft.appon macOS (RunAtLoad, Aqua sessions only).terminal.rs: the Claude Code sign-in opens a terminal window off Windows, as the console window does on Windows.osascript. Linux uses the first ofx-terminal-emulator,gnome-terminal,konsole,xfce4-terminal,kitty,alacrittyandxterm.0700temp folder, and the app waits for it for up to 15 min. A terminal may hand the command to a process it already runs and return at once.botloft-appon Ubuntu (with the Tauri desktop libraries) and macOS.Tests
Exec, the launch agent plist,shand AppleScript quoting, reading the exit code from the status file.Manual test (not done yet; needs a desktop)
claude auth login.Texts (second commit)
lib/system.tsreadsWindows,macOSorLinuxonce from the app window's user agent. Anything unknown counts as Windows.pnpm check: 46 files, 267 tests. Spec 15.6 updated.