: Konqueror "right-click" menu customization

: Konqueror "right-click" menu customization

Post by Lean » Wed, 24 Jul 2002 18:37:24


Dear all,

I am sorry that I do not know if what I want to do need to modify the
source code and I do not know whether
I should post here.  Could you kindly forward to the correct mailing
list if I am wrong here. Thanks.

When opening the Konqueror, I would like to do:

1 a).  select a file, or
1 b).  select a list of files/directories

2) right-click them, a right-click menu is shown with some options.  
 e.g. for *.tgz there are options "Archiver", "Preview with Archiver",
"Extract here"

 I want to add myself a new option "zip to ..." and submenu will be
"'filename'.zip" and "new zip".

3) after choosing "'filename'.zip", I want the file/ collections of
files and directories zipped and then opened
  with Archiver

Difficulites:
i) I can add my own new option "myoption" associated with some files
extension;
it is in /usr/share/konqueror/servicemenus/ add a file
myoptionservicemenu.desktop;
But actually I want all types of files can be zipped.
 When I tried:

 [Desktop Entry]
 ServiceTypes=all/all,all/allfiles

 I can not do what I want.

ii)How can I add my own option on the right-click menu when user
selectd a list of files/directories instead of one file?

iii) I can now create a new option when 1 file is selected and
right-clicked; how can I create a submenu
   zip -> gzip
         -> unzip
  first create "zip" and further user can select whether use gzip or
unzip (for example)?

iv) to compress the selected files and directories;  since I will
further call ark to open the zip file;
  I will write my own script to do 2 things, zip them and call ark to
open the zip file.
  So, I need to pass the names of the files and directories into my
script,  any idea?

I have searched for a while but can not get the answer, hope anybody
could help.  I want to know if I need to modify the source code?

Thanks very much.

Leanne

 
 
 

: Konqueror "right-click" menu customization

Post by Rolf Magnu » Wed, 24 Jul 2002 19:19:59



>  [Desktop Entry]
>  ServiceTypes=all/all,all/allfiles

>  I can not do what I want.

For the service type list, try just:

ServiceTypes=allfiles

About the other questions, I don't know.

 
 
 

: Konqueror "right-click" menu customization

Post by Lean » Thu, 25 Jul 2002 11:21:19




> >  [Desktop Entry]
> >  ServiceTypes=all/all,all/allfiles

> >  I can not do what I want.

> For the service type list, try just:

> ServiceTypes=allfiles

> About the other questions, I don't know.

Thanks for your kind help.
Using the above setting, when I select a list of files+directories and
right-click them, I can see my own option active.  

But how can I add submenu?
e.g. my own option is "zip to..."
         suboption is "'filename'.zip"
         suboption is "new zip file"

also, what I want to do further is, if the user only
selects 1 file or 1 directory, I will use the directory/file name
as the zip file name "'filename'.zip".  How can I get that parameter?

 
 
 

: Konqueror "right-click" menu customization

Post by Kevin Kramme » Thu, 25 Jul 2002 23:49:24






>> >  [Desktop Entry]
>> >  ServiceTypes=all/all,all/allfiles

>> >  I can not do what I want.

>> For the service type list, try just:

>> ServiceTypes=allfiles

>> About the other questions, I don't know.

> Thanks for your kind help.
> Using the above setting, when I select a list of files+directories and
> right-click them, I can see my own option active.

There is a new tutorial for creating service menus:
http://dot.kde.org/1027447529/

Quote:> also, what I want to do further is, if the user only
> selects 1 file or 1 directory, I will use the directory/file name
> as the zip file name "'filename'.zip".  How can I get that parameter?

I think that's %f
%F should be a lit of files
%u an URL
%U a list of URLs

See
http://www.freedesktop.org/standards/desktop-entry-spec.html

Cheers,
Kevin

--

Student at Graz University of Technology
http://www.sbox.tu-graz.ac.at/home/v/voyager

 
 
 

1. KFM right-click / "Send to..."

How can I add entries to the KFM right-click menu?
I want to have a smaller "Send to..." menu than the very large "Open
with" option.
Also, I want to add other functions such as checking directory sizes or
tailing a file.
Which file can I edit to modify this?
I have gone through the FAQs and various sources without finding a
useful recipe.

Sent via Deja.com http://www.deja.com/
Before you buy.

2. need help with a firewall script

3. GETSERVBYNAME()????????????????????"""""""""""""

4. St. Louis monthly meeting

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. CDE Mail question

7. USB 1 button Mouse...Need to "Right Click"???

8. Using ARP protocol with solaris

9. menu cleanup: "Networking support" -> "Networking options"

10. Type "(", ")" and "{", "}" in X...

11. How to modify right-click desktop menu?

12. Mouse right-click on desktop: how to modify pop-up menu?

13. Adding new app. in the right-click menu(X)??