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)

levone1 2020-12-29 14:52

Re: Flatpak on Sailfish OS
 
Quick general question from a borderline ignoramus, (forgive me if addressed already - there's 40 pages, and I didn't see the answer in op...) -

Seems like flatpak is sort of a framework that applications can be built in and run from, so mainly a dev thing, and not so much an end-user thing, but I just wondered if there are currently any applications, (or a repo or something), built and available to end-users at this time, that anyone who installs the support packages can use...

Thanks

rinigus 2020-12-29 16:33

Re: Flatpak on Sailfish OS
 
Flatpak is a way of distributing applications to end-users. General search online should bring up some decent explanation. As for apps/repos, see Github repository of the project with the docs in it.

carmenfdezb 2021-02-12 21:50

Re: Flatpak on Sailfish OS
 
Hi @rinigus! Will we have flatpak for sailfish 4?

rinigus 2021-02-13 08:21

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by carmenfdezb (Post 1570980)
Hi @rinigus! Will we have flatpak for sailfish 4?

I hope so. It would need OBS target updates first. those land after Jolla releases new version with some delay

feedme 2021-02-21 17:21

Re: Flatpak on Sailfish OS
 
Hello !
Trying to make tablet more usable , and was thinking of flatpack, the kernel version is lower than 3.5 so not possible.?
What about running full linux distros?

Main issue is webpages with video , even with new browser very problematic. and no way to get any firef. chrome etc, because of 4.4 android.
Old firefox would run , but could not find old enough

.

olf 2021-02-21 20:22

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by feedme (Post 1571033)
[...]
Main issue is webpages with video , even with new browser very problematic. and no way to get any firef. chrome etc, because of 4.4 android.
Old firefox would run , but could not find old enough.

Use IceCat for Android (preferably install it per F-Droid client app) or Fennec (the F-Droid client app will offer you the last version, which runs on your device).

feedme 2021-02-21 21:28

Re: Flatpak on Sailfish OS
 
Thanks for hints.
Icecat did not install, started but " not installed". Fennec installs , but does not start.
Funny thing is that same networkpages workin nicely with JollaC and std browser , are not ok with tablet.
So Full factory reset was the way I selected, we'll see the result.

feedme 2021-02-22 18:04

Re: Flatpak on Sailfish OS
 
Ok, now back on 4.0.1.48 , Icecat installs but not running , tries to open and dies. Fennec, also. I feel like there is an issue with x86 versions of the apk's since tablet is x86.

olf 2021-02-22 21:23

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by feedme (Post 1571037)
Thanks for hints.
Icecat did not install, started but " not installed". Fennec installs , but does not start.
Funny thing is that same networkpages workin nicely with JollaC and std browser , are not ok with tablet.
So Full factory reset was the way I selected, we'll see the result.

Quote:

Originally Posted by feedme (Post 1571044)
Ok, now back on 4.0.1.48 , Icecat installs but not running , tries to open and dies. Fennec, also. I feel like there is an issue with x86 versions of the apk's since tablet is x86.

Yes, that just came to my mind, when looking for "on which device is that, actually?": "Tablet" = x86!
Well, IceCatMobile (Firefox ESR for Android) and Fennec (Firefox for Android) do not seem to be available, built and packaged for x86, at F-Droid.
Sorry for my misleading comment, which addresses "recent browsers for old Android versions" on armv7a. Note, that very recent Fennec (and Firefox for Android) releases (> 68.12.0) require Android 5, while IceCatMobile will presumably be updated to newer "Firefox ESR for Android" releases, when Mozilla releases them.

feedme 2021-02-24 17:45

Re: Flatpak on Sailfish OS
 
The actual hard question and issue is the following:
I have JollaCx2( intex aquafish config as JC), XperiaX , Xperia-XA2 and Tablet running sailfish 4.
On all others than tablet , even JC, the new stock browser is usable. The question is what is missing from the OS itself on tablet because the Browser engine is the same.?

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

rinigus 2021-03-31 07:47

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by mibry (Post 1571429)
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

It would require someone with Pro 1 to look into it. I don't know if it is using some special handling of the keyboard or it goes via regular Maliit modes - never looked into it. But I can check my mailbox for Pro1 once in a while...

mibry 2021-03-31 08:01

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1571433)
It would require someone with Pro 1 to look into it. I don't know if it is using some special handling of the keyboard or it goes via regular Maliit modes - never looked into it. But I can check my mailbox for Pro1 once in a while...

You have a magic mailbox too.....:D

Ok as I am the one that asked I will have a look. I am not a developer so I try to understand how it could be done.

Thanks for the great work as well.

Regards

Mibry

rinigus 2021-03-31 08:57

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by mibry (Post 1571434)
Ok as I am the one that asked I will have a look. I am not a developer so I try to understand how it could be done.

I would suggest to ask around on whether HW keyboard is handled via Maliit. If it is fully through Maliit, maybe I made something incomplete while sending data between keyboard and application. Corresponding code is in Maliit plugin under https://github.com/sailfishos-flatpa.../input-context and https://github.com/sailfishos-flatpak/flatpak-runner

These days Flatpak support is waiting for AARCH64 ports. Newest runtimes are not supporting arm32 making its use bit difficult. Fortunately, aarch64 ports for SFOS are on the way and I would expect that Pro1 will be also transferred to that arch (speculation on my side). For Tama devices, that's at least in my plan

Mir57 2021-05-26 20:22

Re: Flatpak on Sailfish OS
 
Hi, I am trying to use Angelfish on Gemini PDA. Using latest version of Flatpak environment. Everything works, except for the input.

Sailfish OS version: 4.1.0.24

Do you know, what could be the cause?

Thx for any answer and your work, mir57

rinigus 2021-05-27 18:39

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Mir57 (Post 1571885)
Hi, I am trying to use Angelfish on Gemini PDA. Using latest version of Flatpak environment. Everything works, except for the input.

Sailfish OS version: 4.1.0.24

Do you know, what could be the cause?

Thx for any answer and your work, mir57

I wonder whether you have Maliit Flatpak extension installed? But I have a feeling it was not working on this device for some reason. Why, I don't know or forgot when someone explained it.

Mir57 2021-05-27 23:58

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1571896)
I wonder whether you have Maliit Flatpak extension installed? But I have a feeling it was not working on this device for some reason. Why, I don't know or forgot when someone explained it.

I do have...

mibry 2021-05-28 05:33

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1571896)
I wonder whether you have Maliit Flatpak extension installed? But I have a feeling it was not working on this device for some reason. Why, I don't know or forgot when someone explained it.

This link might help

https://github.com/sailfishos-flatpa...nner/issues/23

carmenfdezb 2021-07-02 08:36

Re: Flatpak on Sailfish OS
 
Hi! Is there any chance to make flatpak work on aarch64 devices? I know there's an issue about this: https://github.com/sailfishos-flatpak/main/issues/21, but it seems that this issue can't be resolved

rinigus 2021-07-02 09:02

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by carmenfdezb (Post 1572211)
Hi! Is there any chance to make flatpak work on aarch64 devices? I know there's an issue about this: https://github.com/sailfishos-flatpak/main/issues/21, but it seems that this issue can't be resolved

I have worked for some time trying to resolve it, but couldn't. Maybe someone else has to look into the issue.

b100dian 2021-08-09 18:46

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1572213)
I have worked for some time trying to resolve it, but couldn't. Maybe someone else has to look into the issue.

Is the issue the fact that flat apps work without acceleration or that apps don't work at all?

(Also: I wasn't able to use chrome://gpu in angelfish)

rinigus 2021-08-10 12:24

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by b100dian (Post 1572386)
Is the issue the fact that flat apps work without acceleration or that apps don't work at all?

(Also: I wasn't able to use chrome://gpu in angelfish)

It could lead to wrong rendering. For example, on XZ2, Angelfish bottom bar is not rendered when it should be.

mankir 2021-09-28 10:25

Re: Flatpak on Sailfish OS
 
flatpak-runner is not working (anymore), get symbol lookup error... any ideas? xa2 on latest

rinigus 2021-09-28 15:46

Re: Flatpak on Sailfish OS
 
It fails to compile as can be seen here:https://build.sailfishos.org/package...rmv7hl/armv8el

If anyone interested to fix it - PRs are welcome.

mankir 2021-09-28 17:05

Re: Flatpak on Sailfish OS
 
should be compositor.defaultOutput.window in line 145 main, i guess...

monkeyisland 2022-09-10 15:05

Re: Flatpak on Sailfish OS
 
Hi there i would to install Flatpak on my old Spny Xperia Z3 Compact Tablet under SailfishOS 3.4.0.24.

I added the old repo :

PHP Code:

ringius-flatpak      ... https://repo.merproject.org/obs/home:/rinigus:/flatpak:/3.2.1.20/sailfish_3.2.1.20_armv7hl/ 

because with the latest got errors i think because my Tablet is on old 3.4.0.24.

So i stuck no in activate the flathub repos with this error :

PHP Code:

nemo@XperiaZ3TabletCompact ~]$ flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
errorCan't load uri https://flathub.org/repo/flathub.flatpakrepo: Peer failed to perform TLS handshake 

Kde adding was no problem.

PHP Code:

nemo@XperiaZ3TabletCompact ~$ flatpak remotes
Name    Options
kdeapps user
[nemo@XperiaZ3TabletCompact ~]$ 

I did also upgrade the certificates from here

https://forum.sailfishos.org/t/guide...ailfishos/8910

No solution...

So installing of angelfish is not possible here the errors
PHP Code:

usagegpg-connect-agent [options] (-for help)errorThe application org.kde.mobile.angelfish/arm/master requires the runtime org.kde.Platform/arm/5.14 which was not found 


How i can i fix this strange TLS Handshake error.


All times are GMT. The time now is 07:32.

vBulletin® Version 3.8.8