| 8 | static Q_LOGGING_CATEGORY(log, "Plugin.Hook.Desktop.Shortcut") |
| 9 | |
| 10 | CDesktopShortcutManager::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 | |
| 22 | CDesktopShortcutManager::~CDesktopShortcutManager() |
| 23 | { |
nothing calls this directly
no outgoing calls
no test coverage detected