Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/telegram/telegramplugin.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 49 | if(url.isLocalFile()) { | |||
---|---|---|---|---|---|
50 | ret += KShell::quoteArg(url.toLocalFile()); | 50 | ret += KShell::quoteArg(url.toLocalFile()); | ||
51 | } | 51 | } | ||
52 | } | 52 | } | ||
53 | return ret; | 53 | return ret; | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | void start() override | 56 | void start() override | ||
57 | { | 57 | { | ||
58 | for (const QString &desktopFile: {QStringLiteral("org.telegram.desktop.desktop"), QStringLiteral("telegramdesktop.desktop") }) { | 58 | for (const QString &desktopFile: {QStringLiteral("org.telegram.desktop.desktop"), QStringLiteral("telegramdesktop.desktop"), QStringLiteral("telegram-desktop.desktop") }) { | ||
59 | const auto path = QStandardPaths::locate(QStandardPaths::ApplicationsLocation, desktopFile); | 59 | const auto path = QStandardPaths::locate(QStandardPaths::ApplicationsLocation, desktopFile); | ||
60 | if (!path.isEmpty()) { | 60 | if (!path.isEmpty()) { | ||
61 | useDesktopFile(path); | 61 | useDesktopFile(path); | ||
62 | return; | 62 | return; | ||
63 | } | 63 | } | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | //Failed to find the application | 66 | //Failed to find the application | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |