-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
flatpak error #45
Comments
What's the output of |
flatpak info --show-location com.discordapp.Discord flatpak --version OS: Linux Mint Debian Edition 3 |
Can you update flatpak? It seems that |
No i can't . Flatpak installation depends on update system of LMDE .
If you replace " flathub " (with space before and after) in this previous string by the last string you can build the installation directory: It's just an idea :) |
I can't find a way to reliably get the location since v1.4.0 $ flatpak info com.discordapp.Discord
Discord - Chat client
ID: com.discordapp.Discord
Ref: app/com.discordapp.Discord/x86_64/stable
Arch: x86_64
Branch: stable
Version: 0.0.9
License: LicenseRef-proprietary
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 3.0 MB
Runtime: org.freedesktop.Platform/x86_64/18.08
Sdk: org.freedesktop.Sdk/x86_64/18.08
Commit: 8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378
Parent: 0b2fdc203d5e26872dcec04ed18fa87edfc3c548ae57518a89baa2e1f39ff46d
Subject: Use xdg-run/app/$id dir instead of custom one (f9017362)
Date: 2019-05-29 01:22:17 +0000
$ flatpak info --show-location com.discordapp.Discord
/var/lib/flatpak/app/com.discordapp.Discord/x86_64/stable/8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378 v0.10.0 $ flatpak info com.discordapp.Discord
Ref: app/com.discordapp.Discord/x86_64/stable
ID: com.discordapp.Discord
Arch: x86_64
Branch: stable
Origin: flathub
Commit: 8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378
Location: /var/lib/flatpak/app/com.discordapp.Discord/x86_64/stable/8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378
Installed size: 3.0 MB
Runtime: org.freedesktop.Platform/x86_64/18.08
$ flatpak info com.discordapp.Discord | sed -n 's/Location: //p'
/var/lib/flatpak/app/com.discordapp.Discord/x86_64/stable/8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378 v0.8.9 $ flatpak info com.discordapp.Discord
app/com.discordapp.Discord/x86_64/stable flathub 8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378
$ flatpak info com.discordapp.Discord | sed 's| flathub |/|'
app/com.discordapp.Discord/x86_64/stable/8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378
$ # ^ closest I can get to the full path |
What I'm gonna do instead is make it so the betterdiscordctl $bdctl_command --flatpak \
-d /var/lib/flatpak/app/com.discordapp.Discord/current/active/files/extra \
-m ~/.var/app/com.discordapp.Discord/config/discord/$discord_version/modules
|
Ok, you could suggest this options when "ERROR: Discord installation not found" message appear. |
@ObserverOfTime Nice workaround, but do note for some reason the "extra" folder did not exist for me and I had to manually create it. |
@ryaniskira It seems that either Discord's app or flatpak itself changed its folder structure. The new location is |
I actually tried that first and it didn't work, manually creating the extra folder then pointing to that did work. |
It works for me. flatpak_version=$("$flatpak_bin" --version | sed -n 's/Flatpak //p') if [[ $(Semver::compare "$flatpak_version" '1.0.0') -eq -1 ]]; then die 'ERROR: You are using an unsupported version of Flatpak.' \ 'See https://github.com/bb010g/betterdiscordctl/issues/45' fi # flatpak sucks and doesn't use stderr for warnings. # https://github.com/flatpak/flatpak/blob/13e449b/app/flatpak-main.c#L259-L286 # This really should be better for directories with newlines, but... # We're just going to grab the last line and hope for the best. flatpak_location=$("$flatpak_bin" info --show-location com.discordapp.Discord) flatpak_location=${flatpak_location##*$'\n'} discord=${flatpak_location:?}/files/extra and add discord='/var/lib/flatpak/app/com.discordapp.Discord/current/active/files/discord/' |
You can achieve the same thing by using |
First, sorry for my english :)
When i try to execute the command: /betterdiscordctl install --flatpak
I've got an error: "ERROR: Discord installation not found."
So, I added comments on the following rows:
flatpak_location=$("$flatpak_bin" info --show-location com.discordapp.Discord)
flatpak_location=${flatpak_location##*$'\n'}
discord=${flatpak_location:?}/files/extra
and add this one to set discord variable with the real folder:
discord='/var/lib/flatpak/app/com.discordapp.Discord/x86_64/stable/8a0fc700c701feacfc3e8cc630fbcbd7ff98c13045cfdf5cbc1aea6e7b307378/files/extra/'
The command "./betterdiscordctl install --flatpak" is now ok.
So, I think there is a problem with the row: flatpak_location=$("$flatpak_bin" info --show-location com.discordapp.Discord) and the option "info" of flatpak.
Thank You
The text was updated successfully, but these errors were encountered: