Difference between revisions of "Flatpak"

From GnuCash
Jump to: navigation, search
(Stable version from flathub.org: reworden 'Current [...] 3.8')
m (Stable version from flathub.org: Change "Stable versions" to "Releases" because Flathub also has unstable releases.)
Line 17: Line 17:
 
</Syntaxhighlight> for many rpm based distributions.
 
</Syntaxhighlight> for many rpm based distributions.
  
==Stable version from ''flathub.org''==
+
==Releases from ''flathub.org''==
 
See also: [https://flathub.org/apps/details/org.gnucash.GnuCash Flathub]
 
See also: [https://flathub.org/apps/details/org.gnucash.GnuCash Flathub]
  

Revision as of 20:08, 27 April 2020

Languages Deutsch

Flatpaks are bundles which besides the program also contain all required libraries. Use cases:

  • If your Linux distribution is too old to offer all required libraries but has Flatpak support, you can install a recent released version of GnuCash from the FlatHub repository.
  • If a developer asks you to test a patch, you can use a nighly version from our Flatpak repository.

Known Issues

  • To use smart cards, at least Flatpak 1.3.2 needs to be installed on your system. Complain against your distribution if they do not offer it.
  • no direct report printing (printing to file works) and
  • a potential bug that causes guile to attempt to recompile all scm sources. Workaround

Installation

Examples for Ubuntu or Debian (in Buster, Flatpak is already included, for Stretch and Jessie backports exist):

Hint
For other distributions replace apt* <command> by your preferred commandline software managment tool and its command, i.e.
zypper install flatpak
for many rpm based distributions.

Releases from flathub.org

See also: Flathub

Flathub version Gnucash 3.8 shipped with Aqbanking 6.1.0 which was almost suitable PSD2 using online banking with the FinTS/HBCI protocol. But newer versions still got more fixes.

# Install FlatPak (on debian based distributions, others have to replace 'apt-get install'):
sudo apt-get install flatpak

# Register FlatHub repository for a system app (available to all users):
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# or only you:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# Install GnuCash ...
# for all users:
#  sudo is only needed for a --system install, if the user is not in the 'sudo' group
#  --system is the default if --user is not specified
sudo flatpak install --system flathub org.gnucash.GnuCash
# or only you:
flatpak install --user flathub org.gnucash.GnuCash

# Run GnuCash:
flatpak run org.gnucash.GnuCash
Tip
To get the most recent version, run each quarter year:
flatpak update

Test version from gnucash.org

Warning
Save your data before using test versions!

Often you can find test versions on the build-server. They come in two flavours:

Maint
Version 5.5 plus all recent bug fixes, but no new features: code.gnucash.org/builds/flatpak/maint/
Master
Version 5.5 plus new features, but bug fixes can be delayed a few days: code.gnucash.org/builds/flatpak/master/
Tip
The file names in these directories can be used in the example below after trimming the „gnucash-“ prefix and „.flatpakref“ suffix.

The current version contains Aqbanking 6.1.0 (PSD2 capable of online banking via FinTS/HBCI (german) protocol; date of this information: 2020-02-20).

sudo apt install flatpak  #install Flatpak
# register repositories:
sudo flatpak remote-add --if-not-exists gnucash https://code.gnucash.org/builds/flatpak/gnucash-nightlies.flatpakrepo
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --arch=x86_64 remote-ls gnucash  # show all packages
# output should be:
# org.gnucash.GnuCash
# org.gnucash.GnuCash.Debug
# org.gnucash.GnuCash.Locale
sudo flatpak --arch=x86_64 install gnucash org.gnucash.GnuCash//maint-C3.8b-163-g0e6c9e219-D3.8b-15-g0479ece  # <-- change version here!
flatpak run org.gnucash.GnuCash  # start program
Note
flatpak --arch=x86_64 is only required, if you have a 64-bit processor with a 32-bit OS.

Tips

To call command line tools like aqbanking-cli
flatpak run --command=sh org.gnucash.GnuCash
opens a shell inside the sandbox of GnuCash.
In case of trouble get the console output
flatpak run org.gnucash.GnuCash
or even better
flatpak run org.gnucash.GnuCash --logto stdout
The latter will print all logs to the console rather than to an inaccessible trace file.
Migration from normal package to flatpak (german)