[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    krun question (related to bug #57133)
From:       Christophe Delaere <delaere () fynu ! ucl ! ac ! be>
Date:       2003-08-13 16:51:30
[Download RAW message or body]

Hi,

Trying to solve the kbiff bug #57133, we are facing a problem with KRun, 
affecting all the external commands executed in that piece of code.
The commands are executed that way:

void KBiff::executeCommand(const QString& command)
{    KRun::runCommand(command);   }

with command containing a binary from path, a shell or a desktop file.
Only binaries are working, BUT: 
if the binary is not in the path, there are lots of warnings :
Invalid entry (missing ']') at /home/delaere/FYNU/ALEPH/AlVisu/AlVisu:1
Invalid entry (missing '=') at /home/delaere/FYNU/ALEPH/AlVisu/AlVisu:3
Invalid entry (missing '=') at /home/delaere/FYNU/ALEPH/AlVisu/AlVisu:4
Invalid entry (missing '=') at /home/delaere/FYNU/ALEPH/AlVisu/AlVisu:5
...
nevertheless it runs. If the command is in the path (kmail, gimp, ...) it runs 
perfectly without warning.
For a shell it tries to interpret it gives the same warnings and runs nothing 
(is it interpreting it as a desktop file ?), and for a desktop file it seems 
to ignore the "exec=" statement (we tried putting a shell script after exec 
in a hand-made desktop file as well as using any standard one).

So, what's the actual way to use KRun to launch any type of executable?

Thanks,

Christophe and Manoel.

-- 
+-----------------------------------------------------------\|/---+
| Christophe DELAERE            office: e253               !o o!  |
| UCL - FYNU                    phone : 32-(0)10-473234    ! i !  |
| chemin du cyclotron, 2        fax   : 32-(0)10-452183     `-'   |
| 1348 Louvain-la-Neuve BELGIUM e-mail: delaere@fynu.ucl.ac.be    |
+-----------------------------------------------------------------+

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic