Giter VIP home page Giter VIP logo

joplin-desktop-snap's Introduction

Get it from the Snap Store

sudo snap install joplin-desktop

This repository contains the snapcraft build files that generate a snap build of Joplin desktop.

Joplins official site can be found here and its source repository here

FAQ

joplin-james-carroll -> joplin-desktop package migration

There's an older, deprecated version of this package that currently still recieves updates, joplin-james-carroll. I would prefer that people transition to joplin-desktop over time in order to ease future maintainence. Since this is not possible to do in an automated fashion, I'll be monitoring the usage stats of the older package. When usage is low enough, the older package will stop serving new downloads and updates will cease.

I can't access files outside of $HOME

This is expected of snaps, they are heavily sandboxed and a snap usually cannot access files outside of $HOME. You can grant the removable-media interfaces to allow the snap to access /mnt and /media.

sudo snap connect joplin-desktop:removable-media

If the xdg-desktop-portals package is installed, GUI filepickers will be able to access arbitrary files on the system. (Folder selection via the xdg-portals requires Ubuntu 21.04+, Debian 11, etc).

The snap cannot access data from a none snap installation

Snaps cannot access hidden folders/files in the top level of $HOME. This means this snap cannot access $HOME/.config/joplin-desktop, the default location of the Joplin databases. The database is instead located in $HOME/snap/joplin-desktop/current/.config/joplin-desktop, and you should be able to copy this into $HOME/.config/joplin-desktop. You can also access this location by clicking "open profile directory" in the tools menu.

Alternatively, consider exporting the data (e.g., via .jex) or using Joplin's built in synchronisation functionality.

Data is missing after removing the snap

Snaps follow mobile app conventions and clear up their application specific data on uninstallation. If you have already deleted the snap and need to recover the data, the data will be stored for up to a month by default. Look here for help.

External editors don't work as expected.

Snaps exist in a heavy sandbox and can't directly open other applications. The snap should attempt to use XDG desktop portals to find suitable editors instead, and requires XDG desktop portal support in order to do so. Ensure the support is set up on your host (e.g, installing an xdg-desktop-portal system package) and the shortcut control-e should work mostly fine.

If your expected editor is not showing in the dialog, it's likely because it does not have metadata in the form of the freedesktop .desktop files, or it's metadata is incomplete, e.g, not being registered as a handler for the MIME type.

The functionality in the settings to specifiy an editor by file location will not work because the snap won't see any other editors due to the sandboxing. As a special exception, the path xdg-open can be used, which accepts an argument of --ask. If this combination is used, the application selection prompt will unconditionally appear for external editors the next time you attempt to use the functionality and until the --ask argument is removed. This can be used to reset the learnt preference or kept active indefinitely if preferred.

The snap should also be aware of when the system defaults are changed and open a prompt if a change is detected. For example, if the default image viewer is changed, the snap should ask which image viewer to use the next time you attempt to open an image.

In the worst case scenario, you can run the following command and log out and in again to reset the preferences for all snaps and flatpaks.

rm $HOME/.local/share/flatpak/db/desktop-used-apps

For advanced users, if the flatpak command is available you manually set specific associations. e.g, to set Gedit to be the default application for markdown in the Joplin snap:

flatpak permission-set desktop-used-apps text/markdown snap.joplin-desktop org.gnome.gedit 0 3

joplin-desktop-snap's People

Contributors

jgcarroll avatar elsiehupp avatar

Stargazers

 avatar Karolis Dumbrava avatar MCMXC avatar Rodrigo Akio Otsuka avatar Sangheon Han avatar Daniel Castro avatar Peter avatar Simon Van Accoleyen avatar Cengiz Can avatar Andrej Ježík avatar  avatar hwgao avatar  avatar Henry Heino avatar Alexander ADAM avatar i2z1 avatar Christian Wilkie avatar Michaël P avatar

Watchers

Michaël P avatar i2z1 avatar  avatar

joplin-desktop-snap's Issues

Dialog box missing fonts

2020-10-29_12-04

Environment
Joplin version: v1.3.10
Platform: Linux
OS specifics: Ubuntu 20.04.1 LTS

Steps to reproduce
Open help dialog
Describe what you expected to happen
I would expect the font to render

Contact to Joplin developers

He,

it's great to see, that someone managed to create a snap of Joplin! Congrats! 👍

I have two questions regarding the snap:

  • Have You already contacted the Joplin developers to integrate the build configuration?
  • What steps are necessary to publish a new Joplin version? Is a new tag automatically detected or do You have to change the tag name manually?

Thanks again for Your work!

Greetings,
Peter

Snap does not load since last update

I am using kde-plasma desktop and since the last update "19 September 2023"
It starts but nothing is loaded other than a blank screen.
joplin

Not sure if this is related but I get this when I start it from the CLI

Errors:
link failed but did not provide an info log
[8481:0925/191339.156499:ERROR:shared_context_state.cc(81)] Skia shader compilation error

// Vertex SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform float4 sk_RTAdjust;in float2 position;in half4 color;in float2 localCoord;flat out half4 vcolor_S0;noperspective out float2 vlocalCoord_S0;void main() {// Primitive Processor QuadPerEdgeAAGeometryProcessor
vcolor_S0 = color;vlocalCoord_S0 = localCoord;sk_Position = position.xy01;}
// Fragment SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform sampler2D uTextureSampler_0_S0;
flat in half4 vcolor_S0;noperspective in float2 vlocalCoord_S0;void main() {// Stage 0, QuadPerEdgeAAGeometryProcessor
half4 outputColor_S0;outputColor_S0 = vcolor_S0;float2 texCoord;texCoord = vlocalCoord_S0;outputColor_S0 = (blend_modulate(sample(uTextureSampler_0_S0, texCoord), outputColor_S0));const half4 outputCoverage_S0 = half4(1);{ // Xfer Processor: Porter Duff
sk_FragColor = outputColor_S0 * outputCoverage_S0;}}
// Vertex GLSL

using/mounting `~/.config/joplin-desktop`

So I saw a theme that I would like to use and its setup says:

Copy userchrome.css and userstyles.css to your joplin-desktopfolder (on Linux, it is located in ~/.config/joplin-desktop)

But Joplin doesn't seem to read it in my case, so my guess is that the Snap is currently not using this directory, right?

Would it be possible to mount that folder within the Snap?

PS: Can I otherwise allow access to paths without building the Snap on my own? I would love to add a Backup directory. Nevermind, I think it's working with the Joplin Snap anyway. Would be interesting anyway, though.

Unable to use external editor?

Tried to use the snap with Vim as external editor. The editor selection dialog only offers editors installed as snaps, and setting the explicit gvim binary in the Joplin settings ("/usr/bin/gvim" and variations thereof) silently fails.

Does not support opening notes when using vscode extension

Trying to use this snap together to the joplin vscode plugin doesn't work properly:

  • Notes are properly listed and can be managed (removed, renamed, created)
  • Opening a note fails.

The only log I get is in vscode:

[2021-04-19 14:38:49.930] [renderer3] [error] Running the contributed command: 'joplinNote.openNote' failed.: Error: Running the contributed command: 'joplinNote.openNote' failed.
	at S._executeContributedCommand (/snap/code/62/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:86:106930)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)

But since using the upstream AppImage it works, I assume there's some problem with the snap. There's no audit log in dmesg either.

Snap version of joplin-desktop would not open

Hi there!

I've been using the snap version of joplin-desktop for a couple of years - thanks for your contribution!

I was unable to open Joplin today, and found this issue. My comment at the bottom helped me resolve. Thought I would bring it to your attention, as well 😃

Cheers!

Error when trying to export to PDF (Linux snap, v 2.7.14)

Hi

When I try to export a notebook to PDF (after fresh snap install of joplin desktop and just taking my first notes), I first get a file browser window, which lets me choose a destination of the PDF and afterwards I get an error message.
This message states:
"Error: ENOENT: no such file or directory, stat '/home/myname/snap/joplin-desktop/27/.config/joplin-desktop/tmp/VERYLONGALPHANUMERICFILENAME.html"
Well, and that's it.

Environment

Joplin version: 2.7.14
Platform: Linux
OS specifics: Ubuntu 20.04

Steps to reproduce

see above

Describe what you expected to happen

I expected a PDF to be created.

I have issued this bug first at laurent22/joplin#6372 and was directed here.

Delete confirmation dialogue is unreadable

When I try to delete a note, it shows only squares.
The official AppImage does not have this problem, so it's likely that it's some issue with the Snap image.

Joplin deletion text in squares

PS: Thank you for your Snap image 👍

install problem on Ubuntu 20.04

Hi, Joplin stop working after the latest update on Ubuntu 20.04. If I try to reinstall I got this error message:

$ sudo snap install joplin-james-carroll                                                                       
error: cannot perform the following tasks:                                                                                          
- Run configure hook of "joplin-james-carroll" snap if present (run hook "configure":           
-----                                                                                                                               
cannot update snap namespace: remove /usr/bin/gjs: read-only file system                    
snap-update-ns failed with code 1: File exists
-----)

Downloading and installing AppImage from joplin.org works like a charm. Testing Joplin v1.3.18.

Cheers!

SIGTRAP when exporting to certain directories

Hello @MrCarroll

I'm having an issue when exporting to certain directories.

Joplin crashes with a SIGTRAP when I try to export PDF to certain directories

Crashes when exporting to:

  • $HOME/Desktop
  • $HOME/random_directory
  • /tmp

Successfully exports to:

  • $HOME/
  • $HOME/{Documents,Downloads,Music,Pictures,Videos}

stdout

$ joplin-desktop
Error org.freedesktop.DBus.Error.Failed: cannot set "default-url-scheme-handler" subproperty "joplin" setting to invalid value "@joplin/app-desktop.desktop"
Gtk-Message: 02:15:13.209: Failed to load module "canberra-gtk-module"
Gtk-Message: 02:15:13.210: Failed to load module "canberra-gtk-module"
[53203:0511/021513.270394:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
(node:53110) electron: The default of nativeWindowOpen is deprecated and will be changing from false to true in Electron 15.  See https://github.com/electron/electron/issues/28511 for more information.
(Use `joplin --trace-warnings ...` to show where the warning was created)
Trace/breakpoint trap

dmesg

[40423.889010] traps: joplin[53110] trap int3 ip:55efe34f88f9 sp:7ffcb294f400 error:0 in joplin[55efe305e000+65ed000]

I sense something is wrong with confinement.

I'm on Ubuntu 22.04 with joplin-desktop v2.7.14 rev 27.
Kernel is v5.15.0-27-generic.

Sometimes invisible on launch in GNOME

Summary

At times, the Joplin window is invisible on launch in GNOME.

Explanation

By default, Joplin starts with a minimized window. The window is unminimized after settings are loaded (provided that the "launch minimized" setting is disabled). On GNOME, this initial minimization causes laurent22/joplin#8256.

Joplin thus disables this behavior when it detects that it's running on GNOME (using the XDG_CURRENT_DESKTOP environment variable (code)).

In the snap application, process.env.XDG_CURRENT_DESKTOP returns 'Unity' and thus Joplin starts minimized.

Would it be possible to set XDG_CURRENT_DESKTOP to a string containing GNOME when running on GNOME?

error: cannot install "joplin-desktop": snap "joplin-desktop" assumes unsupported features

Hi there. I'm trying to install joplin-desktop from snap on Fedora 36 and I'm running into this error. I don't know much about snap but does this mean joplin-desktop has a hard requirement on snapd 2.55 but my OS has updated to 2.56? Thanks

[jonathan@latitude ~]$ sudo snap install joplin-desktop
[sudo] password for jonathan: 
error: cannot install "joplin-desktop": snap "joplin-desktop" assumes unsupported features:
       snapd2.55.5 (try to refresh snapd)
[jonathan@latitude ~]$ sudo snap refresh snapd
snap "snapd" has no updates available
[jonathan@latitude ~]$ snap info joplin-desktop
name:      joplin-desktop
summary:   A free, private note taking and to-do app!
publisher: James Carroll
store-url: https://snapcraft.io/joplin-desktop
contact:   https://github.com/MrCarroll/joplin-desktop-snap
license:   MIT
description: |
  Joplin is an open source, free note taking application. Designed to be capable of replacing
  Evernote, Joplin is privacy conscious and can be be used without signing up for an account, but
  optionally supports synchronising your files with a file host of your choice and with optional end
  to end encryption.
snap-id: bJW03EkiFdbjIuk3MBBoc51n1DcHw70B
channels:
  latest/stable:    v2.8.8 2022-06-07 (28) 150MB -
  latest/candidate: ↑                            
  latest/beta:      ↑                            
  latest/edge:      ↑                            
[jonathan@latitude ~]$ snap info snapd
name:      snapd
summary:   Daemon and tooling that enable snap packages
publisher: Canonical✓
store-url: https://snapcraft.io/snapd
license:   GPL-3.0
description: |
  Install, configure, refresh and remove snap packages. Snaps are
  'universal' packages that work across many different Linux systems,
  enabling secure distribution of the latest apps and utilities for
  cloud, servers, desktops and the internet of things.
  
  Start with 'snap list' to see installed snaps.
type:         snapd
snap-id:      PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
tracking:     latest/stable
refresh-date: today at 21:25 BST
channels:
  latest/stable:    2.56                   2022-06-08 (16010) 49MB -
  latest/candidate: 2.56.2                 2022-06-24 (16292) 49MB -
  latest/beta:      2.56.2                 2022-06-15 (16292) 49MB -
  latest/edge:      2.56.2+git413.gd588643 2022-06-28 (16401) 50MB -
installed:          2.56                              (16010) 49MB snapd

Can not launch joplin-desktop in centOS

hello,

I have a issue with v2.13.15, when I want to launch joplin with
snap run joplin-desktop, will get the following message:

[17912:0227/235251.409667:ERROR:platform_thread_posix.cc(155)] pthread_create: Operation not permitted (1) Trace/breakpoint trap (core dumped)

can anyone help me on this? thanks a lot.

Cannot install plugins

Hi. I'm a bit new to snaps. I'm running the latest stable snap v2.12.18 and if I try to install any plugin I get the following:

image

I tried multiple plugins all with the same error.

Sorry I tried but couldn't find a way to copy paste from the error popup...

Stock Ubuntu 23.04 all updates applied as of today. Anything I'm doing wrong or missed doing ? Thanks!

Problems with favourites in GNOME

Last release of joplin-desktop has issue with favourites in GNOME. You can't pin it to tasks bar:

obraz

I've found the problem: there is a wrong file: /var/lib/snapd/desktop/applications/joplin-desktop_joplin.desktop

It should be named: /var/lib/snapd/desktop/applications/joplin-desktop_joplin-desktop.desktop with the following change in the content:

- Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/joplin-desktop_joplin.desktop /snap/bin/joplin-desktop
+ Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/joplin-desktop_joplin-desktop.desktop /snap/bin/joplin-desktop

With that change, pinnging to task bar works:

obraz

"Dodaj do ulubionych" -> "Add to favourites" (I've got Polish locale)

2.13.12 on Ubuntu 22.04 does not start, permission denied errors in journal

I'm using Ubuntu 22.04 latest, snap updated joplin-desktop to 2.13.12. I started it yesterday morning the first time, but the usual window did not appear. Looking into the journal revealed some permission denied messages, e.g.:

Jän 03 07:01:14 t14 joplin-desktop_joplin-desktop.desktop[22782]: chmod: changing permissions of '/home/USERNAME/snap/joplin-desktop/50/.config': Permission denied
Jän 03 07:01:14 t14 kernel: audit: type=1400 audit(1704261674.610:80): apparmor="DENIED" operation="chmod" class="file" profile="snap.joplin-desktop.joplin-desktop" name="/home/USERNAME/snap/joplin-desktop/50/.config/" pid=22782 comm="chmod" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000
Jän 03 07:01:14 t14 audit[22798]: AVC apparmor="DENIED" operation="open" class="file" profile="snap.joplin-desktop.joplin-desktop" name="/home/USERNAME/snap/joplin-desktop/50/.config/user-dirs.dirs" pid=22798 comm="desktop-launch" requested_mask="wc" denied_mask="wc" fsuid=1000 ouid=1000
Jän 03 07:01:14 t14 joplin-desktop_joplin-desktop.desktop[22798]: /snap/joplin-desktop/50/gnome-platform/command-chain/desktop-launch: line 268: /home/USERNAME/snap/joplin-desktop/50/.config/user-dirs.dirs: Permission denied
Jän 03 07:01:14 t14 audit[22799]: AVC apparmor="DENIED" operation="open" class="file" profile="snap.joplin-desktop.joplin-desktop" name="/home/USERNAME/snap/joplin-desktop/50/.config/user-dirs.dirs.md5sum" pid=22799 comm="desktop-launch" requested_mask="wc" denied_mask="wc" fsuid=1000 ouid=1000
Jän 03 07:01:14 t14 joplin-desktop_joplin-desktop.desktop[22799]: /snap/joplin-desktop/50/gnome-platform/command-chain/desktop-launch: line 269: /home/USERNAME/snap/joplin-desktop/50/.config/user-dirs.dirs.md5sum: Permission denied
Jän 03 07:01:14 t14 kernel: audit: type=1400 audit(1704261674.774:81): apparmor="DENIED" operation="open" class="file" profile="snap.joplin-desktop.joplin-desktop" name="/home/USERNAME/snap/joplin-desktop/50/.config/user-dirs.dirs" pid=22798 comm="desktop-launch" requested_mask="wc" denied_mask="wc" fsuid=1000 ouid=1000
Jän 03 07:01:14 t14 kernel: audit: type=1400 audit(1704261674.774:82): apparmor="DENIED" operation="open" class="file" profile="snap.joplin-desktop.joplin-desktop" name="/home/USERNAME/snap/joplin-desktop/50/.config/user-dirs.dirs.md5sum" pid=22799 comm="desktop-launch" requested_mask="wc" denied_mask="wc" fsuid=1000 ouid=1000
Jän 03 07:01:14 t14 joplin-desktop_joplin-desktop.desktop[22820]: rm: cannot remove '/home/USERNAME/snap/joplin-desktop/50/.local/share/themes': Permission denied

Reverting to 2.13.9 solved the problem, I also set this version to hold.

Joplin-desktop erroneously reporting expired certificate

Greetings!

I believe this is the correct place to report the issue. If not, I apologize for wasting your time.

For some reason, possibly (but not certainly) related to https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/, as of 30 September, 2021, Joplin Desktop now refuses to sync with my Nextcloud instance, which uses a LetsEncrypt cert. Note that standard browsers (Firefox, Chrome) and Mail clients (Thunderbird) as well as the Android Joplin client don't have an issue with the certificate on this server - only the joplin-desktop snap.

I speculate that it is a root CA issue, but I could be wrong.

I believe we need to ensure that /etc/ssl/certs/ISRG_Root_X1.pem exists. I would expect it to, because it is in core20, which I see the snap uses.

Thanks in advance.

Edit: If I tick "Ignore TLS certificate errors", I can force it to work, but this is suboptimal for normal operation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.