庫本圖:16.04.2 LTS
Q:如何將「新終端」新增至桌面右鍵選單?
有關問題的更多詳細資訊。
不起作用的常見策略:「將收藏啟動器新增至滑鼠操作」。然而,在最新的 Kubuntu 中,「收藏啟動器」不再是一個選項。
見下圖。
所以我嘗試透過此網站安裝收藏啟動器插件: https://addons.videolan.org/p/1081011
但是,上述插件存在編譯錯誤,並且在 Kubuntu 軟體中心(Kubuntu 中稱為 Discover)中搜尋時,該插件不存在。
我還可以嘗試哪些事情?
答案1
KDE 滑鼠/Containment 動作插件
( 備份https://forum.kde.org/viewtopic.php?f=83&t=132075#p354748)
等離子4
教程 - KDE 技術庫 - Plasma4 ContainmentAction:https://techbase.kde.org/Development/Tutorials/Plasma4/ContainmentAction
KDE商店
- 收藏啟動器:https://store.kde.org/p/1081011/
- KDE桌面自訂選單: https://store.kde.org/content/show.php/+kde-desktop-custom-menu?action=content&content=170062
等離子5
KDE 商店 - Plasma 自訂桌面選單:https://store.kde.org/p/998904/ --> 來源:https://github.com/MatMoul/plasma-containmentactions-customdesktopmenu
使用 Kubuntu 和 Plasma 5
從下列位置下載plasma-containmentactions-customdesktopmenu-master.ziphttps://github.com/MatMoul/plasma-containmentactions-customdesktopmenu
安裝建置依賴項:
- 建構必需的
- cmake
- 額外的 cmake 模組
- qtbase5-dev
- 等離子框架開發
- 基奧開發公司
通用命令:
mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
sudo make install
建置範例:
解壓縮plasma-containmentactions-customdesktopmenu-master.zip
在/下載/plasma-containmentactions-customdesktopmenu-master/src
$ mkdir -p builddir
$ cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found KF5Plasma: /usr/lib/x86_64-linux-gnu/cmake/KF5Plasma/KF5PlasmaConfig.cmake (found version "5.33.0")
-- Found KF5KIO: /usr/lib/x86_64-linux-gnu/cmake/KF5KIO/KF5KIOConfig.cmake (found version "5.33.0")
-- Found KF5: success (found version "5.33.0") found components: Plasma KIO
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tryme/Downloads/plasma-containmentactions-customdesktopmenu-master/src/builddir
$ make
Scanning dependencies of target plasma_containmentactions_customdesktopmenu_automoc
[ 20%] Generating plasma-containmentactions-customdesktopmenu.json
About to parse service type file "plasma-containmentactions.desktop"
Found property definition "X-Plasma-HasConfigurationInterface" with type "bool"
Generated "/home/tryme/Downloads/plasma-containmentactions-customdesktopmenu-master/src/builddir/plasma-containmentactions-customdesktopmenu.json"
[ 40%] Automatic moc for target plasma_containmentactions_customdesktopmenu
Generating customdesktopmenu.moc
Generating moc_customdesktopmenu.cpp
[ 40%] Built target plasma_containmentactions_customdesktopmenu_automoc
Scanning dependencies of target plasma_containmentactions_customdesktopmenu
[ 60%] Building CXX object CMakeFiles/plasma_containmentactions_customdesktopmenu.dir/customdesktopmenu.cpp.o
[ 80%] Building CXX object CMakeFiles/plasma_containmentactions_customdesktopmenu.dir/plasma_containmentactions_customdesktopmenu_automoc.cpp.o
[100%] Linking CXX shared module plasma_containmentactions_customdesktopmenu.so
[100%] Built target plasma_containmentactions_customdesktopmenu
$ sudo make install
[sudo] password for tryme:
[ 20%] Automatic moc for target plasma_containmentactions_customdesktopmenu
[ 40%] Built target plasma_containmentactions_customdesktopmenu_automoc
[100%] Built target plasma_containmentactions_customdesktopmenu
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma_containmentactions_customdesktopmenu.so
-- Installing: /usr/share/kservices5/plasma-containmentactions-customdesktopmenu.desktop
答案2
以下最初是問題的一部分,現已移至 CW
特別感謝 user26687 提供了可行的解決方案。使用「收藏夾啟動器」的常見策略不適用於最新的 Kubuntu(詳細資訊請參閱下文)。以下是解決此問題所採取的步驟的摘要,以及我學到的一些可能對其他人有幫助的其他內容:
- 安裝依賴項:
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install extra-cmake-modules
sudo apt-get install qtbase5-dev
sudo apt-get install plasma-framework-dev
sudo apt-get install kio-dev
預設安裝位置位於 中~/Downloads
,因此您可能需要執行以下命令:
cd ~/Downloads
unzip plasma-containmentactions-customdesktopmenu-master.zip
cd plasma-containmentactions-customdesktopmenu-master/src
- 安裝“自訂桌面選單”
mkdir -p builddir
cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
make
sudo make install
現在將有一個「自訂桌面選單」。 “桌面設定”可以透過以下三種方式之一開啟:右鍵單擊桌面,然後按一下“配置桌面”,或按一下桌面上的任何位置,然後按一下Ctrl+ s+ D,或按一下左上角的小線,然後按一下“桌面設定” ”。請注意,一旦您使用自訂選單,第一個選項就會消失。
進入桌面設定後,點擊左側的“滑鼠操作”,然後點擊“右鍵”下拉選單並選擇“自訂桌面選單”。請注意,其右側有一個“配置”按鈕,該按鈕將顯示一些文本,您可以根據自己對自訂選單的需求進行修改。弄清楚配置部分並不難,但如果您需要幫助,請告訴我。
6)學到的其他東西:我不知道“KDE Plasma”,但是您可以透過點擊左下角的選單按鈕,輸入“kinfocenter”並按 Enter 鍵來確定您正在使用的 Plasma 版本。一個漂亮的 GUI 會提供您所需的所有資訊。