






















@emiltb just set a newer Java environment. For example:
sudo archlinux-java set java-11-opendjk
In case you need to know which ones do you have, run:
sudo archlinux-java status
0.80.2 should now work fine with java 25. If you encounter any problems, please report to upstream and/or downgrade to java 21.
On my system running cinnamon, PP doesn't have an icon in the task bar when running it. In the desktop file, please change the following line
StartupWMClass=PortfolioPerformance
to
StartupWMClass=Portfolio Performance
i.e. insert a space. This fixed it for me.
@xsmile: There is an option in the settings that allows saving the GUI options to the same path as the xml file.
@whnr: Thanks, deleting the two directories works. The only downsides I could find are that several UI related settings like the language and recently opened files are deleted as well.
@xsmile PP is running successfully with Java 23 for me. If the application does not start after an update try to delete .eclipse and .PortfolioPerformance in the home directory. Do this at your own risk — never had an impact for me.
The application fails to start with Java 23 being the new default. According to the developer Java 17 is required.
I recommend depending on a static Java version, e.g. with:
diff --git a/PKGBUILD b/PKGBUILD
index f164cb5..1dc7291 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,35 +6,34 @@
pkgname=portfolio-performance-bin
pkgver=0.71.2
-pkgrel=1
+pkgrel=2
pkgdesc="A simple tool to calculate the overall performance of an investment portfolio."
arch=('x86_64')
url="https://www.portfolio-performance.info"
license=('EPL-1.0')
options=('!strip')
-depends=('java-runtime')
-validpgpkeys=('E46E6F8FF02E4C83569084589239277F560C95AC')
-
+depends=('java-runtime=17')
source=(
portfolio_$pkgver.tar.gz::"https://github.com/buchen/portfolio/releases/download/${pkgver}/PortfolioPerformance-${pkgver}-linux.gtk.x86_64.tar.gz"
portfolio_$pkgver.tar.gz.asc::"https://github.com/buchen/portfolio/releases/download/${pkgver}/PortfolioPerformance-${pkgver}-linux.gtk.x86_64.tar.gz.asc"
portfolio-performance-bin.svg::"https://raw.githubusercontent.com/buchen/portfolio/${pkgver}/portfolio-product/icons/logo.svg"
portfolio-performance-bin.desktop
+ portfolio-performance.sh
)
+sha512sums=('329c43013bb48942d8bf217dd62a51f57a36d60dba0a36a929960d117ce08d3b47ade9c3f9a16407b9c52842584b02c55637bf54ba124f3f3b1e1aed572dcfcb'
+ 'SKIP'
+ 'a7aef110c3379ea40644c3acc8681abd2bda82522d90fc4777632883454055c63426f97dada8ca247e5fa20a9f5b462eead46d2c2bf16989d35cebd774d32162'
+ '30301e96d108f25b10d77bf370bef366cb774f400487f6ffb1d3d718691bd2ee29b6a0fe5e7d8e8cfbe8af538285e9b2953a67657c4c752025045a7a6d9efb82'
+ '94f6e93f0c7f44ce7e38a5a5f36934cb57f012d55a10a76bebb5ac07256a88013ada245b6d0bd765748d2dc08e4a5fb2e3f1c376b08913b77d8365beadedd0b5')
+validpgpkeys=('E46E6F8FF02E4C83569084589239277F560C95AC')
package() {
install -d "$pkgdir"/{opt,usr/bin}
cp -a "$srcdir"/portfolio "${pkgdir}"/opt/portfolio-performance-bin
- ln -s /opt/portfolio-performance-bin/PortfolioPerformance "$pkgdir"/usr/bin/PortfolioPerformance
+ install -Dm 755 portfolio-performance.sh "$pkgdir"/usr/bin/PortfolioPerformance
install -Dm 644 portfolio-performance-bin.desktop -t "$pkgdir"/usr/share/applications
install -Dm 644 portfolio-performance-bin.svg -t "$pkgdir"/usr/share/pixmaps
}
-
-
-sha512sums=('329c43013bb48942d8bf217dd62a51f57a36d60dba0a36a929960d117ce08d3b47ade9c3f9a16407b9c52842584b02c55637bf54ba124f3f3b1e1aed572dcfcb'
- 'SKIP'
- 'a7aef110c3379ea40644c3acc8681abd2bda82522d90fc4777632883454055c63426f97dada8ca247e5fa20a9f5b462eead46d2c2bf16989d35cebd774d32162'
- '30301e96d108f25b10d77bf370bef366cb774f400487f6ffb1d3d718691bd2ee29b6a0fe5e7d8e8cfbe8af538285e9b2953a67657c4c752025045a7a6d9efb82')
diff --git a/portfolio-performance.sh b/portfolio-performance.sh
new file mode 100755
index 0000000..c2c5c73
--- /dev/null
+++ b/portfolio-performance.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
+export PATH="$JAVA_HOME/bin:$PATH"
+
+exec /opt/portfolio-performance-bin/PortfolioPerformance "$@"
@tuxxx: Thanks for taking care of the package. I did not report the issue upstream. My setup is:
Thanks for the suggestion using .local/share/applications/portfolio-performance-bin.desktop. That works well for me and will be persistent across updates.
@tuxxx: On my side the situation is unchanged until today. This means the error is reproducible and the solution still works.
I am using @olebowle's hint to change the .desktop file and am happy.
I have no clue what is the problem, my environment is:
X11
Cinnamon
java-17-openjdk (default)
Only one java is installed. My last information is that no one told upstream about the issue yet.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Make sure to import Andreas Buchens gpg key with