Logo Search packages:      
Sourcecode: kconfigure version File versions  Download package

void Kconfigure::slotOpenTerminal (  )  [private, slot]

Open Terminal Window in Application space

Open a Terminal Window in application directory

Definition at line 648 of file kconfigure.cpp.

References filePath.

Referenced by setupMenuBar().

{
      KConfig *config = KGlobal::config();
      config->setGroup( "General" );
      QString term = config->readPathEntry( "TerminalApplication", "konsole" );
      
      QString dir = "/";
      
      if ( !filePath )
      {
            dir = QDir::homeDirPath();
      } else {
            dir = filePath;
      }
      
      KProcess cmd;
      cmd.setWorkingDirectory(dir);
      cmd << term;
      cmd.start(KProcess::DontCare);
}


Generated by  Doxygen 1.6.0   Back to index