<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Monospace'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#2e3436; background-color:#f7f7f7;">Hello Guys,<br /></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#2e3436; background-color:#f7f7f7;">I've already asked this at kde forums at the following link </span><a href="http://forum.kde.org/viewtopic.php?f=67&t=102585"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; text-decoration: underline; color:#0057ae; background-color:#f7f7f7;">http://forum.kde.org/viewtopic.php?f=67&t=102585</span></a><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#2e3436; background-color:#f7f7f7;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#2e3436; background-color:#f7f7f7;"><br /><br />Given the following plasma init script to create a very basic and kiosked KDE4 Enviroment, how can i disable unlock widgets and activity actions from the ActionPlugins ( right button Popup Menu?<br />I already know that i have to write the following keys :<br /><br />[ActionPlugins][RightButton;NoModifier]<br />_add panel=true<br />_context=true<br />_lock_screen=true<br />_logout=true<br />_run_command=false<br />_sep1=true<br />_sep2=true<br />_sep3=true<br />_wallpaper=true<br />add sibling containment=false<br />add widgets=false<br />configure=true<br />configure shortcuts=false<br />lock widgets=false<br />manage activities=false<br />remove=true<br /><br />Also i dont want to put [$i] at the plasma-desktop-appletsrc file because i have to delete this file every logon because of this problem -> </span><a href="http://forum.kde.org/viewtopic.php?f=67&t=102286"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#0068c6; background-color:#f7f7f7;">viewtopic.php?f=67&t=102286</span></a><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#2e3436; background-color:#f7f7f7;"><br />So, at every logon, i have a script that deletes ~/.kde/share/config/plasma-desktop-appletsrc<br /><br /><br />This is my 00-defaultLayout.js at share/apps/plasma-desktop/init<br /><br />var activity = new Activity("folderview");<br /><br />activity.writeConfig("ActionPluginsSource", "Local");<br />activity.writeConfig("MidButton;NoModifier", "");<br />activity.writeConfig("RightButton;NoModifier", "");<br />activity.writeConfig("wheel:Vertical;NoModifier", "");<br />activity.writeConfig("immutability", "2");<br />activity.writeConfig("locked", "true");<br /><br />var panel = new Panel("panel");<br />panel.location = "bottom";<br />panel.writeConfig("ActionPluginsSource", "Local");<br />panel.writeConfig("MidButton;NoModifier", "");<br />panel.writeConfig("RightButton;NoModifier", "");<br />panel.writeConfig("immutability", "2");<br /><br />var launcher = panel.addWidget("simplelauncher");<br />launcher.writeConfig("format", "Description");<br />launcher.writeConfig("showMenuTitles", "true");<br />launcher.writeConfig("maxRecentApps", "3");<br />launcher.writeConfig("immutability", "2");<br /><br />launcher.writeConfig("views", "RecentlyUsedApplications,RecentlyUsedDocuments,Applications,Favorites,LockScreen,Logout");<br />launcher.writeConfig("icon", "java");<br /><br />panel.addWidget("showdesktop");<br /><br />//var accesso = panel.addWidget("quickaccess");<br />//acesso.writeConfig=("url", "Desktop://");<br />//acesso.writeConfig=("icon", "folder-bookmark");<br />//acesso.writeConfig=("iconSize", "22);<br /><br />panel.addWidget("icontasks");<br /><br />systray = panel.addWidget("systemtray");<br />systray.writeConfig("DefaultAppletsAdded", "true");<br />systray.writeConfig("Share", "false");<br />systray.writeConfig("ShowApplicationStatus", "true");<br />systray.writeConfig("ShowCommunications", "false");<br />systray.writeConfig("ShowHardware", "true");<br />systray.writeConfig("ShowSystemServices", "false");<br />systray.writeConfig("ShowUnknown", "false");<br />//systray.writeConfig("alwaysShown", "'Applet' de Impressoras");<br />systray.writeConfig("hidden", "notifier,notifications");<br /><br />clock = panel.addWidget("digital-clock");<br />clock.writeConfig("showDate", "true");<br />clock.writeConfig("displayEvents", "false");<br />clock.writeConfig("dateStyle", "4");<br />clock.writeConfig("displayHolidays", "true");<br />clock.writeConfig("holidaysRegions", "pt_pt");<br />clock.writeConfig("holidaysRegionsDaysOff", "pt_pt");<br /><br />Xiqueiro = panel.addWidget("trash");<br />Xiqueiro.writeConfig("immutability", "2");<br /><br />ByeBye = activity.addWidget("py-cashew");<br />ByeBye.writeConfig("geometry", "396,161,200,200");<br />ByeBye.writeConfig("immutability", "2");<br /><br />Thanks for any help guys,<br />just want to script the ActionPlugins rightbutton, but i can't seem to manage the way to do it.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">kind regards,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">hteles</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">eM@il   : helmer dot teles at google mail servers</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Web Page: http://hteles.wordpress.com</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p></body></html>