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)

Nekron 2020-04-29 07:27

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1567137)
Flatpak 1.6.3 is out, not tested much so far. Those who wish to test can update, others should wait and see if there will be any complaints.

Thanks for the fast update! I installed it yesterday on X and XA2 but found no issues on both devices after the upgrade. I would say that it's safe to install the new flatpak base.

Pim 2020-04-30 17:27

Re: Flatpak on Sailfish OS
 
What do you think of the comment on the Sailfish blog:

"at we do not see FlatPak as the selected Sailfish OS application bundling framework, mainly due to its high resource usage."

https://blog.jolla.com/sailfish-os-r...now-available/

rinigus 2020-04-30 17:49

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Pim (Post 1567210)
What do you think of the comment on the Sailfish blog:

"at we do not see FlatPak as the selected Sailfish OS application bundling framework, mainly due to its high resource usage."

https://blog.jolla.com/sailfish-os-r...now-available/

Its absolutely correct. I think it is in the context of making Flatpak apps running Silica/Sailfish stack. As developed here, though, it brings functionality that is not available to SFOS, such as latest Qt and interoperability with other mobile Linux distros out there. A bit kind of Android emulation on SFOS, except you work with apps that are developed closer in terms of API (assuming that its Qt/QML) to what we have on SFOS.

vaskas 2020-05-04 04:04

Re: Flatpak on Sailfish OS
 
Hi guys, sorry for the offtopic. I'm curious in what is involved in having a maliit keyboard pop-up plugin responding to Xwayland (e.g. in https://github.com/elros34/sailfish_ubu_chroot) similar to how it's used in flatpak-runner. And what are your views on adopting Xwayland for the applications that can't be used through the current Flatpak setup (e.g. Firefox)?

rinigus 2020-05-04 06:54

Re: Flatpak on Sailfish OS
 
Re Maliit: Maliit plugin has been adjusted to respond to the info provided by Flatpak Runner (screen orientation and such). For that to work, you have to incorporate Maliit plugin into chroot and adjust Xwindows server to communicate with it.

Maliit plugin has been adjusted as described in my commits at https://github.com/sailfishos-flatpa...ommits/flatpak .

Flatpak Runner code is in https://github.com/sailfishos-flatpa...ree/master/src, mainly dbuscontainerstate.{cpp,hpp} and https://github.com/sailfishos-flatpa...runner.cpp#L67


Re Firefox: I don't know how well Maliit supports Gtk apps. As we don't have them running, never looked into it. So, that will have to be investigated and maybe fixed.

As always with such projects, someone has to do it. To be clear, I am not planning to work on it as I have other projects as a priority. So, you either have to do it yourself or find someone to do it.

rinigus 2020-05-06 20:08

Re: Flatpak on Sailfish OS
 
I have recompiled Flatpak using SFOS 3.3.0.x provided libseccomp and json-glib. This build is available through usual Flatpak distribution channel at OBS.

For devices on SFOS 3.2.1.20 (Sony Xperia Tama and maybe some others), until the update is ready, use https://build.merproject.org/project...atpak:3.2.1.20 . The latter project will disappear once we all update to SFOS 3.3.0.16 as it is not needed in future.

I expect that on SFOS 3.3.0.x, install should be clean and there are no conflicts with Jolla's json-glib. I hope it will automatically uninstall json-glib from my repo when you update Flatpak, but haven't tested it.

Nekron 2020-05-07 07:38

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1567349)
I expect that on SFOS 3.3.0.x, install should be clean and there are no conflicts with Jolla's json-glib. I hope it will automatically uninstall json-glib from my repo when you update Flatpak, but haven't tested it.

This looks good :)

Code:

The following packages have to be installed:
 flatpak-1.6.3.0-1.23.4.jolla.armv7hl  Application deployment framework for desktop apps
 flatpak-runner-0.8.5-1.35.2.jolla.armv7hl      Flatpak runner
 flatpak-session-helper-1.6.3.0-1.23.4.jolla.armv7hl    User D-Bus service used by flatpak and others
 libappstream-glib-0.7.15.1-1.14.1.jolla.armv7hl        Library for AppStream metadata
 ostree-libs-2019.6-1.14.2.jolla.armv7hl        Development headers for ostree
 xdg-dbus-proxy-0.1.2-1.5.2.jolla.armv7hl      Filtering proxy for D-Bus connections
 xdg-desktop-portal-1.4.2-1.10.8.jolla.armv7hl  Portal frontend service to flatpak
Proceed with changes? [N/y] y


Updating packages
Downloading packages
Installing packages
Finished
 [nemo@Sailfish ~]$ devel-su pkcon search libjson-glib
Password:
Searching by details
Querying
Finished
 Installed      libjson-glib-1.4.4-1.2.1.jolla.armv7hl (installed)              Library for JavaScript Object Notation format
[nemo@Sailfish ~]$


Nekron 2020-05-07 07:45

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Nekron (Post 1567356)
This looks good :)

Code:

The following packages have to be installed:
 flatpak-1.6.3.0-1.23.4.jolla.armv7hl  Application deployment framework for desktop apps
 flatpak-runner-0.8.5-1.35.2.jolla.armv7hl      Flatpak runner
 flatpak-session-helper-1.6.3.0-1.23.4.jolla.armv7hl    User D-Bus service used by flatpak and others
 libappstream-glib-0.7.15.1-1.14.1.jolla.armv7hl        Library for AppStream metadata
 ostree-libs-2019.6-1.14.2.jolla.armv7hl        Development headers for ostree
 xdg-dbus-proxy-0.1.2-1.5.2.jolla.armv7hl      Filtering proxy for D-Bus connections
 xdg-desktop-portal-1.4.2-1.10.8.jolla.armv7hl  Portal frontend service to flatpak
Proceed with changes? [N/y] y


Updating packages
Downloading packages
Installing packages
Finished
 [nemo@Sailfish ~]$ devel-su pkcon search libjson-glib
Password:
Searching by details
Querying
Finished
 Installed      libjson-glib-1.4.4-1.2.1.jolla.armv7hl (installed)              Library for JavaScript Object Notation format
[nemo@Sailfish ~]$


Sorry! I just double checked it and there seems to be a difference even if pkcon reports installation of the Jolla-based json-glib package.

Code:

[nemo@Sailfish ~]$ ls -l /usr/lib/libjson-glib-1.0.so.0.400.4
-rwxr-xr-x    1 root    root        108032 Jan  5 09:37 /usr/lib/libjson-glib-1.0.so.0.400.4
[nemo@Sailfish ~]$ devel-su pkcon install libjson-glib
Password:
Resolving
Testing changes
Finished                                                                [                                    ] (0%)
The following packages have to be installed:
 libjson-glib-1.4.4-1.2.1.jolla.armv7hl Library for JavaScript Object Notation format
Proceed with changes? [N/y] y


Installing
Waiting for authentication
Querying
Installing packages
Downloading packages
Installing packages
Finished
[nemo@Sailfish ~]$ ls -l /usr/lib/libjson-glib-1.0.so.0.400.4
-rwxr-xr-x    1 root    root        107988 Mar 27 08:25 /usr/lib/libjson-glib-1.0.so.0.400.4
[nemo@Sailfish ~]$

See the difference in filedate + size after re-installation of the Jolla-based package.

mosen 2020-05-07 07:46

Re: Flatpak on Sailfish OS
 
Went as expected on 3.3.0.16 Proš.

Code:

Checking for file conflicts: ..............................................................[error]
Detected 1 file conflict:

File /usr/lib/libjson-glib-1.0.so.0.400.4
  from install of
    libjson-glib-1.4.4-1.2.1.jolla.armv7hl (jolla)
  conflicts with file from package
    json-glib-1.4.4-1.8.2.jolla.armv7hl (@System)

File conflicts happen when two packages attempt to install files with the same name but different contents. If you continue, conflicting files will be replaced losing the previous content.
Continue? [yes/no] (no): yes


magic cucumber 2020-05-11 15:03

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1567349)
For devices on SFOS 3.2.1.20 (Sony Xperia Tama and maybe

3.2.1.20:

Fatal error: nothing provides libgdk_pixbuf-2.0.so.0 needed by flatpak-1.6.3.0-1.4.1.jolla.armv7hl

Seems there is no libgdk_pixbuf-2.0 or similar package


All times are GMT. The time now is 13:42.

vBulletin® Version 3.8.8