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

Cannot login on KDE system #163

Closed
peterNordin opened this issue May 13, 2023 · 10 comments
Closed

Cannot login on KDE system #163

peterNordin opened this issue May 13, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@peterNordin
Copy link

peterNordin commented May 13, 2023

This is the first time i try Supersonic so I do not know if it worked before.
I am running into the following issues

  • I downloaded the flatpak version from flathub.
  • When I start supersonic and enter my server details and login I only get a blank page, where I can do nothing. See screenshot.
    I can click the buttons in the top left corner (but nothing happens) and use the menu in the top right but not the buttons in center top.
  • In the menu (gear icon) the "Log Out" button does not work.
  • Every time I restart the app I need to re-enter my password.

I tried to connect to my local airsonic-advanced and gonic servers. I believe the connection is OK, because I can see in the airsonic-logs that I get a login error if I enter the wrong password. But no log text is shown when I enter the right one.

Screenshot_20230513_133516_scaled

Terminal log output:

flatpak run io.github.dweymouth.supersonic
Using config dir: /home/peter/.var/app/io.github.dweymouth.supersonic/config/supersonic
2023/05/13 13:38:50 Using cache dir: /home/peter/.var/app/io.github.dweymouth.supersonic/cache/supersonic
2023/05/13 13:38:50 systray error: failed to request name: org.freedesktop.DBus.Error.ServiceUnknown
2023/05/13 13:38:50 systray error: failed to register our icon with the notifier watcher (maybe no tray is running?): org.freedesktop.DBus.Error.ServiceUnknown
2023/05/13 13:38:50 Fyne error:  could not load SVG, falling back to static content:
2023/05/13 13:38:50   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/05/13 13:38:50   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
... lots of these errors ...
2023/05/13 13:38:50 Fyne error:  could not load SVG, falling back to static content:
2023/05/13 13:38:50   Cause: XML syntax error on line 3: invalid character entity & (no semicolon)
2023/05/13 13:38:50   At: /run/build/supersonic/vendor/fyne.io/fyne/v2/internal/svg/svg.go:27
2023/05/13 13:38:50 error getting password from keyring: The name org.freedesktop.secrets was not provided by any .service files
2023/05/13 13:39:51 error setting keyring credentials: The name org.freedesktop.secrets was not provided by any .service files

I am using Kubuntu 22.04.2

@dweymouth
Copy link
Owner

dweymouth commented May 13, 2023

Could you try running the 0.2.0 release build directly (download and extract the .tar.xz on the release page) and see if you get the same errors? It looks like DBus isn't found on your system which is required for password storage among other things. I wonder if it's a Flatpak sandboxing issue. If so maybe @anarcat can help. (Edit: sorry for the ping anarcat - not a Flatpak issue!)

@dweymouth
Copy link
Owner

What I should probably add though is a fallback to log in for only the duration the app is running if the key ring is not available. Right now it will not login if it is unable to store the credential.

@dweymouth
Copy link
Owner

dweymouth commented May 13, 2023

Alright it seems like it's more likely a KDE issue than Flatpak. It seems that KDE does not implement the dbus interface for the secret service: https://forum.authpass.app/t/what-is-the-provider-of-org-freedesktop-secrets-for-kde-plasma-5/162

I guess you are the first KDE user of Supersonic. I will need to add the fallback I mentioned above, and once that's in you would still need to log in every time you launch the app unfortunately (just the password, rest of the details would be saved), unless there is a different DBus path for the secret service on KDE I can use. Some KDE users also install gnome secrets manager to deal with these kinds of issues according to the link above.

@dweymouth dweymouth changed the title Flatpak version 0.2.0 just shows blank page on login Cannot login on KDE system May 13, 2023
@dweymouth dweymouth added the bug Something isn't working label May 13, 2023
@dweymouth
Copy link
Owner

Fixed on the main branch. If you can build from source it should (hopefully) work now, otherwise it will be fixed in the next Flatpak release. While you still will need to enter your password on every launch, it should actually log in now.

@peterNordin
Copy link
Author

Thanks, that was fast. I will try the official tar release first, and then try a build of the latest code and see if there is a difference

@dweymouth
Copy link
Owner

Cool! Let me know if it works for you

@anarcat
Copy link
Contributor

anarcat commented May 14, 2023

If so maybe @anarcat can help. (Edit: sorry for the ping anarcat - not a Flatpak issue!)

well in any case, i gave the beta a kick in flathub/io.github.dweymouth.supersonic#15

@peterNordin that should be ready in an hour or so, let me know if you can confirm the fix there. :)

update: the bot finished the build, and a test build is available in flathub/io.github.dweymouth.supersonic#15 (comment)

in theory, it should also show up in the flathub beta section (see those instructions) but i'm not sure what the delay is for that.

enjoy!

@peterNordin
Copy link
Author

@anarcat Yes the beta flatpak works, I can log in. It does forget the password but that was to be expected. I will look into installing the gnome secrets manager and see if that helps.

@anarcat
Copy link
Contributor

anarcat commented May 15, 2023

@anarcat Yes the beta flatpak works, I can log in. It does forget the password but that was to be expected. I will look into installing the gnome secrets manager and see if that helps.

does the flatpak version forget more than the non-flatpak one?

@dweymouth
Copy link
Owner

It's totally expected that either the Flatpak or the direct install will not store the password on KDE because it doesn't provide a DBus interface for storing secrets. The fix was so that it still allows you to login for the duration of the app running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants