MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CDesktopShortcutManager

Method CDesktopShortcutManager

Src/Unix/DesktopShortcuts.cpp:10–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8static Q_LOGGING_CATEGORY(log, "Plugin.Hook.Desktop.Shortcut")
9
10CDesktopShortcutManager::CDesktopShortcutManager(QObject *parent)
11 : QObject(parent)
12{
13 m_desktopEnv = detectDesktopEnvironment();
14 qDebug(log) << "Desktop environment:" << m_desktopEnv;
15
16 // 设置备份路径
17 QString tempDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
18 m_gnomeBackupPath = tempDir + "/gnome_shortcuts_backup.conf";
19 m_kdeBackupPath = tempDir + "/kde_shortcuts_backup.conf";
20}
21
22CDesktopShortcutManager::~CDesktopShortcutManager()
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected