Difference between revisions of "Flatpak"

From GnuCash
Jump to: navigation, search
m (use {{BuildURL}})
(Replace master by maint in the shell example; several other updates from German version)
Line 3: Line 3:
 
| [[de/{{PAGENAME}}|Deutsch]]
 
| [[de/{{PAGENAME}}|Deutsch]]
 
|}
 
|}
[https://flatpak.org/ Flatpaks] are bundles which besides the program also contain all required libraries. If your Linux distribution is too old to offer all required libraries but has Flatpak support, you can install a ''recent version'' of GnuCash from a Flatpak repository.
+
[https://flatpak.org/ Flatpaks] are bundles which besides the program also contain all required libraries. If your Linux distribution is too old to offer all required libraries but has Flatpak support, you can install a ''recent released'' or a ''nighly'' test version of GnuCash from a Flatpak repository.
  
 
=Known Issues=
 
=Known Issues=
Line 19: Line 19:
 
See also: [https://flathub.org/apps/details/org.gnucash.GnuCash Flathub]
 
See also: [https://flathub.org/apps/details/org.gnucash.GnuCash Flathub]
  
This version contains Gnucash 3.7 along with Aqbanking 5.8.2 ('''not suitable for ''PSD2''''', no online banking with the FinTS/HBCI protocol; date of this information: 2019-09-22).
+
This version contains Gnucash {{Version}} along with Aqbanking 5.8.2 ('''not suitable for ''PSD2''''', no online banking with the FinTS/HBCI protocol; date of this information: 2019-09-22).
  
 
<SyntaxHighlight lang="sh">
 
<SyntaxHighlight lang="sh">
Line 28: Line 28:
  
 
==Test version from ''gnucash.org''==
 
==Test version from ''gnucash.org''==
Sometimes you can find test versions on the [{{BuildURL}}/builds/flatpak/ build-server].
+
Often you can find test versions on the [{{BuildURL}}/builds/flatpak/ build-server]. They come in two flavours:
 +
:;Maint: Version {{Version}} plus ''all recent'' bug fixes, but no new features: [{{BuildURL}}/builds/flatpak/maint/ {{BuildServer}}/builds/flatpak/maint/]
 +
:;Master: Version {{Version}} plus new features, but bug fixes can be ''delayed'' a few days: [{{BuildURL}}/builds/flatpak/master/ {{BuildServer}}/builds/flatpak/master/]
 +
;Tip: The filenames from this direcories must be inserted trimmed in the example below, remove ahead „<tt>gnucash-</tt>“ and behind „<tt>.flatpakref</tt>“.
  
 
The current version contains Aqbanking 5.99.33 ('''''PSD2'' capable''' of online banking via ''[[:Category:De/FinTS|FinTS]]''/''[[De/HBCI|HBCI (german)]]'' protocol; date of this information: 2019-09-23).
 
The current version contains Aqbanking 5.99.33 ('''''PSD2'' capable''' of online banking via ''[[:Category:De/FinTS|FinTS]]''/''[[De/HBCI|HBCI (german)]]'' protocol; date of this information: 2019-09-23).
Line 34: Line 37:
 
<SyntaxHighlight lang="sh">
 
<SyntaxHighlight lang="sh">
 
sudo apt install flatpak  #install Flatpak
 
sudo apt install flatpak  #install Flatpak
# register repository:
+
# 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 gnucash https://code.gnucash.org/builds/flatpak/gnucash-nightlies.flatpakrepo
 
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
 
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Line 42: Line 45:
 
# org.gnucash.GnuCash.Debug
 
# org.gnucash.GnuCash.Debug
 
# org.gnucash.GnuCash.Locale
 
# org.gnucash.GnuCash.Locale
sudo flatpak --arch=x86_64 install gnucash org.gnucash.GnuCash//master-C3.7-201-g8342a6dfb-D3.7-15-gc52384e # <-- change version here!
+
sudo flatpak --arch=x86_64 install gnucash org.gnucash.GnuCash//maint-C3.7-57-g1a6314e10-D3.7-21-g06f4b05 # <-- change version here!
flatpak run org.gnucash.GnuCash  # start programme
+
flatpak run org.gnucash.GnuCash  # start program
 
</Syntaxhighlight>
 
</Syntaxhighlight>
 
;Note: <tt>flatpak --arch=x86_64</tt> is only required, if you have a 64-bit processor with a 32-bit OS.
 
;Note: <tt>flatpak --arch=x86_64</tt> is only required, if you have a 64-bit processor with a 32-bit OS.

Revision as of 00:42, 28 November 2019

Languages Deutsch

Flatpaks are bundles which besides the program also contain all required libraries. If your Linux distribution is too old to offer all required libraries but has Flatpak support, you can install a recent released or a nighly test version of GnuCash from a 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 Finance::Quote,
  • 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.

Stable version from flathub.org

See also: Flathub

This version contains Gnucash 5.6 along with Aqbanking 5.8.2 (not suitable for PSD2, no online banking with the FinTS/HBCI protocol; date of this information: 2019-09-22).

sudo apt-get install flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak run org.gnucash.GnuCash

Test version from gnucash.org

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

Maint
Version 5.6 plus all recent bug fixes, but no new features: code.gnucash.org/builds/flatpak/maint/
Master
Version 5.6 plus new features, but bug fixes can be delayed a few days: code.gnucash.org/builds/flatpak/master/
Tip
The filenames from this direcories must be inserted trimmed in the example below, remove ahead „gnucash-“ and behind „.flatpakref“.

The current version contains Aqbanking 5.99.33 (PSD2 capable of online banking via FinTS/HBCI (german) protocol; date of this information: 2019-09-23).

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.7-57-g1a6314e10-D3.7-21-g06f4b05  # <-- 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 aqbanking-cli and other command line tools
flatpak run --command=sh org.gnucash.GnuCash
opens a shell inside the sandbox of GnuCash.
Migration from normal package to flatpak (german)