2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Use argv0 for shortcuts when updater is disabled

This commit is contained in:
Ilya Fedin
2023-06-16 00:15:23 +04:00
committed by John Preston
parent 8aee08eaef
commit 1d234ea990
5 changed files with 28 additions and 16 deletions

View File

@@ -1762,9 +1762,7 @@ void Application::startShortcuts() {
void Application::RegisterUrlScheme() {
base::Platform::RegisterUrlScheme(base::Platform::UrlSchemeDescriptor{
.executable = (!Platform::IsLinux() || !Core::UpdaterDisabled())
? (cExeDir() + cExeName())
: cExeName(),
.executable = Platform::ExecutablePathForShortcuts(),
.arguments = Launcher::Instance().customWorkingDir()
? u"-workdir \"%1\""_q.arg(cWorkingDir())
: QString(),