maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Flatpak on Sailfish OS (https://talk.maemo.org/showthread.php?t=100909)

rinigus 2021-03-12 18:20

Re: Flatpak on Sailfish OS
 
Flatpak has been updated and should work now on SFOS 4.0.1.48.

carmenfdezb 2021-03-13 14:01

Re: Flatpak on Sailfish OS
 
Thank you so much, @rinigus. I've updated to SailfishOS 4 today and flatpak works fine, but I have two icons for every flatpak app. Does anyone how can I solve this issue?

rinigus 2021-03-13 14:05

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by carmenfdezb (Post 1571192)
Thank you so much, @rinigus. I've updated to SailfishOS 4 today and flatpak works fine, but I have two icons for every flatpak app. Does anyone how can I solve this issue?

me too. so far I moved the ones which were without icons just into some launcher folder that I usually don't visit. problem "solved" :)

tbh, I have no idea when I can look into it. So, investigation of the issue and finding solution for it is very much welcome.

rinigus 2021-03-13 18:48

Re: Flatpak on Sailfish OS
 
@carmenfdezb, actually, looks like I found it by accident. new flatpak has environment generators and those confused SFOS. For example, while starting ssh session, I was getting

NOTICE: Env value ignored: XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

That also resulted in inability to scp to device. All turned out to be caused by env generators. As soon as those were removed from device, icons disappeared as well.

New flatpak has been just compiled. Update to that, reboot device, and it should all be fine.

carmenfdezb 2021-03-13 22:01

Re: Flatpak on Sailfish OS
 
Thanks again! After updating flatpak and rebooting my phone, icons disappeared.

pacman 2021-03-16 12:12

Re: Flatpak on Sailfish OS
 
I have just tried installing flatpak (following the instructions at https://github.com/sailfishos-flatpak/main) and then angelfish, but I find that the device reboots after installing angelfish. I thought at first that I had the same problem as @edp17 at #374 but it is in fact the opposite one: angelfish is installed, and I can start it with
Code:

flatpak-runner org.kde.mobile.angelfish
but there is no Angelfish icon in the app grid or Angelfish entry in Flatpak Runner. I believe that it is the installation of Angelfish that causes this, because I then tried installing the runtime first, giving me this starting point:

Code:

[nemo@Sailfish ~]$ flatpak list --user
Name                                Application ID                                        Version        Branch
default                              org.freedesktop.Platform.GL.default                                    19.08
KDE Application Platform            org.kde.Platform                                                      5.14
Maliit plugin for SailfishOS        org.kde.PlatformInputContexts.MaliitSailfishOS                        5.14

and then did:

Code:

[nemo@Sailfish ~]$ flatpak install --user -vv org.kde.mobile.angelfish
F: Opening user flatpak installation at path /home/nemo/.local/share/flatpak
Looking for matches…
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using libsoup
F: Received 2737 bytes
F: Loading https://dl.flathub.org/repo/summarie...de4f92.idx.sig using libsoup
F: Received 592 bytes
Usage: gpg-connect-agent [options] (-h for help)F: Fetching indexed summary delta 4df32cc2335bd40968012f02d97fd9754fc995c33dfc1b4f9601ec3bf0679c70-a7f6565a4a6b7aac4f73d0bf69d61363d0bb3010dae3d15a489fede424a3e6f3.delta for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summarie...24a3e6f3.delta using libsoup
F: Received 840 bytes
F: Fetching summary index file for remote ‘kdeapps’
F: Loading http://distribute.kde.org/flatpak-ap...ng/summary.idx using libsoup
F: Received 910 bytes
F: Loaded indexed summary file 8c463a202847609190e12c37953af82169e3a0287cbb8c5b640834343900540f from cache for remote ‘kdeapps’
Found similar ref(s) for ‘org.kde.mobile.angelfish’ in remote ‘kdeapps’ (user).
Use this remote? [Y/n]: y
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Fetching summary index file for remote ‘kdeapps’
F: Loading http://distribute.kde.org/flatpak-ap...ng/summary.idx using libsoup
F: Received 910 bytes
F: Loaded indexed summary file 8c463a202847609190e12c37953af82169e3a0287cbb8c5b640834343900540f from cache for remote ‘kdeapps’
F: Transaction: install kdeapps:app/org.kde.mobile.angelfish/arm/master[*]
F: Looking for remote metadata updates for kdeapps
F: marking op install:app/org.kde.mobile.angelfish/arm/master resolved to 015005bcb6d2eb96ec548e54e12d38c5f263921b87fbc1672150c930503a9d4a
F: Updating dependent runtime org.kde.Platform/arm/5.14
F: Transaction: update flathub:runtime/org.kde.Platform/arm/5.14[$old]
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using libsoup
F: Received 2737 bytes
F: Loaded indexed summary file a7f6565a4a6b7aac4f73d0bf69d61363d0bb3010dae3d15a489fede424a3e6f3 from cache for remote ‘flathub’
F: marking op update:runtime/org.kde.Platform/arm/5.14 resolved to fdc141efef6de9ed5020dc22b26f566015f617333dfbc706146d08c3488ea563
F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/arm/19.08[*]

If I do
Code:

flatpak remove --user org.kde.mobile.angelfish
this also causes a reboot.

Any suggestions gratefully received. I am running SFOS 4.0.1.48 on an Xperia X F5122

EDIT: I tried the same with the Telegram app, and found the same: reboot when installing, no icon and no entry in Flatpak Runner. Also a reboot when uninstalling Telegram, but when I then uninstalled the package org.freedesktop.Platform.ffmpeg-full that Telegram pulled in there was no problem. This must be something to do with the wrapping-up of the install/deinstall process of an app, but I don't know enough about flatpak to say more than this. I'll need to find the time to acquire some flatpak-fu I guess.... ;)

rinigus 2021-03-16 16:53

Re: Flatpak on Sailfish OS
 
Can't reproduce it over here, sorry. Just installed flatpak on a clean 4.0.1 SFOS / XZ2c and it worked as it should.

I presume that you have run flatpak-runner from grid or cmd line without any options. It is needed after installation of the apps to make them appear in the grid. Also it is needed to generate extension.

Maybe, just in case, run flatpak-runner and choose from pulley menu Extension/Update extension

monkeyisland 2021-03-16 17:02

Re: Flatpak on Sailfish OS
 
@pacman

Ringius posted at here
https://talk.maemo.org/showpost.php?...&postcount=213

Hi give the answer here:
I think i found here, i got the same problem on my compact for a while :
https://talk.maemo.org/showpost.php?...&postcount=216

pacman 2021-03-16 19:29

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by monkeyisland (Post 1571221)
@pacman

Ringius posted at here
https://talk.maemo.org/showpost.php?...&postcount=213

Hi give the answer here:
I think i found here, i got the same problem on my compact for a while :
https://talk.maemo.org/showpost.php?...&postcount=216

OK - I didn't try this because I assumed that it was a different problem, but clearing the suid bit before installing and setting it again afterwards solved the problem. I should have tried this before posting.

Thanks, and sorry for the noise.
P.

mibry 2021-03-30 20:35

Re: Flatpak on Sailfish OS
 
I have a pro1 and unable to use the hardware keyboard with flatpak. Is it possible to to enable hardware keyboard functionally?

Thanks in advance

Regards

Mibry


All times are GMT. The time now is 02:56.

vBulletin® Version 3.8.8