mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
The Exec-path and DBusActivatable matching from the previous two commits were treating the wrong cause: InstallLauncher() in tdesktop's specific_linux.cpp unconditionally wipes and rewrites its own ~/.local/share/applications/*.desktop and dbus-1/services/*.service on every launch, regardless of what the installed .desktop file says — unless the DESKTOPINTEGRATION env var is non-empty, which is upstream's documented opt-out for exactly this kind of repack. /usr/bin/telegram-desktop is now a wrapper script that sets DESKTOPINTEGRATION=1 before exec'ing the real binary, covering every launch path (desktop file, D-Bus activation, terminal). The .desktop file's Exec/TryExec/DBusActivatable revert to their original values since the field-matching theory they were built on didn't hold.