flathub / com.discordapp.Discord

https://flathub.org/apps/details/com.discordapp.Discord
128 stars 41 forks source link

Discord flatpak does not download in Whonix #472

Closed rjQjMqpX closed 1 week ago

rjQjMqpX commented 1 week ago

I am unable to install the discord flatpak in Whonix Workstation, which is based on Kicksecure, which is based on Debian 12 (bookworm).

Whonix routes all of its traffic through the tor network. However, I am able to install other flatpaks in Whonix. Why am I unable to install the Discord flatpak?

user@host:~$ uname -m
x86_64

user@host:~$ flatpak install flathub com.discordapp.Discord --verbose
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/user/.local/share/flatpak
Looking for matches…
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using curl
F: Received 10001 bytes
F: Loaded indexed summary file d230c59c21ca1b877fd6c82c5ec542fca696a17bbc99f0b4b4a355ed646474ce from cache for remote ‘flathub’
error: Nothing matches com.discordapp.Discord in remote flathub

user@host:~$ flatpak install com.discordapp.Discord.flatpakref --verbose
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/user/.local/share/flatpak
F: Loading https://dl.flathub.org/repo/flathub.flatpakrepo using curl
F: Received 4040 bytes
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using curl
F: Received 10001 bytes
F: Loaded indexed summary file d230c59c21ca1b877fd6c82c5ec542fca696a17bbc99f0b4b4a355ed646474ce from cache for remote ‘flathub’
F: Transaction: install flathub:app/com.discordapp.Discord/x86_64/stable[*]
error: No such ref 'app/com.discordapp.Discord/x86_64/stable' in remote flathub
guihkx commented 1 week ago

Does that only affect Discord, though? You should try to install another app, e.g. org.mozilla.firefox.

rjQjMqpX commented 1 week ago

Yes, it works.

user@host:~$ flatpak install flathub org.mozilla.firefox
Looking for matches…
Required runtime for org.mozilla.firefox/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/23.08) found in remote flathub
Do you want to install it? [Y/n]: y

org.mozilla.firefox permissions:
    ipc                       network                       cups                   fallback-x11
    pcsc                      pulseaudio                    wayland                x11
    devices                   devel                         file access [1]        dbus access [2]
    bus ownership [3]         system dbus access [4]

    [1] /run/.heim_org.h5l.kcm-socket, xdg-download, xdg-run/speech-dispatcher:ro
    [2] org.a11y.Bus, org.freedesktop.FileManager1, org.gtk.vfs.*
    [3] org.mozilla.firefox.*, org.mozilla.firefox_beta.*, org.mpris.MediaPlayer2.firefox.*
    [4] org.freedesktop.NetworkManager

        ID                                      Branch          Op     Remote      Download
 1. [✓] org.freedesktop.Platform.GL.default     23.08           i      flathub     163.6 MB / 163.9 MB
 2. [✓] org.freedesktop.Platform.GL.default     23.08-extra     i      flathub      22.6 MB / 163.9 MB
 3. [✓] org.freedesktop.Platform.Locale         23.08           i      flathub      47.8 MB / 371.6 MB
 4. [✓] org.freedesktop.Platform.openh264       2.2.0           i      flathub       1.2 MB / 944.3 kB
 5. [✓] org.freedesktop.Platform                23.08           i      flathub     185.0 MB / 230.3 MB
 6. [✓] org.mozilla.firefox.Locale              stable          i      flathub      54.8 MB / 54.8 MB
 7. [✓] org.mozilla.firefox                     stable          i      flathub      98.5 MB / 99.0 MB

Installation complete.

If I run flatpak search discord, I get the following output.

user@host:~$ flatpak search discord
Name      Description                                      Application ID          Version Branch Remotes
ArmCord   ArmCord is a custom client designed to enhance … xyz.armcord.ArmCord     3.3.1   stable flathub
Dissent   Tiny native Discord app                          so.libdb.dissent        v0.0.30 stable flathub
GoofCord  A privacy minded and highly configurable Discor… …ub.milkshiift.GoofCord 1.7.1   stable flathub
Equibop   Snappier Discord app with Equicord               …ithub.equicord.equibop v2.0.9  stable flathub
Vesktop   Snappier Discord app with Vencord                dev.vencord.Vesktop     1.5.3   stable flathub
Whatsie   Qt Whatsapp Web Client for Linux Desktop         com.ktechpit.whatsie    4.16.1  stable flathub
Qtcord    Lightweight Discord Client                       ….github.mak448a.QTCord v0.0.21 stable flathub
Datcord   An open-source Discord client that uses Firefox  …hub.gamingdoom.Datcord 0.5.2   stable flathub
Tonbrett  Companion App for Discord Soundboard Bot         dev.schlaubi.Tonbrett   1.22.3  stable flathub
Overlayed A Discord overlay                                dev.overlayed.Overlayed 0.6.2   stable flathub
Cider     An open source and community oriented Apple Mus… sh.cider.Cider          v1.6.3  stable flathub
Alien Ar… Ultra fast paced arena FPS                       ….alienarena.alienarena 7.71.7  stable flathub
RetroDECK RetroDECK brings an environment to catalog and … net.retrodeck.retrodeck 0.8.4b  stable flathub
REAL Vid… Free and Open Source Video Enhancement Tool      …se.REAL-Video-Enhancer 1.2.0   stable flathub
Resonance Harmonize your listening experience              …hub.nate_xyz.Resonance 0.1.3   stable flathub
Muezzin   Islamic prayer times application                 …github.dbchoco.muezzin v2.6.0  stable flathub
Salawat   Islamic prayer times application                 …github.dbchoco.Salawat v1.3.0  stable flathub
SpMp      A customisable YouTube Music client              dev.toastbits.spmp      v0.4.1  stable flathub
wger      Fitness/workout, nutrition and weight tracker    de.wger.flutter         1.7.7   stable flathub
guihkx commented 1 week ago

That's strange. Can you share the output of flatpak search discord?

Oops, you've already done that.

@bbhtt Do you have any idea why Discord doesn't show up or install for this person?

guihkx commented 1 week ago

I noticed some other apps also don't show up when you search for discord (I compared your results with mine):

Name           Description                                                                                                      Application ID                  Version        Branch Remotes
Discover Over… A graphical overlay for Discord voice chat.                                                                      ….github.trigg.discover_overlay 0.7.7          stable flathub
WebCord        Web-based Discord client                                                                                         io.github.spacingbat3.webcord   4.10.2         stable flathub
Ripcord        Alternative desktop chat client for Slack (and Discord)                                                          fm.cancel.Ripcord               0.4.29         stable flathub
Veloren        Veloren is a multiplayer voxel RPG written in Rust. It is inspired by games such as Cube World, Legend of Zelda… net.veloren.veloren             0.15.0-nightly stable flathub
Airshipper     Airshipper is the official launcher for Veloren.                                                                 net.veloren.airshipper          0.14.0         stable flathub
OpenDungeonsP… manage Creatures and Dungeons in the style of Dungeon Keeper                                                     ….tomluchowski.OpenDungeonsPlus 0.8            stable flathub
Guilded        Messaging, Voice, and Video Client                                                                               gg.guilded.Guilded              1.0.9284034    stable flathub
OpenGOAL       Launcher for the OpenGOAL Project                                                                                dev.opengoal.OpenGOAL           2.5.4          stable flathub
AuthPass       Password Manager: Keep your passwords safe across all platforms and devices                                      app.authpass.AuthPass           1.9.6_1904     stable flathub
guihkx commented 1 week ago

https://www.kicksecure.com/wiki/Install_Software#Kicksecure_Flathub_Repository_Default_Settings

Kicksecure filters out unverified and non-free apps by default.