Difference between pages "Talk:Pxe" and "Context menus"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
 
Line 1: Line 1:
getting an error message from VirtualbOx:
+
When you right-click on your Linux desktop you get a context menu displayed. It looks like this:
FATAL: Could not read from the boot medium! System halted.
 
In the same situation the laptop says
 
Boot failed: press a key to retry, or wait for reset...
 
  
Reason: pxelinux.cfg folder was missing.
+
[[File:Snapshot-context-menu-kde-1.png]]
 +
 
 +
How to edit it highly depends on your desktop environment.
 +
 
 +
See /usr/share/kde4/services/plasma-containmentactions-contextmenu.desktop
 +
 
 +
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
 +
 
 +
= 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 =
 +
* http://try-linux.blogspot.de/2013/02/editing-context-menu.html
 +
* http://www.kde-forum.org/artikel/20502/edit-the-right-click-menu.html
 +
* http://stackoverflow.com/questions/3962298/how-to-add-an-entry-to-gnomes-context-menu
 +
* http://kde-apps.org/content/show.php?content=117639
 +
* http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/GettingStarted

Revision as of 18:16, 26 February 2013

When you right-click on your Linux desktop you get a context menu displayed. It looks like this:

Snapshot-context-menu-kde-1.png

How to edit it highly depends on your desktop environment.

See /usr/share/kde4/services/plasma-containmentactions-contextmenu.desktop

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

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