Script based price updates with URLs in the form ‘file:/path/to/getquote.sh %1’ (or specifically in my case file:///path) no longer work in KMyMoney-5.0.8-efd5847-x86_64.AppImage although they still work in 5.0.0.
STEPS TO REPRODUCE
1. Upgrade to 5.0.8
2. Run Online price update
Unable to launch: /home/admin/Kmymoney/GetPrices.sh XYZ.L
Unable to update price for XYZ.L (empty quote data)
Price should update as it does in Vn5.0.0
Linux/KDE Plasma: OpenSuse Leap 15.0
(available in About System)
KDE Plasma Version: 5.12.8
KDE Frameworks Version: 5.45.0
Qt Version: 5.9.4
I have checked permissions, tried moving the script, amended the online quote
settings URL but without success although all still woks fine in 5.0.0
I should add that I only use this to import a csv file of prices in the format:
Symbol, price, date
and that if the CSV importer were able to handle that as an update to kmm.prices it would be an ideal alternative to script based price updates for many users because such price csv files can be downloaded from a Yahoo finance portfolio (even though Yahoo finance no longer provides individual prices enquiries)
I am not able to duplicate this problem with a locally build and installed KMyMoney but using the AppImage version (same git sha). So it seems this is a problem of the AppImage version only. Not sure if https://github.com/AppImage/AppImageKit/issues/396 is relevant here.
I was able to figure out what the cause to this problem is:
execve("/home/thb/bin/kmm_price.sh", ["/home/thb/bin/kmm_price.sh", "NYCB"], 0x7ffc20c18f08 /* 113 vars */) = -1 ENOEXEC (Exec format error)
Git commit 8024818f811c74bb6e1578db0f9a64787c6f65d8 by Thomas Baumgart.
Committed on 14/03/2020 at 07:39.
Pushed by tbaumgart into branch '5.0'.
Allow local script files as price update sources in AppImage
The price update service in KMyMoney allows to start local scripts to
fetch price information. This did not work when started as AppImage.
This change brings that functionality to the AppImage version.
Within the AppImage version a configured URL such as
is called as "/bin/sh" "-c" "/home/user/bin/price.sh %1" where %1 will
be replaced with the actual investment symbol.
M +7 -0 kmymoney/converter/webpricequote.cpp
Thank you for addressing this issue. The Appimage version is a great way to access the updated version prior to distro updates and this will return it to full functionality for me. Many thanks.