![]() |
Re: Flatpak on Sailfish OS
4 Attachment(s)
It worked for me on the Pro¹ with some warnings that I guess are minor since Angelfish runs. All steps after the "reboot" step in the Github instructions were run immediately after reboot, the screen didn't turn off once. I'm looking forward to being able to install other apps in the future!
|
Re: Flatpak on Sailfish OS
Quote:
Also, thanks to the intelligent timeout/suspension management in Sailfish OS (mce takes care of that?) that the screen stays on longer during the next cycle if woken up during the dimming phase. |
Re: Flatpak on Sailfish OS
Turned out that the issue with Pure Maps was not OpenGL, but internal Mapbox code used to download tiles. As I was using hybrid version for Mapbox GL and not pure Qt one (due to a bug in old Qt used by SFOS), this somehow triggered an issue. So, GL part is working fine (well, maybe with some other issues).
|
Re: Flatpak on Sailfish OS
should be flatpak-maliit-plugin-qt instead
|
Re: Flatpak on Sailfish OS
New releases of Flatpak Runner and Maliit keyboard plugin are out. It is now possible to ask Flatpak Runner to take into account whether the keyboard is shown and, if it is, reduce the window used by application accordingly. As there is a temporary side-effect while Wayland application window is changed (old content scaled to the new size and then redrawn), I made this feature opt-in. Usually its not needed, but sometimes is handy. Examples when its needed: setting homepage and search options in Angelfish.
The packages are available at OBS. Meanwhile, I am mainly working on Angelfish. Its progressing nicely and already is the main SFOS browser for me. Some changes are not merged yet (auto-hiding of navigation bar), some changes have to be written. But we are making progress with KDE developers. Ironically, TMO is the worst site right now. As WebEngine doesn't handle HIDPI that well, I have to scale window up and TMO just doesn't fit on portrait when the minimal font is imposed. |
Re: Flatpak on Sailfish OS
Is it possible to run flatpak on a Nexus 5? With the latest Sailfish but based on an "old" CM 12.
|
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Trying to run Angelfish gives me the following output. It opens an empty window.
Code:
,--- |
Re: Flatpak on Sailfish OS
Few quick checks:
- have you rebooted after installing flatpak? If you didn't, please do so - have you installed Angelfish using --user? - what does `flatpak list` return in terminal? - Try to enter Flatpak environment by running: flatpak run --command=sh org.kde.mobile.angelfish The last command should give you a prompt inside Flatpak. If something is wrong, it will fail. |
Re: Flatpak on Sailfish OS
Quote:
Code:
[nemo@Sailfish ~]$ flatpak run --command=sh org.kde.mobile.angelfishbwrap: Creating new namespace failed: Invalidargumenterror: ldconfig failed, exit status 256 Code:
[nemo@Sailfish ~]$ flatpak list |
Re: Flatpak on Sailfish OS
Critical error is
Creating new namespace failed As for ldconfig, its running inside flatpak environment, different from the system one. For namespaces, kernel needs to have support for it. Check out what you get from # zcat /proc/config.gz | grep _NS I have the following: CONFIG_UTS_NS=y CONFIG_IPC_NS=y CONFIG_USER_NS=y CONFIG_PID_NS=y CONFIG_NET_NS=y CONFIG_NF_CONNTRACK_NETBIOS_NS=y I am sure that USER_NS is needed, but that should be there for older kernels as well: https://cateee.net/lkddb/web-lkddb/USER_NS.html So, I suspect you need to recompile your kernel. |
Re: Flatpak on Sailfish OS
You're right:
Code:
# CONFIG_UTS_NS is not set |
Re: Flatpak on Sailfish OS
Understood. At least we know why. Now, I suggest you to ask the maintainer of the port to recompile the kernel. As the options are there, its relatively easy.
|
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Quote:
I think will switch them on for my S2 and try Flatpak there. :D |
Re: Flatpak on Sailfish OS
New Flatpak Runner is out: 0.5.2
I was looking into how to enable hardware acceleration for Qt WebEngine and found the way. Turned out that by dropping SFOS-specific QMLSCENE_DEVICE environment variable from Flatpak app environment resulted in Chromium using hardware acceleration. That variable is used in Qt WebEngine constructor and had such implications. Now, with Chromium having hardware acceleration, many bug workarounds for Android phones hardware are not engaged as they are checked for Android specifically (as in https://chromium.googlesource.com/ch..._list.json#247). For now, I have disabled GPU HW composing which seems to work for me. That's done in one env variable set by default. Let me know if you get into trouble with the browser. Browser, after enabling HW acceleration, plays youtube videos as well. There has been work done on Angelfish and the next release of it should add hiding of navigation bar, internal changes in tabs handling, bump to Qt 5.14, to name the changes that are already merged. |
Re: Flatpak on Sailfish OS
Quote:
But now I have Flatpak support in the kernel on my S2 as well. :D Once I have a little time I'll try to install Angelfish. |
Re: Flatpak on Sailfish OS
Great to hear! There has been great progress in the last few days and I will probably report a bit later when few things get finalized. I am testing new settings for WebEngine that work quite well on XZ2. In addition, videos that were failing in the browser are playing now and without choppiness. Few PRs still have to be merged and then I hope new releases will be out.
Will be very interesting to hear when its all merged how it all runs on S2 and other hardware... In terms of S2, would be good to know if the current released Angelfish actually works as well. So we are sure that we don't miss anything in the setup |
Re: Flatpak on Sailfish OS
Quote:
Code:
[nemo@GalaxyS2 ~]$ flatpak-runner org.kde.mobile.angelfish |
Re: Flatpak on Sailfish OS
That could be considerable roadblock for the older kernels out there. Looks like you fail at
Code:
/* Never gain any more privs during exec */ From looking around, it seems that there are backports available, though. See https://wiki.mozilla.org/Security/Sandbox/Seccomp and https://bugzilla.mozilla.org/show_bug.cgi?id=790923 referenced there. Cannot guarantee that it will work, though. Note that there could be more backports available, I just took one of the first links. |
Re: Flatpak on Sailfish OS
Quote:
Now, I understand this is limitation of the old kernel and there might be a workaround. (This is what I love in Linux, there always is a or more workaround. :)) I have checked the links you provided for the backport and found this in the second one: backport NO_NEW_PRIVS I apply this into the S2's kernel and will re-try. (By the way, with adding this Flatpak support into the kernel, something else also changed because the sneak-peek function started to work there. :D Thanks for that.) |
Re: Flatpak on Sailfish OS
On Nexus 5, despite the added flags in the kernel, Angelfish does not start. Here is the output:
Code:
nemo@Sailfish ~]$ flatpak-runner |
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
I run it from fingerterm on device with your new kernel! The Angelfish app cover shows up with its icon but the loading circle spins forever.
|
Re: Flatpak on Sailfish OS
@claustn, how did you install flatpak support? did you install by zypper after setting up repository? or downloaded and installed manually?
It looks like xdg-dbus-proxy from flatpak repo is not installed (see missing command error: execvp xdg-dbus-proxy: No such file or directory) But in addition to that, we probably have an issue with 3.4 kernel on the top of that, as referred to earlier. |
Re: Flatpak on Sailfish OS
Quote:
(I will try to find out what have done when I get home. I hope the console is still active on my PC and I can look back what I was doing. :) + I will try to install this on my Nexus 5 too.) And just after then I got the other error about the 'PR_SET_NO_NEW_PRIVS'. |
Re: Flatpak on Sailfish OS
Quote:
I have tried to install it on my Nexus 5 and got exactly the same error and the rotating circle as an app cover. To compare the two message on the devices: On Nexus 5: Code:
[W] unknown:52 - file:///usr/share/flatpak-runner/qml/main.qml:52:26: Unable to assign [undefined] to bool Code:
[W] unknown:52 - file:///usr/share/flatpak-runner/qml/main.qml:52:26: Unable to assign [undefined] to bool |
Re: Flatpak on Sailfish OS
It looks like the Flatpak won't work on the S2 (or some other fixes also needs to be backported).
I have backported the NO_NEW_PRIVS from here but when I re-run the angelfish, I got this: Code:
[nemo@GalaxyS2 ~]$ flatpak-runner org.kde.mobile.angelfish Do I need the CONFIG_SECCOMP in the kernel? (Or something else?) |
Re: Flatpak on Sailfish OS
|
Re: Flatpak on Sailfish OS
"FATAL: kernel too old" is probably an issue for S2. Do you know where the message is coming from, glibc? glibc is provided in Flatpak by its own platform, that's gonna be hard to patch.
Regarding xdg error - would you mind to check my questions from http://talk.maemo.org/showpost.php?p...4&postcount=66 and reply to them. |
Re: Flatpak on Sailfish OS
Regarding general progress with Flatpak and Angelfish.
KDE platform added new type of extension - input plugins - which allowed me to distribute Maliit plugin as an extension in Flatpak. This depricates a hack used to package Flatpak extension in RPM and users will have to install Maliit using org.kde.PlatformInputContexts.MaliitSailfishOS : Code:
flatpak install --user \ Right now 5.12 still has to be built, there were some Flathub internal issues with that runtime. As soon as its done, I'll let you know. Note that after installing extension, you should remove flatpak-maliit-plugin-qt package in SFOS. Next version of Flatpak Runner will not use it. Next, I managed to improve HW acceleration in WebEngine. I found the set of environment variables that, while not fully using HW acceleration, seem to make Angelfish reasonably fast. Flatpak packaging scripts have been developed further to improve playback of videos. Right now, it looks like all the sites I have visited are playing as they should. My issues with the acceleration are reported as a bug in https://bugreports.qt.io/browse/QTBUG-82423 and there is a hope it will be resolved at some time. All this will become available with the next release of Flatpak Runner (waiting for KDE platform rebuild) and Angelfish (maybe will have to ask for it the lead developer). Assuming that the next SFOS will have updated libhybris, it all comes right on time. |
Re: Flatpak on Sailfish OS
being a flatpak noob i'm asking for commands to update stuff :))
|
Re: Flatpak on Sailfish OS
Quote:
Code:
sleep 48h |
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Quote:
Regarding that post, I did respond on that already. After reading your post about the general progress of Fltapak where you mentioned you might need to contact the main developer of Flatpak. Is it worth to as them to try to apply the glibc patch that elros provided? If they can apply that, this can make Flatpak available for the wider audience like my S2 with that old kernel. |
Re: Flatpak on Sailfish OS
Quote:
What I spotted on my Nexus 5 was the version of libhybris. It is 0.0.5.33+master.... while in the install instruction you said Flatpak is required libhybris >= 0.0.5.34 How can I get the newer libhybris? I am happy to build a new sailfish image if I know what to change in there to get the newer libhybris. |
Re: Flatpak on Sailfish OS
Quote:
|
Re: Flatpak on Sailfish OS
Quote:
flatpak run --command=sh org.kde.mobile.angelfish then in the opened shell, try to grep files in /usr As for patch, I don't know who to ask. I am mainly in contact with some KDE developers. That type of question should probably belong to freedesktop-sdk IRC/Matrix channel or their issue tracker in gitlab. But try to see first which file has the error message and proceed from there. |
All times are GMT. The time now is 07:29. |
vBulletin® Version 3.8.8