Description: This is a "containment action" (mouse action) plugin for the KDE Plasma Desktop (KDE SC 4.4 or newer).
With this plugin, you can configure a mouse button click to invoke a menu with your favorite applications.
Instead of listing all applications, it only lists the Kickoff favorite applications. The code is written by Chani Armitage, I only modified it slightly to parse the favorites.Last changelog:
0.2 fixes invokation on right mouse button click with KDE SC 4.6.
your plugin looks exactly what i want. i've gotten so used to Enlightenment's favorites menu.
But...
in opensuse 13.1/.2 i can not find kdelibs5-devel.
not even libs4-devel... libs3-devel, yes.
There is NO kdelibs5-devel Anywhere, for any distro
I've Never been successful building an app from source. I want this one to work.
Landis.
cmake output:
[code]
# cmake -DCMAKE_INSTALL_PREFIX='kde4-config --prefix' ..
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:111 (message):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.0)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!
See also "/home/landis/Working02/containmentaction-favorites-0.2/build/CMakeFiles/CMakeOutput.log".
[/code]
Landis.
Please, any help.
I found and installed (thought i'd give it a try), libskde4-devel ( 'base files for building kde applications' )..
DaDa... built just fine.
thanks.
Landis.
OK, the build and make install completed without error.
I restarted my system and there is No 'favorites' option in default desktop > mouse actions. only the original 'standard menu', switch desktop etc, launcher choices.
Any ideas please.
i have, in the build folder a plasma_containmentactions_favorites.so file.
everything seems to work. no errors.
Thanks,
Landis.
I cloned the git repo.
build (cmake)
make install.
[code]
Installing: /home/landis/bin/containmentaction-favorites/build/kde4-config-prefix/share/kde4/services/plasma-containmentactions-favorites.desktop
[/code]
i look in ~/.kde4/share/kde4/services/
no 'plasma-containmentactions-favorites.desktop' file.
the only 'changed' file is: plasma-applet-appmenu-qml.desktop - not it, eh.
It looks like you did not use the correct back-ticks to put the kde4-config command into the cmake invocation.
Try this:
git clone git://anongit.kde.org/scratch/cfeck/containmentaction-favorites.git
cd containmentaction-favorites
mkdir build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make install/fast
Then restart session.
containmentaction-favorites-0.2/launch.cpp: In member function ‘virtual void FavoritesLauncher::contextEvent(QEvent*)’:
containmentaction-favorites-0.2/launch.cpp:57:53: error: ‘popupPosition’ was not declared in this scope
Slackware 13.37, KDE 4.5.5, gcc 4.5.2
Hi,
good stuff, it works for me when I
cmake . && make && make install
cp /usr/local/share/kde4/services/plasma-containmentactions-favorites.desktop /usr/share/kde4/services
cp /usr/local/lib64/kde4/plasma_containmentactions_favorites.so /usr/lib64/kde4/
in other words, please install to kde4-config --path services, not to /usr/local/share/kde4/services
Sadly I can't get this to work anymore, running Arch and KDE 4.8. It installs fine but when activated all that ever pulls up is the "Desktop Settings" listing instead of any favorites.
I really miss this functionality!
It doesn't seem to like wine-programs. Everything in my kickoff favourites show up using this plugin EXCEPT the two wine-programs: Photoshop and Spotify.
The two programs run fine from kickoff though.
That's how they look, yes. This is what spotify looks like:
/home/username/
.local/share/applications/wine/Programs/Spotify.desktop
And the .desktop file looks normal as well.
Like this:
[Desktop Entry]
Name=Spotify
Exec=env WINEPREFIX="/home/username/.wine" wine "C:\\Program Files\\Spotify\\spotify.exe"
Type=Application
StartupNotify=true
Path=/home/username/.wine/dosdevices/c:/Program Files/Spotify
Icon=/home/username/.local/share/icons/bdbf_spotify.0.png
I was hoping someone would make such a plugin, and I was rather surprised it wasn't included by default to be honest!
Anyhow, that's now taken care of! Thanks a lot!
Ratings & Comments
22 Comments
your plugin looks exactly what i want. i've gotten so used to Enlightenment's favorites menu. But... in opensuse 13.1/.2 i can not find kdelibs5-devel. not even libs4-devel... libs3-devel, yes. There is NO kdelibs5-devel Anywhere, for any distro I've Never been successful building an app from source. I want this one to work. Landis. cmake output: [code] # cmake -DCMAKE_INSTALL_PREFIX='kde4-config --prefix' .. CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:111 (message): ERROR: cmake/modules/FindKDE4Internal.cmake not found in /root/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps Call Stack (most recent call first): CMakeLists.txt:4 (find_package) CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.0) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring incomplete, errors occurred! See also "/home/landis/Working02/containmentaction-favorites-0.2/build/CMakeFiles/CMakeOutput.log". [/code] Landis. Please, any help.
I found and installed (thought i'd give it a try), libskde4-devel ( 'base files for building kde applications' ).. DaDa... built just fine. thanks. Landis.
OK, the build and make install completed without error. I restarted my system and there is No 'favorites' option in default desktop > mouse actions. only the original 'standard menu', switch desktop etc, launcher choices. Any ideas please. i have, in the build folder a plasma_containmentactions_favorites.so file. everything seems to work. no errors. Thanks, Landis.
I cloned the git repo. build (cmake) make install. [code] Installing: /home/landis/bin/containmentaction-favorites/build/kde4-config-prefix/share/kde4/services/plasma-containmentactions-favorites.desktop [/code] i look in ~/.kde4/share/kde4/services/ no 'plasma-containmentactions-favorites.desktop' file. the only 'changed' file is: plasma-applet-appmenu-qml.desktop - not it, eh.
It looks like you did not use the correct back-ticks to put the kde4-config command into the cmake invocation. Try this: git clone git://anongit.kde.org/scratch/cfeck/containmentaction-favorites.git cd containmentaction-favorites mkdir build cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` .. make sudo make install/fast Then restart session.
Forgot "cd build" after "mkdir build".
containmentaction-favorites-0.2/launch.cpp: In member function ‘virtual void FavoritesLauncher::contextEvent(QEvent*)’: containmentaction-favorites-0.2/launch.cpp:57:53: error: ‘popupPosition’ was not declared in this scope Slackware 13.37, KDE 4.5.5, gcc 4.5.2
http://quickgit.kde.org/?p=scratch/cfeck/containmentaction-favorites.git v0.1 tag
Thanks! v. 0.1 OK
Why this is not in the default SC? It really should!
Hi, Is it possible to get something like this but for browser bookmarks?
Hi, good stuff, it works for me when I cmake . && make && make install cp /usr/local/share/kde4/services/plasma-containmentactions-favorites.desktop /usr/share/kde4/services cp /usr/local/lib64/kde4/plasma_containmentactions_favorites.so /usr/lib64/kde4/ in other words, please install to kde4-config --path services, not to /usr/local/share/kde4/services
Unless you tell cmake where to install, it will always default to /usr/local Use cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
Sadly I can't get this to work anymore, running Arch and KDE 4.8. It installs fine but when activated all that ever pulls up is the "Desktop Settings" listing instead of any favorites. I really miss this functionality!
Are you sure you are using version 0.2? It works fine here, even when configured to use the RMB.
You're right, I wasn't paying attention and was using the older version. Version 2 is working fine. Thanks!
Working fine with the Kubuntu Lucid (alpha-1). Thank you of fine plugin.
It doesn't seem to like wine-programs. Everything in my kickoff favourites show up using this plugin EXCEPT the two wine-programs: Photoshop and Spotify. The two programs run fine from kickoff though.
Forgot to mention: they show up in Chani's original "Application launcher" plugin.
How do these entries appear in .kde/share/config/kickoffrc? Usually it is /path/to/name.desktop, but might be different for wine apps.
That's how they look, yes. This is what spotify looks like: /home/username/ .local/share/applications/wine/Programs/Spotify.desktop And the .desktop file looks normal as well. Like this: [Desktop Entry] Name=Spotify Exec=env WINEPREFIX="/home/username/.wine" wine "C:\\Program Files\\Spotify\\spotify.exe" Type=Application StartupNotify=true Path=/home/username/.wine/dosdevices/c:/Program Files/Spotify Icon=/home/username/.local/share/icons/bdbf_spotify.0.png
I was hoping someone would make such a plugin, and I was rather surprised it wasn't included by default to be honest! Anyhow, that's now taken care of! Thanks a lot!