This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin Custom Actions:Launching Multiple Instances

Tags: None
(comma "," separated)
legodude
Registered Member
Posts
2
Karma
0
Hi Everyone,
I wanted a quick way to resize images from within Dolphin so I wrote on that is supposed to be launched by a custom action(think MS image resize powertoy if you are familiar). The applet is now functioning and I can call it from the commandline with the names of images as arguments and it functions as I intended it. The problem comes when I try to write a custom action, rather than launch one instance of the app with selected images as arguments, Dolphin will launch one instance for each image selected. I'm not sure what is going on or how to even go about debugging this. I've included my action below.
Code: Select all
/home/legodude/.kde/share/kde4/services/resize.desktop


Code: Select all
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=KonqPopupMenu/Plugin,image/*
Type=Service
Actions=resize;
TryExec=/home/legodude/development/KDE-Resize/build/KDE-Resize

[Desktop Action resize]
Name=Resize Images
Icon=ksplash
Exec=/home/legodude/development/KDE-Resize/build/KDE-Resize %f


I can't even find proper docs to describe what this file should look like, just some other examples floating around. Any help would be greatly appreciated.
thanks
*mike
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Try changing %f to %F in the Exec line.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
legodude
Registered Member
Posts
2
Karma
0
bcooksley wrote:Try changing %f to %F in the Exec line.


Perfect, that's one of those things that I would have never figured out on my own.

Thanks so much
*mike


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]