无法在笔记应用程序 Joplin 中打开文件附件,出现错误“访问被拒绝”

无法在笔记应用程序 Joplin 中打开文件附件,出现错误“访问被拒绝”

我正在使用 Ubuntu 20.04。我已使用 Snapcraft 在终端中通过以下命令安装了 Joplin -

sudo snap install joplin-james-carroll

我有一个文件 DMBS.odg。我已将该文件附加到我的 Joplin App 笔记本中。之后,当我单击附件时,我无法打开该文件。我收到“访问被拒绝”错误。

以下是我的错误-

Access to /home/payel/snap/joplin-james-carroll/56/.config/joplin-desktop/tmp/edited_resources/DBMS(1).org was denied.

另外,我的文件名是 DBMS.org,而不是 DBMS(1).org。但错误消息中显示的是 DBMS(1).org

笔记:

我在 Ubuntu 桌面和 Android 手机上都安装了 Joplin,并使用 Dropbox 在两台设备上同步了我的 Joplin 应用程序。附件在我的 Android 设备上打开没有任何问题。它无法在我的桌面设备上打开。

更新:

snap connect joplin-desktop:removable-media

给我输出-

error: snap "joplin-desktop" has no plug named "removable-media"

snap interfaces  | grep -v ".*-$" | grep joplin

给我输出-

gnome-3-38-2004:gnome-3-38-2004        joplin-james-carroll
gtk-common-themes:gtk-3-themes         chromium,discord,joplin-james-carroll,libreoffice,mysql-workbench-community,opera,skype,snap-store
gtk-common-themes:icon-themes          chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,snap-store
gtk-common-themes:sound-themes         chromium,discord,joplin-james-carroll,libreoffice,mysql-workbench-community,opera,skype,snap-store
:audio-playback                        chromium,joplin-james-carroll,libreoffice,opera,skype,vlc
:browser-support                       chromium:browser-sandbox,discord,joplin-james-carroll,opera:browser-sandbox,skype:browser-sandbox,skype,spotify
:desktop                               chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,snap-store,spotify,vlc
:desktop-legacy                        chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,snap-store,vlc
:gsettings                             chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,snap-store,spotify
:home                                  chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,spotify,vlc
:network                               chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,snap-store,spotify,vlc
:opengl                                chromium,discord,joplin-james-carroll,libreoffice,mysql-workbench-community,opera,skype,snap-store,spotify,vlc
:unity7                                chromium,discord,joplin-james-carroll,libreoffice,opera,skype,spotify,vlc
:wayland                               chromium,discord,joplin-james-carroll,libreoffice,mysql-workbench-community,opera,skype,snap-store,spotify
:x11                                   chromium,discord,joplin-james-carroll,leafpad,libreoffice,mysql-workbench-community,opera,skype,snap-store,spotify,vlc

'snap interfaces' is deprecated; use 'snap connections'.
-                                      joplin-james-carroll:avahi-control
-                                      joplin-james-carroll:cups-control
-                                      joplin-james-carroll:password-manager-service
-                                      joplin-james-carroll:pulseaudio
-                                      joplin-james-carroll:removable-media

更新 2:

按照@N0bert 要求的步骤进行操作

现在出现错误-

Access to /home/payel/snap/joplin-desktop/4/.config/joplin-desktop/tmp/edited-resources/DBMS.odg was denied

只有在原来的错误joplin-james-carroll现在被取代joplin-desktop

答案1

我觉得你使用的 Joplin 版本不对。这个版本joplin-james-carroll是非官方的,但是joplin-desktop是官方的。

因此你必须:

  1. 删除非官方快照:

    sudo snap remove joplin-james-carroll
    
  2. 安装官方 snap:

    sudo snap install joplin-desktop
    
  3. 将可移动媒体连接到新安装的 snap:

    sudo snap connect joplin-desktop:removable-media
    

相关内容