imported>ThorstenStaerk |
imported>ThorstenStaerk |
(5 intermediate revisions by the same user not shown) |
Line 5: |
Line 5: |
| How to edit it highly depends on your desktop environment. | | How to edit it highly depends on your desktop environment. |
| | | |
− | See /usr/share/kde4/services/plasma-containmentactions-contextmenu.desktop
| + | = KDE = |
− | | + | This plugin adds a new KDE context menu: http://www.staerk.de/thorsten/kde-contextmenu |
− | tweedleburg:~/.kde4/share/config # diff plasma-desktop-appletsrc~ plasma-desktop-appletsrc
| |
− | 3d2
| |
− | < wheel:Vertical;NoModifier=switchdesktop
| |
− | tweedleburg:~/.kde4/share/config # cd /usr/share/kde4/services
| |
− | tweedleburg:/usr/share/kde4/services # grep -ir "switchdesktop" *
| |
− | plasma-containmentactions-switchdesktop.desktop:X-KDE-Library=plasma_containmentactions_switchdesktop
| |
− | plasma-containmentactions-switchdesktop.desktop:X-KDE-PluginInfo-Name=switchdesktop
| |
− | tweedleburg:/usr/share/kde4/services # grep -ir "contextmenu" *
| |
− | plasma-containmentactions-contextmenu.desktop:X-KDE-Library=plasma_containmentactions_contextmenu
| |
− | plasma-containmentactions-contextmenu.desktop:X-KDE-PluginInfo-Name=contextmenu
| |
− | plasma-containmentactions-minimalcontextmenu.desktop:X-KDE-Library=plasma_containmentactions_minimalcontextmenu
| |
− | plasma-containmentactions-minimalcontextmenu.desktop:X-KDE-PluginInfo-Name=minimalcontextmenu
| |
− | | |
− | = chat =
| |
− | # ls contextmenu/
| |
− | CMakeLists.txt Messages.sh menu.cpp menu.h plasma-containmentactions-contextmenu.desktop
| |
− | * can't write containmentactions in javascript
| |
− | | |
− | it is a beginner's question and can go directly into your tutorial
| |
− | salout_ (~rriemann@dslb-088-074-213-128.pools.arcor-ip.net) has quit (Ping timeout: 246 seconds)
| |
− | what can I write in the .desktop file behind ServiceTypes?
| |
− | forums are down?
| |
− | or how can I find out?
| |
− | fosterfeld__ (~frank@business-213-023-163-030.static.arcor-ip.net) has joined #kde-devel
| |
− | zenguy_pc: yeah, servers went down today. sysadmin is aware and working on it
| |
− | tstaerk: ls `kde4-config --prefix`/share/kde4/servicetypes
| |
− | tstaerk: each of those files defines a service type
| |
− | fosterfeld_ (~frank@business-213-023-163-030.static.arcor-ip.net) has quit (Ping timeout: 272 seconds)
| |
− | ascarpino: ok thanks
| |
− | wow, suddenly this makes sense :)
| |
− | grep X-KDE-ServiceType `kde4-config --prefix`/share/kde4/servicetypes/* | grep -i plasma
| |
− | heath (quassel@2600:3c02::f03c:91ff:feae:6e5b) has quit (Changing host)
| |
− | heath (quassel@unaffiliated/ybit) has joined #kde-devel
| |
− | that will get you all the plasma related ones
| |
− | | |
− | = Questions =
| |
− | * why can't I
| |
− | plasmoidviewer contextmenu
| |
− | : while i can use the contextmenu in .kde4/share/config/plasma-desktop-appletsrc
| |
− | * why can't I use charselect in .kde4/share/config/plasma-desktop-appletsrc
| |
− | : while I can
| |
− | plasmoidviewer charselect
| |
− | * seems this is determined by the type. One has
| |
− | ServiceTypes=Plasma/ContainmentActions
| |
− | the other
| |
− | ServiceTypes=Plasma/Applet
| |
− | * hm... do ContainmentActions need an init function to work? And in case of javascript Applets, just the javascript code is executed and an init function is not needed?
| |
| | | |
| = See also = | | = See also = |
Line 61: |
Line 14: |
| * http://kde-apps.org/content/show.php?content=117639 | | * http://kde-apps.org/content/show.php?content=117639 |
| * http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/GettingStarted | | * http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/GettingStarted |
| + | * [http://quickgit.kde.org/?p=kde-workspace.git&a=tree&h=3323d310c236dbefe44a75da771d65a5b251b129&hb=d204b5aeb73bde509bc9ae9bf379b076fb4ae6fa&f=plasma%2Fgeneric%2Fcontainmentactions%2Fcontextmenu KDE's context menu's source code] |