Permalink
Browse files

Enable a bit more debugging output for the mount tray if debug mode i…

…s enabled
  • Loading branch information...
1 parent ecf5153 commit 9d167cc732862d87a099bd17a59d900e31516bea Ken Moore committed Jun 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-qt4/pc-mounttray/mountTray.cpp
@@ -329,9 +329,9 @@ void MountTray::openMediaDir(QString dir){
return;
}
//Open the default file manager to the given directory as that user
- qDebug() << "Opening the file manager with user permissions";
+ qDebug() << "Opening the media directory with user permissions";
QString cmd = "su -m "+USERNAME+" -c \'"+FILEMAN+" "+dir+"\' &";
- //qDebug() << cmd;
+ if(DEBUG_MODE){ qDebug() << " -cmd:" << cmd; }
system( cmd.toUtf8() );
}

0 comments on commit 9d167cc

Please sign in to comment.