mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Try to restore updater-dependent binary path logic
Now that the file generating logic is simplier, it may be not that hard to maintain
This commit is contained in:
@@ -1730,7 +1730,9 @@ void Application::startShortcuts() {
|
||||
|
||||
void Application::RegisterUrlScheme() {
|
||||
base::Platform::RegisterUrlScheme(base::Platform::UrlSchemeDescriptor{
|
||||
.executable = cExeDir() + cExeName(),
|
||||
.executable = (!Platform::IsLinux() || !Core::UpdaterDisabled())
|
||||
? (cExeDir() + cExeName())
|
||||
: cExeName(),
|
||||
.arguments = Sandbox::Instance().customWorkingDir()
|
||||
? u"-workdir \"%1\""_q.arg(cWorkingDir())
|
||||
: QString(),
|
||||
|
Reference in New Issue
Block a user