BetterDiscord / BetterDiscord/cli

Installation not recognized as valid

Open
#8 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
22
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I installed Discord at `.config/discord/` but the bdcli isn't discovering it, and specifying the path manually doesn't work either. It has the following files:

```
drwxr-xr-x 1 pipe pipe 20 May 5 00:20 1.0.136/
drwxr-xr-x 1 pipe pipe 574 May 5 00:20 app-1.0.136/
drwx------ 1 pipe pipe 72 May 5 00:31 blob_storage/
drwx------ 1 pipe pipe 20 Jan 21 2025 Cache/
drwx------ 1 pipe pipe 12 Jan 21 2025 'Code Cache'/
drwx------ 1 pipe pipe 154 Nov 27 21:38 component_crx_cache/
-rw------- 1 pipe pipe 28K May 5 00:32 Cookies
-rw------- 1 pipe pipe 0 May 5 00:32 Cookies-journal
drwx------ 1 pipe pipe 102 Jan 21 2025 Crashpad/
drwx------ 1 pipe pipe 58 May 5 00:31 DawnGraphiteCache/
drwx------ 1 pipe pipe 58 May 5 00:31 DawnWebGPUCache/
drwx------ 1 pipe pipe 86 Apr 14 2025 Dictionaries/
-rw------- 1 pipe pipe 36K May 5 00:32 DIPS
lrwxrwxrwx 1 pipe pipe 50 May 5 00:20 Discord -> /var/home/pipe/.config/discord/app-1.0.136/Discord*
drwxr-xr-x 1 pipe pipe 16 Feb 26 16:11 discord_asset_cache/
-rw-r--r-- 1 pipe pipe 0 Jan 21 2025 domainMigrated
drwx------ 1 pipe pipe 58 May 5 00:31 GPUCache/
drwx------ 1 pipe pipe 74 Sep 3 2025 IndexedDB/
-rw-r--r-- 1 pipe pipe 136K May 5 00:31 installer.db
-rw------- 1 pipe pipe 430 Feb 26 00:09 'Local State'
drwx------ 1 pipe pipe 14 Jan 21 2025 'Local Storage'/
drwxr-xr-x 1 pipe pipe 356 May 5 00:31 logs/
drwxr-xr-x 1 pipe pipe 70 Apr 28 19:49 module_data/
-rw------- 1 pipe pipe 8.4K May 5 00:32 'Network Persistent State'
-rw------- 1 pipe pipe 2.3K May 5 00:32 Preferences
-rw-r--r-- 1 pipe pipe 34 May 5 00:31 quotes.json
drwxr-xr-x 1 pipe pipe 36 Jan 21 2025 sentry/
drwx------ 1 pipe pipe 24 Mar 28 2025 'Service Worker'/
drwx------ 1 pipe pipe 192 May 5 00:31 'Session Storage'/
-rw-r--r-- 1 pipe pipe 522 May 5 00:32 settings.json
drwx------ 1 pipe pipe 34 Jan 21 2025 'Shared Dictionary'/
drwx------ 1 pipe pipe 108 May 1 15:59 shared_proto_db/
-rw------- 1 pipe pipe 4.0K Jan 21 2025 SharedStorage
-rw------- 1 pipe pipe 0 May 5 00:22 SharedStorage-wal
-rw------- 1 pipe pipe 69K May 5 00:32 TransportSecurity
-rw------- 1 pipe pipe 36K Jun 23 2025 'Trust Tokens'
-rw------- 1 pipe pipe 0 Jun 23 2025 'Trust Tokens-journal'
drwx------ 1 pipe pipe 28 May 1 15:59 VideoDecodeStats/
drwx------ 1 pipe pipe 68 Apr 8 18:58 WebStorage/
drwx------ 1 pipe pipe 96 Feb 15 22:28 WidevineCdm/
```

It seems like the folder `app-1.0.136` is the right one, as it has the following contents:

```
-rw-r--r-- 1 pipe pipe 164K May 4 20:00 chrome_100_percent.pak
-rw-r--r-- 1 pipe pipe 254K May 4 20:00 chrome_200_percent.pak
-rwxr-xr-x 1 pipe pipe 1.5M May 4 20:00 chrome_crashpad_handler*
-rwxr-xr-x 1 pipe pipe 15K May 4 20:00 chrome-sandbox*
-rwxr-xr-x 1 pipe pipe 181M May 4 20:00 Discord*
-rw-r--r-- 1 pipe pipe 6.9K May 4 20:00 discord.png
-rw-r--r-- 1 pipe pipe 10M May 4 20:00 icudtl.dat
-rw-r--r-- 1 pipe pipe 247K May 4 19:59 libEGL.so
-rw-r--r-- 1 pipe pipe 2.1M May 4 20:00 libffmpeg.so
-rw-r--r-- 1 pipe pipe 6.2M May 4 19:59 libGLESv2.so
-rw-r--r-- 1 pipe pipe 4.6M May 4 20:00 libvk_swiftshader.so
-rw-r--r-- 1 pipe pipe 600K May 4 20:00 libvulkan.so.1
drwxr-xr-x 1 pipe pipe 706 May 5 00:20 locales/
drwxr-xr-x 1 pipe pipe 302 May 5 00:21 modules/
drwxr-xr-x 1 pipe pipe 64 May 5 00:20 resources/
-rw-r--r-- 1 pipe pipe 5.8M May 4 20:00 resources.pak
-rw-r--r-- 1 pipe pipe 333K May 4 20:00 snapshot_blob.bin
-rwxr-xr-x 1 pipe pipe 5.6M May 4 19:59 updater.node*
-rw-r--r-- 1 pipe pipe 702K May 4 19:59 v8_context_snapshot.bin
-rw-r--r-- 1 pipe pipe 107 May 4 20:00 vk_swiftshader_icd.json
```

However, bdcli fails to recognize it as valid because the [version regex](https://github.com/BetterDiscord/cli/blob/a933d312d632af0eeb64a7c167dcdd7c9951ef04/internal/discord/paths.go#L13) doesn't cover this case. Maybe the regex should be modified to fit it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.