Fix build without dbus

This commit is contained in:
Ilya Fedin 2021-03-21 08:19:56 +04:00 committed by John Preston
parent a82d1e863e
commit 9f6f7f7c9b
1 changed files with 2 additions and 0 deletions

View File

@ -754,10 +754,12 @@ void InstallLauncher(bool force) {
void RegisterCustomScheme(bool force) { void RegisterCustomScheme(bool force) {
try { try {
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
if (InSnap()) { if (InSnap()) {
SnapDefaultHandler(qsl("tg")); SnapDefaultHandler(qsl("tg"));
return; return;
} }
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
if (cExeName().isEmpty()) { if (cExeName().isEmpty()) {
return; return;