Flatpak使用

Posted honhe

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flatpak使用相关的知识,希望对你有一定的参考价值。

Flatpak的--user与--system

flatpak 多个命令中都有--user或--system选项,默认是--system,不知为何需要这两个选项,什么场景下有这个需求。

--user与--system的安装位置是不一样的。

使用--system即默认时需要sudo运行flatpak install。


?  ~ flatpak info org.gnome.Glade
Ref: app/org.gnome.Glade/x86_64/stable
ID: org.gnome.Glade
Arch: x86_64
Branch: stable
Origin: flathub
Date: 2017-12-25 07:14:22 +0000
Subject: Bump Glade version to 3.20.2 for CPU bugfix and Platform to latest stable. (1daa6608)
Commit: c4a1b80ac3212c48ea029753781ec28566bcee1db72c56ca72e0a9a84a6634d7
Parent: 6495147d9e9b279a8a4db12a31379fbeac7883fdc8e2fd7ca6edb2259ecafd2f
Location: /home/honhe/.local/share/flatpak/app/org.gnome.Glade/x86_64/stable/c4a1b80ac3212c48ea029753781ec28566bcee1db72c56ca72e0a9a84a6634d7
Installed size: 3.9 MB
Runtime: org.gnome.Platform/x86_64/3.26

?  ~ flatpak info org.gimp.GIMP  
Ref: app/org.gimp.GIMP/x86_64/stable
ID: org.gimp.GIMP
Arch: x86_64
Branch: stable
Origin: flathub
Date: 2017-10-17 16:39:40 +0000
Subject: Build org.gimp.GIMP at 2f9a3362289727807db5b74d6ebf426d8a1f09a7
Commit: 7bda4b1cadf3d096f849e34f18c5934fa2e6dbe97b3269cabc2176e96e2a25fb
Parent: 64a5dae3bfa8ef3a5c7b7a4e2f497f3e0d5c297c496710998d98846ac3fafcc8
Location: /var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/7bda4b1cadf3d096f849e34f18c5934fa2e6dbe97b3269cabc2176e96e2a25fb
Installed size: 127.2 MB
Runtime: org.gnome.Platform/x86_64/3.24
x
 
1
?  ~ flatpak info org.gnome.Glade
2
Ref: app/org.gnome.Glade/x86_64/stable
3
ID: org.gnome.Glade
4
Arch: x86_64
5
Branch: stable
6
Origin: flathub
7
Date: 2017-12-25 07:14:22 +0000
8
Subject: Bump Glade version to 3.20.2 for CPU bugfix and Platform to latest stable. (1daa6608)
9
Commit: c4a1b80ac3212c48ea029753781ec28566bcee1db72c56ca72e0a9a84a6634d7
10
Parent: 6495147d9e9b279a8a4db12a31379fbeac7883fdc8e2fd7ca6edb2259ecafd2f
11
Location: /home/honhe/.local/share/flatpak/app/org.gnome.Glade/x86_64/stable/c4a1b80ac3212c48ea029753781ec28566bcee1db72c56ca72e0a9a84a6634d7
12
Installed size: 3.9 MB
13
Runtime: org.gnome.Platform/x86_64/3.26
14
15
?  ~ flatpak info org.gimp.GIMP  
16
Ref: app/org.gimp.GIMP/x86_64/stable
17
ID: org.gimp.GIMP
18
Arch: x86_64
19
Branch: stable
20
Origin: flathub
21
Date: 2017-10-17 16:39:40 +0000
22
Subject: Build org.gimp.GIMP at 2f9a3362289727807db5b74d6ebf426d8a1f09a7
23
Commit: 7bda4b1cadf3d096f849e34f18c5934fa2e6dbe97b3269cabc2176e96e2a25fb
24
Parent: 64a5dae3bfa8ef3a5c7b7a4e2f497f3e0d5c297c496710998d98846ac3fafcc8
25
Location: /var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/7bda4b1cadf3d096f849e34f18c5934fa2e6dbe97b3269cabc2176e96e2a25fb
26
Installed size: 127.2 MB
27
Runtime: org.gnome.Platform/x86_64/3.24


以上是关于Flatpak使用的主要内容,如果未能解决你的问题,请参考以下文章

跨发行版应用打包格式 Flatpak 发布

Docker & Flatpak

Linux降级Flatpak包

通过来自 Python 的 dbus 函数调用传递文件描述符(又名调用 flatpak 的 HostCommand)

羽夏闲谈—— Kdenlive flatpak 版本解决语音识别找不到 pip3

GLib.NetworkMonitor Flatpak 应用程序中的初始网络可用性不正确