Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

betterdiscordctl can't find Flatpak Version #31

Closed
luxploit-old opened this issue Mar 1, 2019 · 1 comment
Closed

betterdiscordctl can't find Flatpak Version #31

luxploit-old opened this issue Mar 1, 2019 · 1 comment
Labels
bug:resolved Something wasn't working but has been fixed
Milestone

Comments

@luxploit-old
Copy link

luxploit-old commented Mar 1, 2019

OS: OpenSuse Tumbleweed
Kernel: 4.20
Discord Install Method: Flatpak

/home/andreas> betterdiscordctl -V
betterdiscordctl 1.5.0

/home/andreas> betterdiscordctl install --flatpak -v -v --global-asar
VV: Checking
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/andreas/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS enviroment variable, so
applications installed by Flatpak may not appear on your Desktop until the session is restarted.

/var/lib/flatpak/app/com.discordapp.Discord/x84_64/stable
/fa97741601c4a3c9cbc55bed8ddb110a79d33e70e40b3327f045889899e68c35/files/extra
ERROR: Discord installation not found.

https://i.imgur.com/3sCOvhV.png

@ObserverOfTime
Copy link
Collaborator

ObserverOfTime commented Mar 1, 2019

Likely related to:

# flatpak sucks and doesn't use stderr for warnings.
# https://github.com/flatpak/flatpak/blob/13e449b5033d063f0df8b2d496c6ff929543239c/app/flatpak-main.c#L259-L286
# This really should be better about directories with newlines, but...
# Translations. So we're just going to grab the last line and hope for the best.
flatpak_location=$("$flatpak" info --show-location com.discordapp.Discord)
flatpak_location=${flatpak_location##*$'\n'}

You'll have to wait until #30 is fixed and merged, or use another installation method for Discord.

You could also set XDG_DATA_DIRS="$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share" and hope for the best.

Maybe we should submit an issue to flatpak asking them to use stderr for warnings. 🤔

@ObserverOfTime ObserverOfTime added the bug:unresolved Something isn't working label Mar 1, 2019
@ObserverOfTime ObserverOfTime added this to the next milestone Mar 1, 2019
@ObserverOfTime ObserverOfTime added bug:resolved Something wasn't working but has been fixed and removed bug:unresolved Something isn't working labels May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:resolved Something wasn't working but has been fixed
Projects
None yet
Development

No branches or pull requests

2 participants