Android visitors are offered the Linux .deb on cap.so's homepage and download page
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nextjs, react, typescript
- Domain
- frontend
Research direction
Start in apps/web/hooks/useDetectPlatform.ts, where any user agent containing "Linux" is classified as desktop Linux. Then check the homepage button and the download page, which both read that hook's result and link to /download/linux-deb. Done means an Android user agent such as the Pixel 8 example no longer resolves to Linux, while iPhone and unrecognised agents keep the existing defaults. Verify by overriding the user agent to Android in Chrome devtools.
Written by the indexing model from the issue text.
Description
Description
useDetectPlatform (apps/web/hooks/useDetectPlatform.ts) treats any user agent containing "Linux" as desktop Linux. Android browsers include "Linux" in theirs (Mozilla/5.0 (Linux; Android 14; Pixel 8) ...), so on an Android phone or tablet:
- the homepage's main button reads "Download free for Linux" and links to
/download/linux-deb; - the download page's main button has the Linux logo, links to
/download/linux-deb, and is captioned "Linux x86_64 • .deb, AppImage, RPM and Arch available".
Tapping either downloads the desktop Linux package to the phone. iPhones and other unrecognised devices get the site's default instead: the macOS app on the homepage, and a generic "Download Cap" on the download page.
Reproduction
- Open cap.so in Chrome on an Android phone, or in desktop Chrome with device emulation set to an Android device such as a Pixel 8.
- The homepage's main button reads "Download free for Linux".
- On cap.so/download, the main button has the Linux logo and links to
/download/linux-deb.
Expected
Android isn't treated as desktop Linux, so it isn't offered the Linux package.
- Dominant language
- Rust
- Stars
- 24.2k
- Forks
- 2.2k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 731
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CapSoftware/Cap
-
Download, FAQ, privacy and terms pages have no meta descriptionPossibly taken @patrickballard claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
CapSoftware/Cap#3675 · 1 comment ·
Maintainers usually reply within 1 day
-
Shortcut recorder rejects ⌘⇧ with a digit or symbol (e.g. ⌘⇧4)Possibly taken @HlaKarki claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CapSoftware/Cap#3634 · 1 comment ·
Maintainers usually reply within 1 day
-
Web player intercepts ⌘⇧M and blocks Chrome profile-menu shortcutPossibly taken @AatmanAJ claimed this 19 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
CapSoftware/Cap#2596 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CapSoftware/Cap#2384 · 2 comments ·
Maintainers usually reply within 1 day
-
Dashboard pagination causes full page reloads on self-hosted CapMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
CapSoftware/Cap#2305 · 2 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
riverqueue/river#1576 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
stadelmanma/fitparse-rs#64 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
zed-extensions/java#325 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
dividebysandwich/sdroxide#769 ·
Maintainers usually reply within 5 days