Bug 33262

Summary: I have installed skype with flatpak but I can't run it
Product: Mageia Reporter: peter lawford <petlaw726>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: fri, lewyssmith
Version: 9   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description peter lawford 2024-06-02 19:47:31 CEST
Description of problem:
$ flatpak install skype
Looking for matches…
Found ref ‘app/com.skype.Client/x86_64/stable’ in remote ‘flathub’ (system).
Use this ref? [Y/n]: y

com.skype.Client permissions:
    ipc                    network                       pulseaudio        x11        devices       file access [1]
    dbus access [2]        system dbus access [3]

    [1] xdg-documents:ro, xdg-download, xdg-music:ro, xdg-pictures:ro, xdg-videos:ro
    [2] com.canonical.AppMenu.Registrar, org.freedesktop.Notifications, org.freedesktop.ScreenSaver, org.freedesktop.secrets, org.gnome.GConf,
        org.gtk.Notifications, org.kde.StatusNotifierWatcher
    [3] org.bluez, org.freedesktop.NetworkManager, org.freedesktop.login1


        ID                       Branch         Op         Remote          Download
 1. [✓] com.skype.Client         stable         i          flathub         188,7 Mo / 189,1 Mo

Installation complete.

but: 
$ flatpak run com.skype.Client

(flatpak run:221449): GLib-GIO-WARNING **: 19:39:45.607: /usr/share/applications/kde-mimeapps.list contains a [Added Associations] group, but it is not permitted here.  Only the non-desktop-specific mimeapps.list file may add or remove associations.

and nothing happens


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 peter lawford 2024-06-02 20:21:44 CEST
but when I run the command:
$ cd /var/lib/flatpak/app/com.skype.Client/x86_64/stable/07fb0db8db4bba9941bb05789a639b9f454213504e78fadd3f20a05b81fc63eb/files/extra/skypeforlinux && ./skypeforlinux

it works, but it doesn't memorize my usrid and passwd
Comment 2 peter lawford 2024-06-02 20:26:10 CEST
truely speaking: here is the return of the previous command

$ cd /var/lib/flatpak/app/com.skype.Client/x86_64/stable/07fb0db8db4bba9941bb05789a639b9f454213504e78fadd3f20a05b81fc63eb/files/extra/skypeforlinux/ && ./skypeforlinux
libva error: vaGetDriverNames() failed with unknown libva error
Error occurred in handler for 'keychain:get-password': Error: No stored credentials fetched from keytar.
    at /var/lib/flatpak/app/com.skype.Client/x86_64/stable/07fb0db8db4bba9941bb05789a639b9f454213504e78fadd3f20a05b81fc63eb/files/extra/skypeforlinux/resources/app.asar/main.js:2:533242
    at async node:electron/js2c/browser_init:193:551
Error occurred in handler for 'keychain:get-password': Error: No stored credentials fetched from keytar.
    at /var/lib/flatpak/app/com.skype.Client/x86_64/stable/07fb0db8db4bba9941bb05789a639b9f454213504e78fadd3f20a05b81fc63eb/files/extra/skypeforlinux/resources/app.asar/main.js:2:533242
    at async node:electron/js2c/browser_init:193:551
Error occurred in handler for 'keychain:get-password': Error: No stored credentials fetched from keytar.
    at /var/lib/flatpak/app/com.skype.Client/x86_64/stable/07fb0db8db4bba9941bb05789a639b9f454213504e78fadd3f20a05b81fc63eb/files/extra/skypeforlinux/resources/app.asar/main.js:2:533242
    at async node:electron/js2c/browser_init:193:551
Comment 3 katnatek 2024-06-03 05:04:09 CEST
This sound like this bug https://github.com/flatpak/flatpak/issues/5830
Comment 4 Morgan Leijström 2024-06-03 11:03:30 CEST
This bug can not be in Mageia installer.
It is in flatpak (installed by Mageia rpm package) or Flatpak apps.

---

I have never used Skype, but not installed it as flatpak.
Launching it, I get a dialogue about logging in or registering.
I enter nothing, just close the dialogue.
Skype keep running in system tray.

When you launched like Comment 0, dont you get a login/register dialogue, and no icon in system tray?

CC: (none) => fri
Component: Installer => RPM Packages

Comment 5 Morgan Leijström 2024-06-03 11:56:33 CEST
I remembered I have a Microsoft Live ID.
I logged with that and when logging out it asked if I wanted it to remember my login.  It did not.  So I confirm the problem.
Comment 6 Lewis Smith 2024-06-03 21:27:24 CEST
(In reply to katnatek from comment #3)
> This sound like this bug https://github.com/flatpak/flatpak/issues/5830
Relates to the end of comment 0:
 $ flatpak run com.skype.Client

(In reply to peter lawford from comment #1)
> but when I run the command:
> $ cd
> /var/lib/flatpak/app/com.skype.Client/x86_64/stable/
> 07fb0db8db4bba9941bb05789a639b9f454213504e78fadd3f20a05b81fc63eb/files/extra/
> skypeforlinux && ./skypeforlinux
> it works, but it doesn't memorize my usrid and passwd
This is good news - it works! But does our Flatpak package have a problem?

(In reply to Morgan Leijström from comment #5)
> I remembered I have a Microsoft Live ID.
> I logged with that and when logging out it asked if I wanted it to remember
> my login.  It did not.  So I confirm the problem.
i.e. not remembering  these details. Thanks for that test, Morgan. It hardly matters, but looks very 'upstream'.

CC: (none) => lewyssmith

Comment 7 peter lawford 2024-06-05 16:42:25 CEST
it works now: when I type the command:
$ flatpak run com.skype.Client
the return is the same as in comment 0, say:

(flatpak run:866548): GLib-GIO-WARNING **: 16:18:52.510: /usr/share/applications/kde-mimeapps.list contains a [Added Associations] group, but it is not permitted here.  Only the non-desktop-specific mimeapps.list file may add or remove associations.
 but, what I didn't see before, a little white applet appears on the bottom of the screen with two options: "open skype" and "quit skype"
when clicking on the 1st options, sype opens but I have to enter my usrid and passwd; the white applet becomes green and a 3rd option appears: "sign out"
If I click on "sign out", the skype window gets closed, and, at the next reconnexion, I've to enter again usrid and passwd; conversely, if I click on "quit skype", at the next connexion no need to enter usrid and passwd.
the bug can be closed
Comment 8 Morgan Leijström 2024-06-05 19:01:30 CEST
Thank you for checking again.

Storing credentials seem to be fully upstream, not ours.

Resolution: (none) => INVALID
Status: NEW => RESOLVED