Flatpaks

Version: 

Section: 

Applications

<post by user asqwerth>

Test of flatpak in VM of MX17.1 beta (default sysvinit). Steps I took to install lollypop flatpak:

1. installed flatpak using Synaptic.
2. visited this page for a list of flatpak apps: https://flathub.org/apps/
3. scrolled down to the lollypop entry, right-clicked on icon and chose "copy link location" from context menu (see note 1 below)
4. opened terminal and installed lollypop using this command:

flatpak install https://flathub.org/repo/appstream/org.gnome.Lollypop.flatpakref

where the URL in the command is pasted from the link location you copied in step 3 above. As I understand it, the link location is to the app's flatpakref file, which is a text file giving your flatpak framework instructions of what stuff it needs to download and install on your system to make your app run.

You can also copy and paste the full terminal installation command from the second tab (labelled "Command Line") of https://flathub.org/apps/ .

lollypop-appPage.png

By default the Flatpak apps page shows the first tab, which displays the various apps in pictorial/graphical icon format. The 2nd tab is a text list with the respective terminal commands for the installation of each flatpak application.

5. the installation text in the terminal noted that the flatpakref file requires that a remote (ie, a repository location) be installed from which the required runtimes and app is to be downloaded and installed. I clicked on "y" to proceed.

6. installation of runtime (the latest gnome/gtk 3.26, cool!) required root password.

7. runtime and app were downloaded and installed.

8. tried to look for it in whisker menu and couldn't find it. This puzzled me because in MX16, Lollypop and my just-installed evince 3.26 show up in whisker. Ran lollypop from terminal using this command:

flakpak run org.gnome.Lollypop

and it worked, although the terminal displayed error messages:
 

flatpak run org.gnome.Lollypop
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_array_append_vals: assertion 'array' failed
g_type = info.get_g_type()
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_hash_table_lookup: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
Traceback (most recent call last):
File "/app/lib/python3.5/site-packages/lollypop/thirdparty/GioNotify.py", line 130, in on_Notify_finish
self._replace_id = self.call_finish(result).unpack()[0]
GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (4)
tuaztest@mx171:~
$ flatpak run org.gnome.Lollypop
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_array_append_vals: assertion 'array' failed
g_type = info.get_g_type()
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_hash_table_lookup: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()
/usr/lib/python3.5/site-packages/gi/module.py:176: Warning: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed
g_type = info.get_g_type()

(lollypop:3): GLib-GIO-CRITICAL **: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(lollypop:3): GLib-GIO-CRITICAL **: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
TaskHelper::__on_soup_msg_finished(): g-io-error-quark: Operation was cancelled (19)
 

9. Occurred to me that maybe the system needs to be rebooted for the newly-installed runtime to be up and running. Did so and Lollypop now shows up in whisker [for Appimage apps, you need to manually make a launcher for the files you download]

10. Flatpak Lollypop runs fine in MX17.1, even internet/streaming radio. Theming is still Adwaita though. :p
 

lollypopflatpak-mx17.png

Note 1:
You can install via the copied and pasted URL of flatpakref file like I did, or directly install the app from the remote/repo. The first seems quicker to me since for the latter, you have to type out the full name of the app, which is "org.gnome.Lollypop". The front 2 prefixes indicate which runtime the package will running under. There are flatpak apps running under KDE runtime.

Note 2:
You can update your runtime and apps. See link below. Command is:

flatpak update

without su or sudo.
 

Links

Language: 

English