Lines 369-374
int Minicli::runCommand()
Link Here
|
369 |
cmd = uri.path(); |
369 |
cmd = uri.path(); |
370 |
else |
370 |
else |
371 |
cmd = uri.url(); |
371 |
cmd = uri.url(); |
|
|
372 |
|
373 |
QCString asn; |
374 |
if( qApp->desktop()->isVirtualDesktop()) |
375 |
{ |
376 |
asn = KStartupInfo::createNewStartupId(); |
377 |
KStartupInfoId id; |
378 |
id.initId( asn ); |
379 |
KStartupInfoData data; |
380 |
data.setXinerama( qApp->desktop()->screenNumber( this )); |
381 |
KStartupInfo::sendChange( id, data ); |
382 |
} |
372 |
|
383 |
|
373 |
// Determine whether the application should be run through |
384 |
// Determine whether the application should be run through |
374 |
// the command line (terminal) interface... |
385 |
// the command line (terminal) interface... |
Lines 504-510
int Minicli::runCommand()
Link Here
|
504 |
case KURIFilterData::HELP: |
515 |
case KURIFilterData::HELP: |
505 |
{ |
516 |
{ |
506 |
// No need for kfmclient, KRun does it all (David) |
517 |
// No need for kfmclient, KRun does it all (David) |
507 |
(void) new KRun( m_filterData->uri(), parentWidget()); |
518 |
(void) new KRun( m_filterData->uri(), parentWidget(), asn ); |
508 |
return 0; |
519 |
return 0; |
509 |
} |
520 |
} |
510 |
case KURIFilterData::EXECUTABLE: |
521 |
case KURIFilterData::EXECUTABLE: |
Lines 516-522
int Minicli::runCommand()
Link Here
|
516 |
if (service && service->isValid() && service->type() == "Application") |
527 |
if (service && service->isValid() && service->type() == "Application") |
517 |
{ |
528 |
{ |
518 |
notifyServiceStarted(service); |
529 |
notifyServiceStarted(service); |
519 |
KRun::run(*service, KURL::List()); |
530 |
KRun::run(*service, KURL::List(), parentWidget(), asn ); |
520 |
return 0; |
531 |
return 0; |
521 |
} |
532 |
} |
522 |
} |
533 |
} |
Lines 551-557
int Minicli::runCommand()
Link Here
|
551 |
if (service && service->isValid() && service->type() == "Application") |
562 |
if (service && service->isValid() && service->type() == "Application") |
552 |
{ |
563 |
{ |
553 |
notifyServiceStarted(service); |
564 |
notifyServiceStarted(service); |
554 |
KRun::run(*service, KURL::List(), this); |
565 |
KRun::run(*service, KURL::List(), parentWidget(), asn ); |
555 |
return 0; |
566 |
return 0; |
556 |
} |
567 |
} |
557 |
|
568 |
|
Lines 559-565
int Minicli::runCommand()
Link Here
|
559 |
if (service && service->isValid() && service->type() == "Application") |
570 |
if (service && service->isValid() && service->type() == "Application") |
560 |
{ |
571 |
{ |
561 |
notifyServiceStarted(service); |
572 |
notifyServiceStarted(service); |
562 |
KRun::run(*service, KURL::List(), this); |
573 |
KRun::run(*service, KURL::List(), parentWidget(), asn ); |
563 |
return 0; |
574 |
return 0; |
564 |
} |
575 |
} |
565 |
|
576 |
|
Lines 571-577
int Minicli::runCommand()
Link Here
|
571 |
} |
582 |
} |
572 |
} |
583 |
} |
573 |
|
584 |
|
574 |
if ( KRun::runCommand( cmd, exec, m_iconName ) ) |
585 |
if ( KRun::runCommand( cmd, exec, m_iconName, parentWidget(), asn ) ) |
575 |
return 0; |
586 |
return 0; |
576 |
else |
587 |
else |
577 |
{ |
588 |
{ |