laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
44.99k stars 4.89k forks source link

linux openbox fbpanel systray regression? #3242

Open xenogenesi opened 4 years ago

xenogenesi commented 4 years ago

I have been using Joplin for a few months, I had configured it to iconify itself in the systray and it was working, with one of the recent updates it stopped working (211 for sure, maybe even some previous, I haven't used it for a few weeks), the application remains running in the background but the icon does not appear in the systray.

Note, I use Debian / Linux, I have to update manually extracting squashfs-root and changing the chrome-sandbox privileges / owner, could it be that the icon used for the systray is not found?

Environment

Joplin version: 1.0.212 Platform: Linux OS specifics: Debian/sid

Steps to reproduce

cd ~/.joplin
wget "https://github.com/laurent22/joplin/releases/download/v1.0.211/Joplin-1.0.211.AppImage"
chmod +x ./Joplin-1.0.211.AppImage
./Joplin-1.0.211.AppImage --appimage-extract
cd squashfs-root
sudo chown root chrome-sandbox
sudo chmod 4755 chrome-sandbox
./joplin

Tools -> options -> application -> show tray [enable]

Describe what you expected to happen

When I close the window I expect to find the joplin icon in the systray

laurent22 commented 4 years ago

I don't know enough about Linux to answer but the Electron framework has recently been upgraded, which maybe affects the tray icon

xenogenesi commented 4 years ago

Ok thanks, I'll look into it and let you know.

ei-ke commented 4 years ago

I'm on Arch Linux with Cinnamon as desktop environment and the Gnome window manager. Joplin-1.0.201.AppImage working tray icon. Joplin-1.0.207.AppImage working tray icon. Joplin-1.0.209.AppImage broken tray icon. Joplin-1.0.212.AppImage broken tray icon as reported by @xenogenesi Joplin-1.0.214.AppImage broken tray icon.

ei-ke commented 4 years ago

This issue may be related to: No tray icon on Linux (electron@^8)

ei-ke commented 4 years ago

snixembed can be used as a workaround, but it's not "user friendly" out of the box. ~So maybe this could be done in the ElectronClient?~ Edit: Maybe not exactly what is needed...

xenogenesi commented 4 years ago

I have tried the dev environment but I don't see errors / exceptions.

I confirm that the problem is the electron update that occurred between the 207 and 208, using the same electron version of the 207 in the 208 works.

https://github.com/laurent22/joplin/commit/fa76c5db8d432c15eaee56da92b6d787831e037e#diff-354b749456a435fa9636508fb6b8d653

presianbg commented 4 years ago

Hi, having same problem on Solus + Budgie DE.

Managed to workaround with: kdocker -q -o -i /usr/share/icons/MB-Pistachio-Suru-GLOW/apps/16/joplin.svg /home/pyankulov/.joplin/Joplin.AppImage

dioni21 commented 4 years ago

Also happens on Fedora 31 with XFCE

xenogenesi commented 3 years ago

I skipped a few releases so I don't know exactly when it started working again, but it seems to me that with 1.3.5 it works properly.

ps: feature wish, could you do that clicking the icon shows or hides the window? Currently it seems to me that it shows it if it's hidden, but if it's visible it doesn't hide it, and I don't see options for the toggle.

pps: I switched from openbox to Cinnamon in the meantime, that might be why it works.

tiaga commented 3 years ago

it seems to me that with 1.3.5 it works properly. switched from openbox to Cinnamon in the meantime, that might be why it works

Not sure that Cinnamon caused this. Checked on 1.3.5 and it still doesn't work on Linux Mint 19.3 with Cinnamon 4.4.8.

xenogenesi commented 3 years ago

Cinnamon 4.6.7-1 there.

tiaga commented 3 years ago

Can confirm that it works on Linux Mint 20 with Cinnamon 4.6.7.

zero77 commented 3 years ago

It doesn't seem to be working with Debian in either polybar or qtile.

p6ril commented 3 years ago

I'm running Debian Buster with a Gnome desktop. The icon appears on first launch, but usually disappears after a while (I haven't figured out when so far). I've installed the AppIndicator and TopIcon Plus Gnome extensions to show icons.

To solve the issue I disable / enable the tray icon in Joplin's options.