dragonwocky / obsidian-tray

Run Obsidian from the system tray for customisable window management & global quick notes
MIT License
213 stars 11 forks source link

suddenly couldn't open the Obsidian window by clicking the tray icon #48

Open FeiLZX3Km opened 4 months ago

FeiLZX3Km commented 4 months ago

The Tray plugin has great features, but I don't know why today I suddenly couldn't open the Obsidian window by clicking the tray icon. Even after terminating the task in the task manager and restarting it, I still couldn't open it. I had to enter the folder and delete the plugin and its directory folder. I hope the bug can be fixed soon.

dragonwocky commented 4 months ago

Hm, unfortunately I can't replicate this with the latest version of Obsidian and the tray, it stills opens for me. I'm going to need more information to be able to fix this.

What was your configuration? Does reinstalling the plugin cause the same thing to happen again? What happens if you press the hotkey to show/hide the window?

backd00rbenny commented 4 months ago

Seeing the same issue - the tray plugin appears to be broken. The tray icon appears to be completely inactive - even right click options aren't showing. Running a fresh install of Fedora 40 KDE 6 and using the AppImage from the Obsidian site.

Lancaban commented 4 months ago

Having a similar issue, Obsidian itself runs fine, the tray icon appears, and I had it set to launch on start, hide to tray etc. right-clicking the tray (for me) would show the fly-out menu, open a new vault relaunch etc, but none of them would DO anything.

I'm on Arch Linux using Obsidian installed from the Extra repository. I do have plenty of other plugins, so I'm not sure if it might be some sort of conflict, but for me the problem only started within the last two-days.

shakasan commented 4 months ago

Same issue here on EndeavourOS (Arch based), Cinnamon Desktop, and the latest version of obsidian in arch extra repository. The tray icon appear as well as the tray menu is showing, but clicks on icon or menu items don't work.

It happened just after the latest upgrade (see logs below of upgraded packages).

With Tray extention disabled, Obsidian work properly.

$ cat /var/log/pacman.log | grep -i upgraded | grep -i 2024-06-10
[2024-06-10T03:37:37+0200] [ALPM] upgraded ca-certificates-mozilla (3.100-1 -> 3.101-1)
[2024-06-10T03:37:38+0200] [ALPM] upgraded avr-libc (2.1.0-3 -> 2.2.0-1)
[2024-06-10T03:37:38+0200] [ALPM] upgraded bash-completion (2.14.0-1 -> 2.14.0-2)
[2024-06-10T03:37:38+0200] [ALPM] upgraded btrfs-progs (6.8.1-1 -> 6.9-1)
[2024-06-10T03:37:38+0200] [ALPM] upgraded element-web (1.11.65-1 -> 1.11.68-1)
[2024-06-10T03:37:38+0200] [ALPM] upgraded nspr (4.35-2 -> 4.35-3)
[2024-06-10T03:37:38+0200] [ALPM] upgraded nss (3.100-1 -> 3.101-1)
[2024-06-10T03:37:38+0200] [ALPM] upgraded fribidi (1.0.14-1 -> 1.0.15-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded xkeyboard-config (2.41-1 -> 2.42-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded libogg (1.3.5-1 -> 1.3.5-2)
[2024-06-10T03:37:39+0200] [ALPM] upgraded element-desktop (1.11.65-1 -> 1.11.68-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded gsl (2.7.1-3 -> 2.8-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded enblend-enfuse (4.2.r1546+hb66125418f7d-3 -> 4.2.r1546+hb66125418f7d-4)
[2024-06-10T03:37:39+0200] [ALPM] upgraded ethtool (1:6.7-1 -> 1:6.9-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded fakeroot (1.34-1 -> 1.35-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded frei0r-plugins (2.3.2-2 -> 2.3.3-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded python-typing_extensions (4.12.1-1 -> 4.12.2-1)
[2024-06-10T03:37:39+0200] [ALPM] upgraded glances (4.0.7-1 -> 4.0.8-2)
[2024-06-10T03:37:39+0200] [ALPM] upgraded x264 (3:0.164.r3108.31e19f9-1 -> 3:0.164.r3108.31e19f9-2)
[2024-06-10T03:37:39+0200] [ALPM] upgraded guvcview-common (2.1.0-1 -> 2.1.0-3)
[2024-06-10T03:37:39+0200] [ALPM] upgraded guvcview (2.1.0-1 -> 2.1.0-3)
[2024-06-10T03:37:39+0200] [ALPM] upgraded lib2geom (1.3-1 -> 1.3-2)
[2024-06-10T03:37:40+0200] [ALPM] upgraded inkscape (1.3.2-5 -> 1.3.2-6)
[2024-06-10T03:37:40+0200] [ALPM] upgraded jq (1.7.1-1 -> 1.7.1-2)
[2024-06-10T03:37:40+0200] [ALPM] upgraded libinput (1.25.0-1 -> 1.26.0-1)
[2024-06-10T03:37:40+0200] [ALPM] upgraded qt5-wayland (5.15.14+kde+r57-1 -> 5.15.14+kde+r58-1)
[2024-06-10T03:37:40+0200] [ALPM] upgraded krita (5.2.2-9 -> 5.2.2-10)
[2024-06-10T03:37:40+0200] [ALPM] upgraded lib32-nspr (4.35-2 -> 4.35-3)
[2024-06-10T03:37:40+0200] [ALPM] upgraded lib32-nss (3.100-1 -> 3.101-1)
[2024-06-10T03:37:40+0200] [ALPM] upgraded libev (4.33-2 -> 4.33-3)
[2024-06-10T03:37:40+0200] [ALPM] upgraded libmediainfo (24.04-1 -> 24.05-1)
[2024-06-10T03:37:41+0200] [ALPM] upgraded libmupdf (1.24.2-2 -> 1.24.3-1)
[2024-06-10T03:37:41+0200] [ALPM] upgraded libwnck (2.31.0-3 -> 2.31.0-4)
[2024-06-10T03:37:41+0200] [ALPM] upgraded mediainfo (24.04-1 -> 24.05-1)
[2024-06-10T03:37:41+0200] [ALPM] upgraded mupdf (1.24.2-2 -> 1.24.3-1)
[2024-06-10T03:37:41+0200] [ALPM] upgraded mupdf-tools (1.24.2-2 -> 1.24.3-1)
[2024-06-10T03:37:41+0200] [ALPM] upgraded noto-fonts-cjk (20230817-1 -> 20230817-2)
[2024-06-10T03:37:41+0200] [ALPM] upgraded obsidian (1.5.12-1 -> 1.6.3-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded opencl-nvidia (550.78-1 -> 550.90.07-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded openscenegraph (3.6.5-23 -> 3.6.5-24)
[2024-06-10T03:37:42+0200] [ALPM] upgraded parallel (20240322-1 -> 20240522-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded passt (2024_05_23.765eb0b-1 -> 2024_06_07.8a83b53-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded php (8.3.8-1 -> 8.3.8-2)
[2024-06-10T03:37:42+0200] [ALPM] upgraded python-bcrypt (4.1.2-2 -> 4.1.3-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded python-grpcio (1.64.0-2 -> 1.64.2-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded python-jsonschema (4.21.1-3 -> 4.22.0-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded python-pipenv (2023.12.1-2 -> 2024.0.0-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded qpdf (11.9.0-1 -> 11.9.1-1)
[2024-06-10T03:37:42+0200] [ALPM] upgraded sqlcipher (4.5.5-1 -> 4.6.0-1)
[2024-06-10T03:37:43+0200] [ALPM] upgraded telegram-desktop (5.1.2-1 -> 5.1.5-1)
[2024-06-10T03:37:43+0200] [ALPM] upgraded tor (0.4.8.11-1 -> 0.4.8.12-1)
[2024-06-10T03:37:43+0200] [ALPM] upgraded unzip (6.0-20 -> 6.0-21)
[2024-06-10T03:37:44+0200] [ALPM] upgraded vtk (9.3.0-15 -> 9.3.0-17)
[2024-06-10T03:37:44+0200] [ALPM] upgraded woff2 (1.0.2-4 -> 1.0.2-5)
[2024-06-10T03:37:44+0200] [ALPM] upgraded welcome (24.5.10-1 -> 24.6-1)
[2024-06-10T03:37:44+0200] [ALPM] upgraded wireless_tools (30.pre9-3 -> 30.pre9-4)
[2024-06-10T03:37:44+0200] [ALPM] upgraded xed (3.6.0-1 -> 3.6.1-1)
[2024-06-10T03:57:10+0200] [ALPM] upgraded xnviewmp-system-libs (1.7.1-1 -> 1.7.2-1)
[2024-06-10T03:57:10+0200] [ALPM] upgraded flacon (11.3.0-1 -> 11.4.0-1)
[2024-06-10T03:57:11+0200] [ALPM] upgraded etcher-bin (1.18.11-1 -> 1.19.21-1)
[2024-06-10T03:57:11+0200] [ALPM] upgraded pyinstaller-hooks-contrib (2024.6-1 -> 2024.7-1)
[2024-06-10T03:57:11+0200] [ALPM] upgraded ueberzugpp (2.9.5-1 -> 2.9.6-1)
[2024-06-10T03:57:11+0200] [ALPM] upgraded ueberzugpp-debug (2.9.5-1 -> 2.9.6-1)
[2024-06-10T03:57:16+0200] [ALPM] upgraded cura-bin (5.7.1-4 -> 5.7.2-1)
[2024-06-10T17:23:53+0200] [ALPM] upgraded attica (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded breeze-icons (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded extra-cmake-modules (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded karchive (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kcoreaddons (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kwindowsystem (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kauth (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kconfig (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kcodecs (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kguiaddons (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded ki18n (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kcolorscheme (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:56+0200] [ALPM] upgraded kwidgetsaddons (6.2.2-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kconfigwidgets (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kbookmarks (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kcalendarcore (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kcompletion (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kcrash (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kdbusaddons (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kiconthemes (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kitemviews (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded knotifications (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kjobwidgets (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kservice (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kwallet (6.2.1-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded solid (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kio (6.2.0-2 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kitemmodels (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kirigami (6.2.1-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kglobalaccel (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kxmlgui (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kcmutils (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kcontacts (1:6.2.0-1 -> 1:6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kdeclarative (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kfilemetadata (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kpackage (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded syndication (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded knewstuff (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded knotifyconfig (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded kquickcharts (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded ktexttemplate (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded sonnet (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded ktextwidgets (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded prison (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded purpose (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded qqc2-desktop-style (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded syntax-highlighting (6.2.0-1 -> 6.3.0-1)
[2024-06-10T17:23:57+0200] [ALPM] upgraded threadweaver (6.2.0-1 -> 6.3.0-1)
onlyswbeta commented 4 months ago

50

Friends, that's my question, and now I'm rolling back obsidian to version 1.5.12-1. Now the tray is back to normal use.

I'm on an arch linux system and the command I use is:

sudo pacman -U /var/cache/pacman/pkg/obsidian-1.5.12-1-x86_64.pkg.tar.zst 

Provided, of course, that there is no cleaned pacman cache.

Anagastes commented 4 months ago

@dragonwocky I can confirm this issue. Maybe its make a different with wayland? I'm using wayland.

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.6.32-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4670 CPU @ 3.40GHz
Memory: 23.4 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: ASUS
Product Name: All Series
Xananax commented 4 months ago

No, I use X11 and I observe the same behavior. It is not related to the display server.

shakasan commented 4 months ago

50

Friends, that's my question, and now I'm rolling back obsidian to version 1.5.12-1. Now the tray is back to normal use.

I'm on an arch linux system and the command I use is:

sudo pacman -U /var/cache/pacman/pkg/obsidian-1.5.12-1-x86_64.pkg.tar.zst 

Provided, of course, that there is no cleaned pacman cache.

A nice tool called downgrade is available on AUR and EndeavourOS repo to simply downgrade a package to a previous version from the cache (otherwise it will download it) and optionally will remove it from packages to update (config in pacman.conf)

yay -S downgrade
sudo downgrade obsidian

And downgrading from obsidian 1.6.3-1 to 1.5.12-1 make Tray working properly again.

Regarding the Arch packages updated, there is nothing related to DE (Cinnamon), WM (Muffin), GTK, Tray, etc that could explain the issue.

onlyswbeta commented 4 months ago

50

Friends, that's my question, and now I'm rolling back obsidian to version 1.5.12-1. Now the tray is back to normal use. I'm on an arch linux system and the command I use is:

sudo pacman -U /var/cache/pacman/pkg/obsidian-1.5.12-1-x86_64.pkg.tar.zst 

Provided, of course, that there is no cleaned pacman cache.

A nice tool called downgrade is available on AUR and EndeavourOS repo to simply downgrade a package to a previous version from the cache (otherwise it will download it) and optionally will remove it from packages to update (config in pacman.conf)

yay -S downgrade
sudo downgrade obsidian

And downgrading from obsidian 1.6.3-1 to 1.5.12-1 make Tray working properly again.

Regarding the Arch packages updated, there is nothing related to DE (Cinnamon), WM (Muffin), GTK, Tray, etc that could explain the issue.

Thanks !

Lancaban commented 4 months ago

Today, I updated obsidian to --> obsidian 1.6.3-2
previously was 1.6.3-1

Now tray plugin is fully functional again

Anagastes commented 4 months ago

@dragonwocky

I can confirm it. Its resolved with 1.6.3-2 on arch and co. o.o .... weird

backd00rbenny commented 3 months ago

I've had success with the AppImage, but the Flatpak version won't work for me in Fedora 40 with KDE. I'd much rather a working Flatpak.

dragonwocky commented 3 months ago

This plugin is based off Electron's Tray API, which should be handling support and specific implementations for each different distro/build of the app. The fact that this is a bug that pops up inconsistently depending on the version and build of Obsidian makes it seem like this is an issue related to changing dependencies or platform compatibilities, which are out of my control.

I'll leave the issue open and take a closer look again when I've got time, but I'm not so sure this is something that can be fixed (at least not by this plugin).

E.g. without digging too far into it yet, I'd guess that there'd be something related to the Flatpak's isolating techniques that is blocking the tray's registration of a global shortcut or something similar and thus breaking everything.

backd00rbenny commented 3 months ago

I thought that with the Flatpak too @dragonwocky. I haven’t yet found the permission, but if I get it working I’ll post a result. Otherwise AppImage is working for now. For me anyway.

backd00rbenny commented 3 months ago

@dragonwocky I've got it working with Flatpak. I enabled "Session Bus Access" in the Flatpak Permissions in KDE Settings. Needed checking even with the new v1.6.5, but so far so good, unless anything else changes, I'm set. Thanks for the work you do :)