flatpak でインストールしたアプリ起動すると org.kde.Platrome がないと怒られる
これは定番ネタなのかもしれませんが、知らなかったのでポストします。
結論からいうと flatpak で kde ランタイムが不足しているときにインストールしたって話です。恐らく同様にランタイム不足のエラーの時同じような対応で行ける気がします。
数週間前から Linux Mint のデスクトップ環境をメイン PC として作業しているのですが、flatpak で gitty というアプリをインストールした時のことです。LM メニュー()から起動しようとしてもどうにも立ち上がってきません。
仕方ないのでラウンチャアイテムのプロパティを見てみると ’/usr/bin/flatpak run –branch=stable –arch=x86_64 –command=gittyup com.github.Murmele.Gittyup’ というコマンドを実行しているのがわかります。おもむろに実行すると。。。
$ /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=gittyup com.github.Murmele.Gittyup
error: runtime/org.kde.Platform/x86_64/5.15-21.08 not installed
kde 関連のライブラリが不足しているようです。
Bing のcopilot がいうには、’flatpak repair –user’ や ‘sudo flatpak update’ すればいい的なこと言っていますが実施しても変わらずです。
参考リンクを見ながら適当にイントールしてみます。
flatpak install で怒られたライブラリをしていすれば良いようです。
$ flatpak install org.kde.Platform
Looking for matches…
Similar refs found for ‘org.kde.Platform’ in remote ‘flathub’ (system):
1) runtime/org.kde.Platform/x86_64/5.13
2) runtime/org.kde.Platform/x86_64/5.10
3) runtime/org.kde.Platform/x86_64/5.12
4) runtime/org.kde.Platform/x86_64/5.11
5) runtime/org.kde.Platform/x86_64/5.15
6) runtime/org.kde.Platform/x86_64/5.14
7) runtime/org.kde.Platform/x86_64/5.15-21.08
8) runtime/org.kde.Platform/x86_64/5.15-22.08
9) runtime/org.kde.Platform/x86_64/5.15-23.08
10) runtime/org.kde.Platform/x86_64/6.2
11) runtime/org.kde.Platform/x86_64/6.3
12) runtime/org.kde.Platform/x86_64/6.4
13) runtime/org.kde.Platform/x86_64/6.5
14) runtime/org.kde.Platform/x86_64/6.6
15) runtime/org.kde.Platform/x86_64/6.7
16) runtime/org.kde.Platform/x86_64/5.9
Which do you want to use (0 to abort)? [0-16]: 7
Info: org.kde.Platform//5.15-21.08 is end-of-life, with reason:
We strongly recommend moving to the latest stable version of the Platform and SDK
Applications using this runtime:
com.github.Murmele.Gittyup
Info: org.freedesktop.Platform.GL.default//21.08 is end-of-life, with reason:
org.freedesktop.Platform 21.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
ID Branch Op Remote Download
ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.default 21.08 i flathub 129.8 MB / 129.8 MB
2. [✓] org.freedesktop.Platform.openh264 2.0 i flathub 1.8 MB / 1.5 MB
3. [✓] org.kde.Platform.Locale 5.15-21.08 i flathub 1.2 MB / 348.0 MB
4. [✓] org.kde.Platform 5.15-21.08 i flathub 327.7 MB / 311.1 MB
Installation complete.
無事起動しました!

flatpak はなんとなく避けていましたが、そろそろ使い方を覚えないといけないな、と思った出来事でした。
参考
Problems Updating Flatpak Via Terminal: org.kde.Platform – Fedora Discussion