From 0ec634cfb39aa718c920e8ae5c9137b9e3e93838 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Mon, 20 Sep 2021 19:43:09 +0300 Subject: [PATCH] App name fixes --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 1f6da3214..dcdb78432 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -84,7 +84,7 @@ constexpr auto kDarkColorLimit = 192; constexpr auto kXDGDesktopPortalService = "org.freedesktop.portal.Desktop"_cs; constexpr auto kXDGDesktopPortalObjectPath = "/org/freedesktop/portal/desktop"_cs; constexpr auto kIBusPortalService = "org.freedesktop.portal.IBus"_cs; -constexpr auto kWebviewService = "org.telegram.desktop.GtkIntegration.WebviewHelper-%1-%2"_cs; +constexpr auto kWebviewService = "io.github.kotatogram.GtkIntegration.WebviewHelper-%1-%2"_cs; #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION void PortalAutostart(bool start, bool silent) { @@ -320,7 +320,7 @@ bool GenerateDesktopFile( fileText = fileText.replace( QRegularExpression( - qsl("^Exec=telegram-desktop(.*)$"), + qsl("^Exec=kotatogram-desktop(.*)$"), QRegularExpression::MultilineOption), qsl("Exec=%1 -workdir %2\\1").arg( EscapeShellInLauncher(cExeDir() + cExeName()), @@ -598,14 +598,14 @@ void HaikuAutostart(bool start) { return; } - QFile file(home + "/config/settings/boot/launch/telegram-desktop"); + QFile file(home + "/config/settings/boot/launch/kotatogram-desktop"); if (start) { if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { QTextStream out(&file); out << "#!/bin/bash" << Qt::endl << "cd /system/apps" << Qt::endl - << "./Telegram -autostart" << " &" << Qt::endl; + << "./Kotatogram -autostart" << " &" << Qt::endl; file.close(); file.setPermissions(file.permissions() | QFileDevice::ExeOwner