Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.2 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How are flatpak packages installed?

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4414
Joined: Sun May 27, 2007 5:37 am

Re: How are flatpak packages installed?

#11

Post by asqwerth » Mon Mar 04, 2019 4:56 am

@NickStone,

Before you delete the flatpak kdenlive, you might want to backup your setup/configs from the kdenlive flatpak, which is saved under $HOME/.var/ subfolders.

Then when you install the Test Repo version of the package, you can paste the configs files into the corresponding subfolder for this. That's usually found in some subfolder in:
$HOME/.config
or
$HOME/.local/share/applications

That way you don't have to re-setup your Test Repo installation all over again.

I've done a little bit of that (or the other way round) for the setup of my oomox and lollypop flatpaks in MX15/16 , using the config contents from other distros where I was able to install these programs straight from their own repos. Similarly, if I made a new oomox theme using the flatpak version in MX15/16, I was able to copy the new theme config files from the $HOME/.var subfolder and copy them over to any of my other "normal" oomox installations in my other distros.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Bluesguy
Forum Regular
Forum Regular
Posts: 211
Joined: Wed Nov 28, 2018 6:37 pm

Re: How are flatpak packages installed?

#12

Post by Bluesguy » Mon Mar 04, 2019 11:06 am

asqwerth wrote:
Sun Mar 03, 2019 12:31 am
re: flatpak issues, did you install the flatpak apps with the .flatpakref files manually or were you applying the .flatpakref file using MXPI's flatpak tab>>advanced options? If manually, on MX or another distro? I do want to get more information on this because if there are some issues, let's see if the MXPI flatpak functionality can be improved.
Sorry for not getting back to you sooner ... been busy. To answer your question, I purposefully stay away from MX's flatpak Repo since I don't like the fact that it relies on a third-party collection. I have installed manually from developer sites when I wished to try out a latest/greatest version. So, for example, Linphone:
After installing flatpak, of course ... CLI ...

$ flatpak --user install --from https://linphone.org/flatpak/linphone.flatpakref

The app behaved very well and I used it on occasion, mostly for testing purposes ... ultimately deciding to uninstall to test as well ...

$ flatpak --user uninstall org.linphone.Linphone

Woes upon woes as I described earlier ... same thing with my Pitivi install (again, from their website) flatpak test ... the app functioned well but the uninstall ... well ... $ flatpak uninstall org.pitivi.Pitivi ... .flatpakrefs not found ...blah ... blah ... manually removed everything related to these apps from my system and then flushed flatpak as well ...

So, no, I didn't use MXPI's flatpak functionalities for either installation or uninstall ... never will, since I find flatpak technology a bit rough around the edges and unwieldy in many respects ... I stay with Stable MX Repos for apps precisely for their well-tested stability ... and as you yourself do, keep a modest stash of AppImages for apps that I've thoroughly tested, that work OTB, easy to manage, and don't require any risks that Testing Repos may pose to my MX installation since I use my machine for endless productivity of all sorts (audio/video/images/documents) ...

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4414
Joined: Sun May 27, 2007 5:37 am

Re: How are flatpak packages installed?

#13

Post by asqwerth » Mon Mar 04, 2019 12:06 pm

Bluesguy wrote:
Mon Mar 04, 2019 11:06 am

... no, I didn't use MXPI's flatpak functionalities for either installation or uninstall ... never will, since I find flatpak technology a bit rough around the edges and unwieldy in many respects ... I stay with Stable MX Repos for apps precisely for their well-tested stability ... and as you yourself do, keep a modest stash of AppImages for apps that I've thoroughly tested, that work OTB, easy to manage, and don't require any risks that Testing Repos may pose to my MX installation since I use my machine for endless productivity of all sorts (audio/video/images/documents) ...
Noted, on the first point.

Except I'm not sure you are supposed to find the flatpakref. I always thought the ref file was just a simple file with instructions specifying where to find the ACTUAL flatpak package from its remote repo (ie, the location/source). It isn't the actual flatpak package itself. So you shouldn't be uninstalling it, but the flatpak app and runtime that were installed using the instructions in the flatpakref file.

See http://docs.flatpak.org/en/latest/using-flatpak.html
The details of the application to be installed can also be provided by a .flatpakref file, which can be either remote or local. To specify a .flatpakref instead of manually providing the remote and application ID, run:

$ flatpak install https://flathub.org/repo/appstream/org. ... flatpakref

If the .flatpakref file specifies that the application is to be installed from a remote that hasn’t already been added, you will be asked whether to add it before the application is installed.

On the second point, I don't exactly do what you do. I have BOTH a very modest stash of Appimages AND a very selected few Flatpak installations. Plus I also have some Test Repo packages.

But it's true that I don't just install all sorts of portable apps or Test Repo packages willy nilly unless I really want a particular package or version not available in Stable repos. If a Stable repo version serves its purpose just fine, I don't see the point of installing a newer version, unless I want to test it out of curiosity and to give feedback to the packaging team.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Bluesguy
Forum Regular
Forum Regular
Posts: 211
Joined: Wed Nov 28, 2018 6:37 pm

Re: How are flatpak packages installed?

#14

Post by Bluesguy » Mon Mar 04, 2019 12:22 pm

Personal choices/opinions/especially observations based on user experiences ... always helpful ... good-natured stuff coming from ALL your posts ... thanks asqwerth!

User avatar
truscellino
Forum Novice
Forum  Novice
Posts: 6
Joined: Mon Apr 15, 2019 10:23 am

Re: How are flatpak packages installed?

#15

Post by truscellino » Mon Apr 15, 2019 12:00 pm

Hi everyone,
I am new to MX-linux, just installed the latest version on my girlfriend's laptop. I thought I could install some flatpak apps for her. I think it's quite a neat solution, doesn't mess up the system libraries and the sandboxing is nice to have, even though there is an overhead of course.
From the various threads in this forum, I understand that there is no real willingness to actively support flatpak in MX-linux, is that correct?
Themes in particular are currently not working, although flatpak now actually supports themes
https://blog.tingping.se/2017/05/11/fla ... eming.html
But as the blog post says, for themes or icons selection to be taken into account
Themes are picked up via GtkSettings, which means you require a settings-daemon running to set this. On GNOME this will already be running but for other desktops you can run gsd-xsettings directly in your libexec directory provided by gnome-settings-daemon.
gnome-settings-daemon can be installed via APT, but that seems to be a can of worms. What is your view?
Thanks, Marc

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11104
Joined: Sun Dec 16, 2007 1:17 pm

Re: How are flatpak packages installed?

#16

Post by dolphin_oracle » Mon Apr 15, 2019 12:12 pm

For one, we have flatpaks installable via MX-PackageInstaller. We aren't supporting the flatpaks themselves (that's kind of the point of universal packages) but we are supporting having them available.

Theming can be tricky, but there are now theme flatpaks you can install to alleviate this to an extent. Xfce also has a settings dameon, but I don't know if it works with flatpaks.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
truscellino
Forum Novice
Forum  Novice
Posts: 6
Joined: Mon Apr 15, 2019 10:23 am

Re: How are flatpak packages installed?

#17

Post by truscellino » Mon Apr 15, 2019 12:24 pm

OK thanks. I have used MX-PackageInstaller.
My point is that the flatpak themes don't work in MX, at least not for me. I installed Greybird GTK themes with flatpak command but that was never picked up by the flatpak apps that stick to default Adwaita. Hence the need for the GTK settings daemon...

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4414
Joined: Sun May 27, 2007 5:37 am

Re: How are flatpak packages installed?

#18

Post by asqwerth » Mon Apr 15, 2019 12:45 pm

truscellino wrote:
Mon Apr 15, 2019 12:24 pm
OK thanks. I have used MX-PackageInstaller.
My point is that the flatpak themes don't work in MX, at least not for me. I installed Greybird GTK themes with flatpak command but that was never picked up by the flatpak apps that stick to default Adwaita. Hence the need for the GTK settings daemon...
It might depend on the flatpak app you're installing. Is it a QT-based or Gtk program?

Also, your main installation outside of the flatpak apps must also be using the same theme as the flatpak theme.

I only have a few flatpaks installed in MX15/16, but Lollypop and Oomox do follow the flatpak Arc theme if I use normal gtk Arc theme.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
oops
Forum Regular
Forum Regular
Posts: 657
Joined: Tue Apr 10, 2018 5:07 pm

Re: How are flatpak packages installed?

#19

Post by oops » Mon Apr 15, 2019 1:19 pm

FI: A big change is comming ( for user-owned)
https://www.phoronix.com/scan.php?page= ... 2-Released

"...A big change was made with Flatpak 1.3.2 affecting how system-wide installations are done as a user. Up to now Flatpak relied upon a process involving a temporary user-owned directory and copying from there, but that method involved unnecessary I/O and temporarily using more disk space..."
$ inxi -Fxxxz : System: Host:XEON ... Distro: MX-18_x64 Continuum

User avatar
truscellino
Forum Novice
Forum  Novice
Posts: 6
Joined: Mon Apr 15, 2019 10:23 am

Re: How are flatpak packages installed?

#20

Post by truscellino » Mon Apr 15, 2019 7:09 pm

asqwerth wrote:
Mon Apr 15, 2019 12:45 pm

It might depend on the flatpak app you're installing. Is it a QT-based or Gtk program?

Also, your main installation outside of the flatpak apps must also be using the same theme as the flatpak theme.

I only have a few flatpaks installed in MX15/16, but Lollypop and Oomox do follow the flatpak Arc theme if I use normal gtk Arc theme.
Ok thank you. Wow, MX forums are very responsive!

Interesting, I installed flatpak Lollypop and theme doesn't work, even though greybird is active for both MX and flatpak. I have installed everything flatpak at system level, not user level, I might try and re-install at user level just to see what happens. I still prefer system-level installs as there are two active users on the machine.

Post Reply

Return to “General”