trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

konqueror /servicemenu app - perhaps a good reference for other extensions

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 02 Apr 2012 10:23:58 -0500
All,

  Checking kde-apps for other kde3 apps that may work well with TDE, I ran
across 'Root Actions Servicemenu' which adds a root actions menu to the
konqueror context service menu. The applications added are largely duplicates of
what are provided elsewhere, but some are not. Examples:

Ownership to Root
Ownership to Active User
Ownership to ...

See: http://www.3111skyline.com/dl/dt/trinity/ss/konqueror-root-actions.jpg

  The Ownership to ..., pop up a simple dialog with an edit line to set
ownership to `user:group`. A great time-savings over:

rt-click ->
properties ->
permissions ->
Ownership -> listbox for :group (unless run as root) ->
listbox open ->
listbox select ->

  Moreover, often, you cannot set the user part of 'user:group' from the
properties dialog unless you are superuser.

  This little python script did what kde3 is known for -- it took what would be
a several button traverse across several dialogs and tabs and reduced it to a
straight-forward:

rt-click ->
select ->
enter data ->

  The value in this thing is that it can serve as a good model or 'go-by' to add
whatever you want to a TDE service menu. Now I'm not keen on the servicemenu
backend being python instead of c/c++, but it is worth a look at this thing if
you want to add a service menu to an application. The kde-apps page for this is:

http://kde-apps.org/content/show.php/Root+Actions+Servicemenu?content=48411

  Very simple implementation. 1 python script in the path catches rt-clicks,
displays the context menu and then executes the choice. The actual context menus
are provided by 3 small .desktop files that are just copied to
~/.trinity/share/apps/konqueror/servicemenus (per user) or
/opt/trinity/share/apps/konqueror/servicemenus for everyone. Roughly 60k for the
entire bundle.

  Just food for thought.

-- 
David C. Rankin, J.D.,P.E.