Inkscape snap 命令行的文件路径是否正确?

Inkscape snap 命令行的文件路径是否正确?

我正在尝试从命令行使用 Ubuntu 中提供的 Inkscape snap,但它无法访问我的文件。

使用 Inkscape 中的图形界面打开文件效果很好。但是,它总是忘记我上次打开的目录。

我是否应该使用另一条路径来正确访问 snap 中的文件?在 Inkscape 打开文件对话框中,我看不到任何特定的前缀。

我在 snap 连接中看到个人文件已被挂载(?)。

thomas@box:~$ inkscape --export-width=16 --export-height=16 -o ~/trash/16x16.png ~/trash/base.svg
Gtk-Message: 07:58:28.269: Failed to load module "appmenu-gtk-module"
Gtk-Message: 07:58:28.315: Failed to load module "canberra-gtk-module"
Gtk-Message: 07:58:28.317: Failed to load module "canberra-gtk-module"
ink_file_open: '/home/thomas/trash/base.svg' cannot be opened!
InkscapeApplication::document_open: Failed to open: /home/thomas/trash/base.svg
ConcreteInkscapeApplication::on_open: failed to create document!
(07:58)
thomas@box:~$ ls /home/thomas/trash/base.svg
-rw-rw-r-- 1 thomas thomas 32K dec  1 07:57 /home/thomas/trash/base.svg
(07:58)
thomas@box:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
(07:59)
thomas@box:~$ snap connections inkscape
Interface              Plug                          Slot                            Notes
content[gtk-3-themes]  inkscape:gtk-3-themes         gtk-common-themes:gtk-3-themes  -
content[icon-themes]   inkscape:icon-themes          gtk-common-themes:icon-themes   -
dbus                   -                             inkscape:inkscape-dbus          -
desktop                inkscape:desktop              :desktop                        -
desktop-legacy         inkscape:desktop-legacy       :desktop-legacy                 -
gsettings              inkscape:gsettings            :gsettings                      -
network                inkscape:network              :network                        -
personal-files         inkscape:dot-config-inkscape  :personal-files                 -
raw-usb                inkscape:raw-usb              -                               -
unity7                 inkscape:unity7               :unity7                         -
wayland                inkscape:wayland              :wayland                        -
x11                    inkscape:x11                  :x11                            -
(07:59)
thomas@box:~$ snap info inkscape
name:      inkscape
summary:   Vector Graphics Editor
publisher: Inkscape Project (inkscape✓)
store-url: https://snapcraft.io/inkscape
contact:   https://inkscape.org/en/community/mailing-lists/#inkscape-user
license:   GPL-3.0
description: |
  A Free and open source vector graphics editor. It offers a rich set of features and is widely used
  for both artistic and technical illustrations such as cartoons, clip art, logos, typography,
  diagramming and flowcharting.
  
  
  
  It uses vector graphics to allow for sharp printouts and renderings at unlimited resolution and is
  not bound to a fixed number of pixels like raster graphics. Inkscape uses the standardized SVG
  file format as its main format, which is supported by many other applications including web
  browsers.
  
  
  
  Inkscape supports many advanced SVG features (markers, clones, alpha blending,
  etc.) and great care is taken in designing a streamlined interface.
  It is very easy to edit nodes, perform complex path operations, trace
  bitmaps and much more.
  We also aim to maintain a thriving user and developer community by using
  open, community-oriented development.
commands:
  - inkscape
  - inkscape.viewer
snap-id:      tIrcA87dMWthuDORCCRU0VpidK5SBVOc
tracking:     latest/stable
refresh-date: 8 days ago, at 06:49 CET
channels:
  latest/stable:    1.2.1-8a69933317-2022-10-28-cust 2022-11-04 (10462) 344MB -
  latest/candidate: 1.2.1-f926fb465e-2022-11-30-cust 2022-12-01 (10502) 345MB -
  latest/beta:      ↑                                                         
  latest/edge:      1.3-dev-74adff3496-2022-05-26    2022-05-26 (10408) 322MB -
installed:          1.2.1-8a69933317-2022-10-28-cust            (10462) 344MB -

编辑。从“导出”窗格中,我看到我的文件驻留在此实例中:/run/user/1000/doc/53892325/base.svg 选择输出位置后,我得到/run/user/1000/doc/7f5d9c6d/base_32x32.png

运行时mount,我看到了这个: portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

相关内容