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

List:       kfm-devel
Subject:    Re: (off-topic) Matching file types with preferred application?
From:       Manuel Arriaga <m.arriaga () ip ! pt>
Date:       2001-12-03 18:35:17
[Download RAW message or body]

Hi everybody,

On Tuesday 27 November 2001 19:20, David Faure wrote:
> On Tuesday 27 November 2001 18:53, Manuel Arriaga wrote:

> > I am working on a "pet" project of mine which needs to, given a certain
> > file name, open that file using the application which the user told
> > Konqueror/kfm to use.
>
> Use new KRun( theFile ), unless you know the mimetype, in which case
> there's another method in KRun, see kio/krun.h

This is working perfectly for me, but I am facing a small problem: I am 
writing a very simple graphical shell, and I want my program to quit once the 
appropriate program for that file type has been started. Unfortunately, if I 
invoke 

kapp->quit() 

immediately after instanciating a KRun object the "viewer" application never 
gets started.

Do you know how I can overcome this problem? I tried sleep()ing for a second 
but it didn't work.

Cheers,

Manuel

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

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