App name fixes
This commit is contained in:
parent
c9dc0bf115
commit
0ec634cfb3
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue