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)

atlochowski 2020-04-03 08:12

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Jedibeeftrix (Post 1566514)
Video says following features for SFOS 3.3 - GCC 8.3 and flatpak support. Smashing!

https://www.youtube.com/watch?v=cG95...ature=youtu.be

Does this also suggest that 3.3 has moved to QT 5.9.x?

No, it doesn't

Jedibeeftrix 2020-04-03 08:53

Re: Flatpak on Sailfish OS
 
what does it say? In watching the video this morning I'm pretty sure it mentioned gcc and flatpak...

atlochowski 2020-04-03 09:17

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Jedibeeftrix (Post 1566518)
what does it say? In watching the video this morning I'm pretty sure it mentioned gcc and flatpak...

It doesn't suggest that 3.3 has moved to QT 5.9.x. Still 5.6.
But newer gcc and flatpak support it's present in 3.3.0.14.

Jedibeeftrix 2020-04-03 09:20

Re: Flatpak on Sailfish OS
 
apologies for misunderstanding, thank you.

rinigus 2020-04-03 13:22

Re: Flatpak on Sailfish OS
 
As we are getting to more widespread use, I have added 'App tips' section in
https://github.com/sailfishos-flatpa...-specific-tips

Currently it addresses scaling issues with the apps (too large fonts in Angelfish, for example). Feel free to extend via PRs to add your tips.

coderus 2020-04-03 13:40

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566532)
As we are getting to more widespread use, I have added 'App tips' section in
https://github.com/sailfishos-flatpa...-specific-tips

Currently it addresses scaling issues with the apps (too large fonts in Angelfish, for example). Feel free to extend via PRs to add your tips.

thanks, done: https://github.com/sailfishos-flatpa...ODeRUS:patch-1

rinigus 2020-04-03 13:47

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by coderus (Post 1566533)

merge request created and merged. Thanks!

carlosgonz 2020-04-03 15:40

Re: Flatpak on Sailfish OS
 
So what is the scaling or dpi normal in a sony xperia x, now is looking zoomed Angelfish.

rinigus 2020-04-03 15:45

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by carlosgonz (Post 1566539)
So what is the scaling or dpi normal in a sony xperia x, currently is look zoomed Angelfish.

https://lmgtfy.com/?q=sony+xperia+x+dpi&s=d

and look into recommended settings for Angelfish in the README referred before :)

carlosgonz 2020-04-03 20:07

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566540)
https://lmgtfy.com/?q=sony+xperia+x+dpi&s=d

and look into recommended settings for Angelfish in the README referred before :)

Thank you. It is possible be translated the qml-Flatpak-runner app to be easy for end user?

taixzo 2020-04-03 20:59

Re: Flatpak on Sailfish OS
 
Is this useful for any apps besides angelfish and telegram?

rinigus 2020-04-04 07:02

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by taixzo (Post 1566554)
Is this useful for any apps besides angelfish and telegram?

Excellent and important question!

In my eyes, no, it is not.

I am using it with Angelfish mainly. I have tried Mirage (https://github.com/mirukana/mirage, have to compile flatpak yourself until its published on Flathub), but it has some touch screen issues - although is usable. However, I hope that SFOS Matrix client will show up and I don't need Mirage on SFOS.

The whole project was started to get access to current libs and web browser. The best bet, taking into account QtWayland situation (no Gtk apps possible), turned out to be QtWebengine and corresponding web browser. Hence my participation in Angelfish development and its use.

Good thing about Angelfish is that it should be relatively simple to convert it to SFOS native app iff we get Qt updates. So, I consider it as an investment and it makes sense to join forces in browser development.

As for other apps, we are in rather good state with the apps when you compare with the others. In theory (haven't tried), its possible to package ubuntu touch apps to flatpaks as well. But it takes effort and someone has to be interested enough to make it.

My own plans, with the respect of Flatpak support, are modest. I don't plan to work on it much as it does what I need. Others are very welcome to join and fix issues as they find them. For example, if you wish to get ability to upload/download files via Angelfish, Flatpak would need to get support for the corresponding portals (file system access). So, you would have to read up on it, figure out used API, and implement it.

There are bugs, those that I know of are listed at https://github.com/sailfishos-flatpak/main/issues . Again, feel free to work on them and I will help as much as I can.

Flatpak will be able to make more if we get access to the newer Qt libs and corresponding QtWayland update. That would allow to use/write/adapt better composer in Flatpak Runner and get ability to run Gtk apps developed by Purism folks. Ironically, at the same time, we will be able to use newer Qt libs natively reducing the need of flatpak on SFOS. So, let's see what will be the situation when/if Qt update happens. Or, we all move on to somewhere else due to the inability to develop/run current software.

As for my time, I'd prefer to allocate it to the apps development (maps, browser, maybe something else) and ensuring that Sony Tama port is up to date.

rinigus 2020-04-04 07:04

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by carlosgonz (Post 1566553)
Thank you. It is possible be translated the qml-Flatpak-runner app to be easy for end user?

Sure, I should look into it. Issue opened: https://github.com/sailfishos-flatpa...nner/issues/18

monkeyisland 2020-04-04 09:44

Re: Flatpak on Sailfish OS
 
hi ringius.
i successfully installed flatpak on my xperia f53121.
but no icon of angelfish is appearing.
is there a fix which i can manage myselfon my jolla c
i have the icons but angelfish is not working because i think it is only working on sony devices?
or is therr a simple workaround too?

rinigus 2020-04-04 09:51

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by monkeyisland (Post 1566570)
hi ringius.
i successfully installed flatpak on my xperia f53121.
but no icon of angelfish is appearing.
is there a fix which i can manage myselfon my jolla c
i have the icons but angelfish is not working because i think it is only working on sony devices?
or is therr a simple workaround too?

Have you installed Angelfish? After installation you have to run Flatpak Runner (desktop icon should be there) and it will create an icon for you for all installed flatpak apps

monkeyisland 2020-04-04 09:53

Re: Flatpak on Sailfish OS
 
yes i did i perform a new clean install.

no icon

rinigus 2020-04-04 10:18

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by monkeyisland (Post 1566572)
yes i did i perform a new clean install.

no icon

To be sure that we speak about the same things:

* do you have flatpak-runner command available?

* did you install using
Code:

devel-su zypper in flatpak flatpak-runner
* please paste the output of
Code:

flatpak list
from ssh/terminal.

monkeyisland 2020-04-04 10:31

Re: Flatpak on Sailfish OS
 
2 Attachment(s)
I install new.

here a screenshot

monkeyisland 2020-04-04 10:42

Re: Flatpak on Sailfish OS
 
1 Attachment(s)
Afer installation the device performed a reboot itself.

Flatpak list.

shows

But no starter with angelfish :o

rinigus 2020-04-04 10:51

Re: Flatpak on Sailfish OS
 
First, it should not reboot itself, you will have to figure out what's going on. But looks like it managed to install all what's needed.

Second:

have you installed flatpak-runner? You are expected to install that as well, its Sailfish app. Now start in terminal (or from launcher)

flatpak-runner

It will show you the list of installed apps. Angelfish should be recognized and in that list. After that, Angelfish will be available in the icon list of the launcher

rinigus 2020-04-04 10:52

Re: Flatpak on Sailfish OS
 
PS: You are on SFOS 3.3.xxx, right?

monkeyisland 2020-04-04 11:04

Re: Flatpak on Sailfish OS
 
yes installed it

it is very funny that i dont get an icon
:p

yes

when i install flatpak and flatpak-runner how much
packages i get 2?

in a screenshot in this thread from another user there where 12 packages:;)

rinigus 2020-04-04 11:15

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by monkeyisland (Post 1566580)
yes installed it

it is very funny that i dont get an icon
:p

yes

when i install flatpak and flatpak-runner how much
packages i get 2?

in a screenshot in this thread from another user there where 12 packages:;)

You will pull few dependencies, sure. Don't remember the count though.

OK, then let's try differently. Try to run

flatpak-runner org.kde.mobile.angelfish

from terminal. Something feels amiss and I don't get what

monkeyisland 2020-04-04 11:29

Re: Flatpak on Sailfish OS
 
2 Attachment(s)
So i find the package i meant here:

http://talk.maemo.org/showpost.php?p...8&postcount=41

So i removed the package disable your repo.
pkcon refresh
all right
then enable your repo.
and maked a clean install of flatpak-runner and flatpak.

and now this :

:o

here the packages with repo info:

rinigus 2020-04-04 11:41

Re: Flatpak on Sailfish OS
 
There is a reason README is written. Please follow installation guide at https://github.com/sailfishos-flatpak/main . These dependencies are needed for what makes flatpak tick.

monkeyisland 2020-04-04 11:57

Re: Flatpak on Sailfish OS
 
okay so i ignore the warning i install it
;)

rinigus 2020-04-04 11:59

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by monkeyisland (Post 1566587)
okay so i ignore the warning i install it
;)

Looks like warning is coming from new package in 3.3 SFOS. as I compiled all for SFOS 3.2 and haven't updated yet, you can either ignore or not install and wait for few weeks (until Sony Tama is updated and flatpak packages will move to 3.3)

monkeyisland 2020-04-04 12:05

Re: Flatpak on Sailfish OS
 
2 Attachment(s)
Here evtl. an error with .svg pictures icons?

Attachment 41048

otherwise succes with terminal.
but no icon on desktop :o

Attachment 41049

rinigus 2020-04-04 12:10

Re: Flatpak on Sailfish OS
 
What happens if you run flatpak-runner without any arguments? does it show Angelfish? Did it create icon in launcher then?

Nekron 2020-04-04 12:14

Re: Flatpak on Sailfish OS
 
Installing flatpak on XA2 and X gave me the following package conflict:
Code:

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

Seems like Jolla is using an older version of libjson vs. Rinigus repository. I'm not sure if this will break OS stuff that depends on the Jolla provided json-glib or is it safe (having future OS updates in mind) to override this conflict?

rinigus 2020-04-04 12:19

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by Nekron (Post 1566593)
Installing flatpak on XA2 and X gave me the following package conflict:
Code:

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

Seems like Jolla is using an older version of libjson vs. Rinigus repository. I'm not sure if this will break OS stuff that depends on the Jolla provided json-glib or is it safe (having future OS updates in mind) to override this conflict?

I think its the same version (difference is in the last digits). As for whether it will break anything, I don't know. As stated above, I will be able to work on SFOS 3.3. only in few weeks

monkeyisland 2020-04-04 12:22

Re: Flatpak on Sailfish OS
 
1 Attachment(s)
No icon :o

evtl. these helps?

Attachment 41050

otherwise i can start angelfish from terminal.

rinigus 2020-04-04 13:57

Re: Flatpak on Sailfish OS
 
Looks like sfos 3.3 is not at OBS yet. So, will have to wait with conflict resolution for it. As for absent icon, no idea why is it.

LouisDK 2020-04-04 15:36

Re: Flatpak on Sailfish OS
 
I tried installing flatpak on my spare Jolla C running 3.3.0.14 by following these instructions: https://github.com/sailfishos-flatpak/main

Quote:

ssu addrepo rinigus-flatpak http://repo.merproject.org/obs/home:...atest_armv7hl/
devel-su zypper ref
devel-su zypper in flatpak flatpak-runner
But it fails after running: devel-su zypper in flatpak flatpak-runner[

Quote:

Loading repository data...
Reading installed packages...
Resolving package dependencies...
2 Problems:
Problem: nothing provides libgdk_pixbuf-2.0.so.0 needed by flatpak-1.6.2.0-1.21.1.jolla.armv7hl
Problem: nothing provides libgdk_pixbuf-2.0.so.0 needed by flatpak-1.6.2.0-1.21.1.jolla.armv7hl

Problem: nothing provides libgdk_pixbuf-2.0.so.0 needed by flatpak-1.6.2.0-1.21.1.jolla.armv7hl
Solution 1: do not install flatpak-1.6.2.0-1.21.1.jolla.armv7hl
Solution 2: break flatpak-1.6.2.0-1.21.1.jolla.armv7hl by ignoring some of its dependencies

Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c):
I can't seem to find libgdk_pixbuf-2.0.so.0 compiled for Sailfish neither in the repos nor on openrepos.

rinigus 2020-04-04 15:54

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by LouisDK (Post 1566609)
I tried installing flatpak on my spare Jolla C running 3.3.0.14 by following these instructions: https://github.com/sailfishos-flatpak/main



But it fails after running: devel-su zypper in flatpak flatpak-runner[



I can't seem to find libgdk_pixbuf-2.0.so.0 compiled for Sailfish neither in the repos nor on openrepos.

Sounds like incompatibility between 3.2 and 3.3 SFOS. You'll better wait till 3.3 lands at OBS and we can build packages against it.

atlochowski 2020-04-04 17:33

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by LouisDK (Post 1566609)
I tried installing flatpak on my spare Jolla C running 3.3.0.14 by following these instructions: https://github.com/sailfishos-flatpak/main



But it fails after running: devel-su zypper in flatpak flatpak-runner[



I can't seem to find libgdk_pixbuf-2.0.so.0 compiled for Sailfish neither in the repos nor on openrepos.

Interesting because I installed flatpak-runner on my Jolla C without any problems.
When you install flatpak-runner remember to enlarge your root partition because it's too small to install angelfish with all dependecies.

carlosgonz 2020-04-04 17:34

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by rinigus (Post 1566612)
Sounds like incompatibility between 3.2 and 3.3 SFOS. You'll better wait till 3.3 lands at OBS and we can build packages against it.

I got reboot itself on installing Flatpak dependecies. About sf-3.3 @mosen showed sf-3.3 in fixtec pro device, also i have problem with Angelfish icon.

rinigus 2020-04-04 17:42

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by atlochowski (Post 1566615)
Interesting because I installed flatpak-runner on my Jolla C without any problems.
When you install flatpak-runner remember to enlarge your root partition because it's too small to install angelfish with all dependecies.

When you use --user you install at your home folder, not root partition

The icon issues could be due to some error or some assumption that I made which is not valid for other cases.

But note: it is assumed that you use --user while install flatpak packages.

PS: don't like those reboots, something is wrong. Maybe that's what EA is for...

carlosgonz 2020-04-04 19:48

Re: Flatpak on Sailfish OS
 
Seems that the flatpak icons issues is to sf-rokua.

LouisDK 2020-04-04 21:36

Re: Flatpak on Sailfish OS
 
Quote:

Originally Posted by atlochowski (Post 1566615)
Interesting because I installed flatpak-runner on my Jolla C without any problems.
When you install flatpak-runner remember to enlarge your root partition because it's too small to install angelfish with all dependecies.

I do this is a size issue. As stated flatpak refuse to install due to "libgdk_pixbuf" not being available. Do you have a package named something like "libgdk_pixbuf" to be present on your Jolla C?


All times are GMT. The time now is 12:09.

vBulletin® Version 3.8.8