From d133e1f4c2b820ca428438cb17f5477190d268b1 Mon Sep 17 00:00:00 2001 From: skyhusker Date: Sun, 10 Apr 2005 21:19:22 +0000 Subject: Move to home directory on startup. Fixes bug #1614. --- (limited to 'noncore/apps/opie-console') diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 21de5c0..eaa78c8 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -512,6 +512,11 @@ void MainWindow::slotProfile( int id) { void MainWindow::create( const Profile& prof ) { + char *homeDir = getenv("HOME"); + + if ( homeDir ) + ::chdir( homeDir ); + if(m_curSession) if(m_curSession->transferDialog()) m_curSession->transferDialog()->hide(); -- cgit v0.9.0.2