tdesktop/Telegram/SourceFiles/platform/linux
Ilya Fedin 272d2da04a Stabilize app id on Linux when -workdir is set to the default workdir
Currently the app id hash is generated from workdir path only when it's set explicitly and that's for a good reason: the default workdir could be changed (e.g. by creating a TelegramForcePortable) and app id would change what would result in a duplicate .desktop created.

The current code has the possibility of having duplicate .desktop files, too, as it happened, but by specifying -workdir to the same directory as the default one.

There's now a check that ensures the specified workdir is really custom so those duplicate launchers could be removed what should really stabilize the hash.
2023-07-24 10:37:38 +04:00
..
file_utilities_linux.cpp Get rid of DESKTOP_APP_DISABLE_DBUS_INTEGRATION 2023-05-15 08:08:04 +04:00
file_utilities_linux.h Don't get cursor position twice for open with menu 2023-01-20 12:58:48 +04:00
integration_linux.cpp Make a weak pointer for GApplication startup lambda 2023-07-21 06:48:57 +04:00
integration_linux.h
launcher_linux.cpp Track argv0 through relaunches 2023-06-16 11:38:54 +04:00
launcher_linux.h Provide access to un-joined argument list in Core::Launcher 2023-06-13 12:19:21 +04:00
linux_desktop_environment.cpp Replaced some qsl with u""_q literal. 2022-11-30 17:17:14 +03:00
linux_desktop_environment.h
linux_wayland_integration.cpp Ensure Wayland integration instance accessor doesn't leak 2023-06-17 15:13:31 +04:00
linux_wayland_integration.h Destroy Wayland integration before Wayland disconnection 2023-05-25 22:05:13 +04:00
linux_wayland_integration_dummy.cpp
linux_xdp_open_with_dialog.cpp Avoid using const_string for constant consumed by std::string 2023-07-20 21:39:06 +04:00
linux_xdp_open_with_dialog.h
main_window_linux.cpp Use new glibmm 2.78 API 2023-07-20 17:58:07 +04:00
main_window_linux.h Update icons when icon theme on Linux changes 2023-05-29 11:07:19 +04:00
notifications_manager_linux.cpp Avoid using const_string for constant consumed by std::string 2023-07-20 21:39:06 +04:00
notifications_manager_linux.h One more attempt to fix DND on macOS. 2023-03-15 15:00:29 +04:00
org.freedesktop.portal.Inhibit.xml Implement screen locker monitor on Linux 2023-05-15 09:51:13 +04:00
overlay_widget_linux.h Initial implementation of windowed media viewer on macOS. 2023-02-18 15:10:13 +04:00
specific_linux.cpp Stabilize app id on Linux when -workdir is set to the default workdir 2023-07-24 10:37:38 +04:00
specific_linux.h Cmd+Q quit prevention in windowed media viewer. 2023-02-18 15:10:13 +04:00
tray_linux.cpp Set device pixel ratio for counter layer 2023-04-04 10:07:51 +04:00
tray_linux.h