Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Flatpak on Sailfish OS

    Reply
    Page 2 of 44 | Prev |   1   2   3     4   12 | Next | Last
    nthn | # 11 | 2020-01-06, 09:50 | Report

    Outstanding work!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to nthn For This Useful Post:
    Amboss, juiceme, mosen, rinigus

     
    rinigus | # 12 | 2020-01-06, 15:57 | Report

    Originally Posted by eson View Post
    There isn't. Works fine in Pure Maps flatpack.
    That red box is regarding map labels selection, not really locale as of GUI. Note that you could set some better Qt style which will show these items in dropboxes (no idea why default sucks so much)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to rinigus For This Useful Post:
    Amboss, eson, juiceme

     
    taixzo | # 13 | 2020-01-06, 16:34 | Report

    How does the memory usage of Flatpak apps compare with native ones?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to taixzo For This Useful Post:
    Amboss, juiceme, rinigus

     
    Bundyo | # 14 | 2020-01-06, 16:38 | Report

    Originally Posted by taixzo View Post
    How does the memory usage of Flatpak apps compare with native ones?
    Probably every one loads its own libs, so worse than running shared.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to Bundyo For This Useful Post:
    Amboss, juiceme, rinigus, taixzo

     
    rinigus | # 15 | 2020-01-06, 18:09 | Report

    Originally Posted by taixzo View Post
    How does the memory usage of Flatpak apps compare with native ones?
    Excellent question. That's what I found regarding it: https://github.com/flatpak/flatpak/i...ment-356259401

    So, in practice:

    - if you have KDE platform with Qt 5.12 installed in home (--user)
    - all apps using this platform will share Qt libs and all libs in the platform
    - the libs bundled with the apps (like some ones required for specific action by that app) will not be shared between apps

    In this respect, it the same for us now. All libs bundled with the apps don't share RAM even if they are the same.

    So, we get an overhead of loading platform libs to RAM, but we can minimize it by using the same runtime as much as we can.

    However, the discussion in that linked issue is interesting for getting info on Flatpak internals.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 14 Users Say Thank You to rinigus For This Useful Post:
    Amboss, Bundyo, catbus, eson, imaginaryenemy, Jedibeeftrix, juiceme, lal, ljo, Maemish, MartinK, mosen, taixzo, xman

     
    MartinK | # 16 | 2020-01-07, 17:56 | Report

    Originally Posted by rinigus View Post
    So, we get an overhead of loading platform libs to RAM, but we can minimize it by using the same runtime as much as we can.
    I can get some background about what I have found so far about the on-disk space using of Flatpaks to complement the data about RAM usage.

    For that it's important to note, how Flatpaks & runtimes are actually stored - in a single shared OSTree repo. OSTree provides some key benefits for flatpaks:
    • git like per app & per runtime repo
    • differential updates (only changes from previous version are transferred on update)
    • automatic deduplication of everything in the repo

    Especially the last point is pretty important and should be stressed. Thanks to this, you can have say 5 versions of the KDE (or any other) installed, but it will not consume much less than 5 full copies (basically size of all the shared bits + all the individual differences).

    The same thing is true for applications - everything is automatically deduplicated against everything else. So if two apps bundle the same thing, say libfoo built the same way, resulting in the same binaries or say some bitmap files - there will always be just a single copy stored for all the apps.

    To summarize - thanks to its innovative storage layout even with the need for runtimes when compared to "normal" packages, Flatpak is pretty efficient in both storage of runtimes and apps as well as for runtime and app updates.

    Many of these things are simply not possible or pretty hard to do just with regular RPM (easy parallel installation & automatic deduplication).

    Also - HUGE thanks to rinigus for working on this - you are really a hero!

    I was secretly hoping Jolla would pick this up as the main native app distribution mechanism given that it fixes many many of the problems of the current platform and store (such as the App version and system version of Qt being the same, turning Qt updates into a tricky and ornerous process). But this is also a way.

    Fingers crossed that this time they they will give priority to any changes needed in the regular Sailfish OS for full Flatpak support, so that Sailfish OS users on as many devices as possible can use it.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 13 Users Say Thank You to MartinK For This Useful Post:
    Amboss, Bundyo, catbus, edp17, eson, Jedibeeftrix, juiceme, Kabouik, lal, ljo, mosen, rinigus, taixzo

     
    rinigus | # 17 | 2020-01-07, 20:32 | Report

    @MartinK: thanks a lot for the background. I am sure we will be able to get it working on all devices or at least on the updated ones. Right now I am focusing on getting the keyboard working, then would have to polish different aspects and when its end-user usable, get it supported on wide range of devices.

    If done well, I am sure Jolla will see the benefit in it. But we don't have to rely on them and let it out as much as we could through community.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 8 Users Say Thank You to rinigus For This Useful Post:
    Amboss, juiceme, Kabouik, lal, ljo, MartinK, meloferz, mosen

     
    mankir | # 18 | 2020-01-09, 18:05 | Report

    very promising at all! i am not able to run the plasma browser, may be i forgot something?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to mankir For This Useful Post:
    Amboss, juiceme, mosen

     
    rinigus | # 19 | 2020-01-10, 07:17 | Report

    Originally Posted by mankir View Post
    very promising at all! i am not able to run the plasma browser, may be i forgot something?
    Probably.

    Its not ready yet for general use. Making good progress with the keyboard (can already trigger SFOS one from Flatpak app), but need to polish keyboard-app communication further. When ready, will have to see how to properly incorporate that into the platform.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 7 Users Say Thank You to rinigus For This Useful Post:
    Amboss, juiceme, Kabouik, ljo, mankir, MartinK, olf

     
    rinigus | # 20 | 2020-01-11, 14:36 | Report

    I have just released new flatpak runner with Sailfish keyboard support. The keyboard required
    • Having DBus service running in P2P mode for communication of Sailfish application rotation and activity state
    • Modified Maliit Qt plugin inside Flatpak container to trigger keyboard and rotate it

    It could still have some issues with the keyboard, but those could be resolved later. I presume it should also work with the hardware keyboard device as it should be configured on Maliit server side (residing on SFOS).

    So, right now we can use QML/Qt apps with the keyboard. Keyboard follows application screen orientation, hides when you switch away from it, can be used to enter chars.

    Example packaging script for Angelfish is in the separate repository, https://github.com/sailfishos-flatpak/example-apps

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 17 Users Say Thank You to rinigus For This Useful Post:
    ajalkane, Amboss, catbus, edp17, juiceme, juz, Kabouik, ljo, Maemish, mankir, MartinK, meemorph, meloferz, mosen, olf, PamNor, peterleinchen

     
    Page 2 of 44 | Prev |   1   2   3     4   12 | Next | Last
vBulletin® Version 3.8.8
Normal Logout