Android visitors are offered the Linux .deb on cap.so's homepage and download page

オープン 初心者向け
#3,677 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@patrickballard がすでに取り組んでいます。

2026年11月3日 から。

  • #3678 @patrickballard による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
nextjs, react, typescript
領域
frontend

調査の方向性

apps/web/hooks/useDetectPlatform.ts から始めてください。このファイルでは、"Linux" を含むすべての user agent がデスクトップ版 Linux として分類されています。次に、トップページのボタンとダウンロードページを確認してください。どちらもこのフックの結果を読み取り、/download/linux-deb にリンクしています。Pixel 8 の例のような Android の user agent が Linux と判定されなくなり、iPhone や未認識の user agent は既存のデフォルト値を維持すれば完了です。Chrome の DevTools で user agent を Android に上書きして確認してください。

索引モデルが issue の本文から書いたものです。

説明

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
  1. 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.
  2. The homepage's main button reads "Download free for Linux".
  3. On cap.so/download, the main button has the Linux logo and links to /download/linux-deb.
cap.so homepage in Chrome's Android emulation (Pixel 8): the main button reads Download free for Linux
Expected

Android isn't treated as desktop Linux, so it isn't offered the Linux package.

主要言語
Rust
スター
24.2k
フォーク
2.2k
平均マージ
1日 9時間
マージ済み PR(30日)
731

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CapSoftware/Cap のほかの issue

CapSoftware/Cap の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。