KLauncher problem: can't pass parameters using dcopstart

David Faure david at mandrakesoft.com
Tue Sep 17 20:40:25 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 17 September 2002 22:04, Alexander Neundorf wrote:
> Hi,
> 
> I tried 
> "dcopstart konqueror --geometry 400x200+100+100"
> but it doesn't work.
> The reason lies in klauncher.cpp in start_service():
> 
>    if ((urls.count() > 1) && !service->allowMultipleFiles())

This should only be triggered if the service doesn't have %F, %U, %D or %N
in its exec line. This is not the case for konqueror... oh wait, it is.
Does it work better if you use %U instead of %u in konqueror.desktop ?
I'll change that anyway, since konqueror supports multiple urls on the
command line.

You're right though, urls is determined wrongly, and this could affect other apps.
This code is taken from KRun, where the args are indeed URLs. In KLauncher 
they could be anything. (-> reassigning to Waldo ;)

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9h4Up72KcVAmwbhARAqgxAJ9d04FtCkXw1bYyrrlRYbjixcFLwwCeOBa+
A3AA9tWAOA3zg9OJKBS7/YU=
=HZWl
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list