Ubuntu:16.04.2 LTS
问:如何将“新终端”添加到桌面右键菜单?
有关该问题的更多详细信息。
常用的无效策略是:“将收藏夹启动器添加到鼠标操作”。但是,在最新的 Kubuntu 中,“收藏夹启动器”不再是一个选项。
参见下图。
因此我尝试通过此网站安装收藏夹启动器插件: https://addons.videolan.org/p/1081011
但是,上述插件存在编译器错误,并且在 Kubuntu 软件中心搜索时找不到该插件(在 Kubuntu 中称为发现)。
我还可以尝试什么?
答案1
KDE 鼠标/控制操作插件
( 备份https://forum.kde.org/viewtopic.php?f=83&t=132075#p354748)
等离子4
教程 - KDE Techbase - 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 Store - 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 模块
- qtbase5-dev
- 等离子框架开发
- kio-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
位于 /Downloads/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”并按回车键来了解您正在使用的 Plasma 版本。一个漂亮的 GUI 将显示您需要的所有信息。