Flatpak in Ubuntu 18.10

While reading through the application list created using Rust, I stumbled upon this app, Neovim-GTK, a GUI interface for Neovim editor written using Gtk-rs, Rust binding for Gtk. Looking through the project's Git repository, there are two ways to install the app, either you compile the code or install it through Flatpak. Since I'm running on Ubuntu 18.10, to install this app, I've no choice but to install and setup Flatpak first.

Flatpak, another universal installer GNU/Linux besides Snap and AppImage. We will see in coming years which format will win the universal installer "wars". Features wise, Flatpak is quite similar to Snap, the only different is it can use shared libraries from other "flatpacked" package. For comparison of all three universal installers, check this page.

Back to our Flatpak installation in Ubuntu. We will install the necessary software and repository.

If you're running earlier Ubuntu versions, anything before Ubuntu 18.10 (Cosmic Cuttlefish), then you will need to add this PPA repository.
$ sudo add-apt-repository ppa:alexlarsson/flatpak
$ sudo apt update

Otherwise, just install the software as usual.
$ sudo apt install flatpak
$ sudo apt install gnome-software-plugin-flatpak
$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Now, continue with the installation of Neovim-GTK using Flatpak.
$ wget https://github.com/daa84/neovim-gtk-flatpak/releases/download/v0.2.0-test5/nvim-gtk_x86_64.flatpak
$ sudo flatpak install nvim-gtk_x86_64.flatpak
Required runtime for org.daa.NeovimGtk/x86_64/master (runtime/org.gnome.Platform/x86_64/3.28) found in remote flathub
Do you want to install it? [y/n]: y
Installing in system:
org.gnome.Platform/x86_64/3.28                  flathub                  6d1d0ebbd724
org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6 flathub                  82006efc71d3
org.freedesktop.Platform.ffmpeg/x86_64/1.6      flathub                  d757f762489e
org.gtk.Gtk3theme.Yaru/x86_64/3.22              flathub                  03e8b087a55c
org.gnome.Platform.Locale/x86_64/3.28           flathub                  2823e3d81b74
org.daa.NeovimGtk/x86_64/master                 org.daa.NeovimGtk-origin bcdaf15ce78a
  permissions: ipc, network, pulseaudio, wayland, x11
  file access: host, xdg-run/dconf, ~/.config/dconf:ro, ~/.config/nvim:ro
  dbus access: ca.desrt.dconf
Is this ok [y/n]: y

Run Neovim-Gtk. Initial impression, the app was really fast compare to Gvim, which is understandable since it's just a bare essential Neovim GUI wrapper.
$ flatpak run org.daa.NeovimGtk


Installation size was large (1-plus GB downloaded) due to the all the dependencies. If you're low on disk space, Flatpack-based installation is not the preferable right choice compare to plain old source code compilation and installation.

No comments:

Post a Comment