ArchLinux
-------
正在解決依賴關係…
:: 有 7 個提供者可供 xdg-desktop-portal-impl:
:: 軟體庫 extra
1) xdg-desktop-portal-gnome 2) xdg-desktop-portal-gtk
3) xdg-desktop-portal-hyprland 4) xdg-desktop-portal-kde 5) xdg-desktop-portal-lxqt
6) xdg-desktop-portal-wlr 7) xdg-desktop-portal-xapp
--------
正在解決依賴關係…
:: 有 7 個提供者可供 xdg-desktop-portal-impl:
:: 軟體庫 extra
1) xdg-desktop-portal-gnome 2) xdg-desktop-portal-gtk
3) xdg-desktop-portal-hyprland 4) xdg-desktop-portal-kde 5) xdg-desktop-portal-lxqt
6) xdg-desktop-portal-wlr 7) xdg-desktop-portal-xapp
--------
安裝 com.prusa3d.PrusaSlicer 後,執行時會出錯。
----------------
$ flatpak run com.prusa3d.PrusaSlicer
sh: warning: setlocale: LC_ALL: cannot change locale (zh_TW.UTF-8)
--------------------------------------------------------------------------
Message: 23:26:30: Starting PrusaSlicer flatpak with entrypoint script
--------------------------------------------------------------------------
/app/bin/entrypoint: line 12: warning: setlocale: LC_ALL: cannot change locale (zh_TW.UTF-8)
Message: 23:26:30: WARN: Executing prusa-slicer with locale workaround zh_TW.UTF-8
[ajax@aj-arch-pc ~]$ [2023-08-11 23:26:30.470612] [0x00007f30355fed40] [trace] Initializing StaticPrintConfigs
An error occured while setting up locale.
You may need to reconfigure the missing locales, likely by running the "locale-gen" and "dpkg-reconfigure locales" commands.
PrusaSlicer will now terminate.
locale::facet::_S_create_c_locale name not valid
---------------使用 sh 進去看
------------------
$ flatpak run --command=sh com.prusa3d.PrusaSlicer
sh: warning: setlocale: LC_ALL: cannot change locale (zh_TW.UTF-8)
[com.prusa3d.PrusaSlicer ~]$
....
[com.prusa3d.PrusaSlicer ~]$ ls -l /usr/lib/locale/zh_TW.utf8
lrwxrwxrwx 1 nfsnobody nfsnobody 44 Aug 11 21:26 /usr/lib/locale/zh_TW.utf8 -> ../../share/runtime/locale/zh/lib/zh_TW.utf8
[com.prusa3d.PrusaSlicer ~]$ ls /usr/lib/locale/../../share/runtime/locale/
(此目錄 /usr/share/runtime/locale/ 是空的)
------------------