[Konsole-devel] [Bug 102941] User created sessions with "~" (like "~/somescript") in execute field or error in command doesn't appear in menu

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Fri Apr 1 01:56:49 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=102941         
kurt.hindenburg kdemail net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From kurt.hindenburg kdemail net  2005-04-01 03:56 -------
This has been fixed...

Replace ~ with homeDirPath in Session's Exec entries.

BUG: 102941


  M +1 -1      konsole.cpp   1.526


--- kdebase/konsole/konsole/konsole.cpp  #1.525:1.526
 @ -3069,4 +3068,5  @ void Konsole::addSessionCommand(const QS
   }
 
+  exec = exec.replace( "~", QDir::homeDirPath() );
   exec = KRun::binaryName(exec, false);
   QString pexec = KGlobal::dirs()->findExe(exec);



More information about the konsole-devel mailing list