From e08672cb4986d6f9f5a53bd672f3f22e4f32b689 Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Thu, 2 Mar 2023 18:44:02 -0600 Subject: [PATCH] Fix the Lubuntu Manual shortcut behavior --- debian/changelog | 2 ++ debian/patches/add-manual.patch | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d578ed8..5e6b9c4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ pcmanfm-qt (1.2.1-0ubuntu2) lunar; urgency=medium * Make the Lubuntu Manual checkbox behave correctly (if the shortcut is present, it should be checked, if the shortcut is missing, it should be unchecked). + * Make the context menu of the Lubuntu Manual shortcut on the desktop behave + like the other special shortcuts (Home, Trash, Computer, Network). -- Aaron Rainbolt Thu, 02 Mar 2023 17:41:45 -0600 diff --git a/debian/patches/add-manual.patch b/debian/patches/add-manual.patch index 8becc4e..0d5ac79 100644 --- a/debian/patches/add-manual.patch +++ b/debian/patches/add-manual.patch @@ -222,7 +222,17 @@ Last-Update: 2022-06-16 void DesktopWindow::createTrash() { if(trashMonitor_) { return; -@@ -1297,7 +1321,8 @@ void DesktopWindow::trustOurDesktopShort +@@ -987,7 +1011,8 @@ void DesktopWindow::onFileClicked(int ty + if((fileName == QLatin1String("trash-can.desktop") && ds.contains(QLatin1String("Trash"))) + || (fileName == QLatin1String("user-home.desktop") && ds.contains(QLatin1String("Home"))) + || (fileName == QLatin1String("computer.desktop") && ds.contains(QLatin1String("Computer"))) +- || (fileName == QLatin1String("network.desktop") && ds.contains(QLatin1String("Network")))) { ++ || (fileName == QLatin1String("network.desktop") && ds.contains(QLatin1String("Network"))) ++ || (fileName == QLatin1String("lubuntu-manual.desktop") && ds.contains(QLatin1String("Lubuntu Manual")))) { + QMenu* menu = new QMenu(this); + // "Open" action for all + QAction* action = menu->addAction(tr("Open")); +@@ -1297,7 +1322,8 @@ void DesktopWindow::trustOurDesktopShort const char* execStr = isHome ? homeExec.get() : fileName == QLatin1String("trash-can.desktop") && ds.contains(QLatin1String("Trash")) ? "pcmanfm-qt trash:///" : fileName == QLatin1String("computer.desktop") && ds.contains(QLatin1String("Computer")) ? "pcmanfm-qt computer:///" :