Adding new "Actions" to konqueror?

This is a discussion on Adding new "Actions" to konqueror? within the Linux General forums, part of the Linux Forums category; I would like to add some new actions to the "Actions"-submenu (choice when right-clicking on file/...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-19-2007
Koppe74
 
Posts: n/a
Default Adding new "Actions" to konqueror?

I would like to add some new actions to the "Actions"-submenu
(choice when right-clicking on file/files) to the konqueror
filebrowser.
If it's possible, it would perhaps be better suited to be placed
under
the "Compress"-submenu.

As far as I can tell, Actions are .desktop-files stored in
share/apps/konqueror/servicemenus/* (either in the global or
per-user KDE-directory), specifying a command to "Exec" and a list
of filetypes that can use (or should be excluded from) this action.

I would like to define a new actions that works a bit like the
"Compress to Folder" action in Window$; that is take a list of
files -- and/or one or more directories (though it may be better
to make seperate actions for those cases) -- and make a tar.bz2
archive of them, with the name of one of the files/folders (first
or last) with ".tar.bz2" added.

The important thing, is that I need to...
-add multiple files (and folders)
-don't have to specify a name for the archive
-don't have fumble with some dialouge (the archive is
just created without further prompting)

The built-in Actions/Archive seems to either make a seperate
archive for each file (when multiple files are selected), or
start karchiver and needs a name for the new archive.

I've made some fledgling attempts, but apparently my
..desktop-files were not valid. I couldn't find anything in the
konqueror documentation; so if anybody could point me to
a place were .desktop-files are described (especially the
various codes that are substituted for selected file(s) in
the Exec-specification), or to where I can read more about
making my own Actions for konqueror.

Using 'tar' should be sufficient. The problem is to get konqueror
to pass the list of selected files in a manner 'tar' can use (e.g.
just
filenames (not paths) and perhaps with whitespaces quoted), and
to pick a name for the archive (from the file-list).

Any ideas would be greatly appriciated, because I'm totally stuck...
-Koppe

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0