Permalink
Browse files

Merge branch 'master' of github.com:pcbsd/pcbsd

  • Loading branch information...
2 parents 1d6186b + 5ea4687 commit 5a2e630f6182e82ae2ee98ab62c5ff31438828dc @kmoore134 kmoore134 committed Sep 12, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 src-qt4/pc-mounttray/mountTray.cpp
View
7 src-qt4/pc-mounttray/mountTray.cpp
@@ -302,9 +302,10 @@ void MountTray::openMediaDir(QString dir){
}
//Open the default file manager to the given directory as that user
qDebug() << "Opening the media directory with user permissions";
- QString cmd = "su -m "+USERNAME+" -c \'xdg-open \""+dir+"\"\' &";
- if(DEBUG_MODE){ qDebug() << " -cmd:" << cmd; }
- system( cmd.toUtf8() );
+ QString cmd = "su -m "+USERNAME+" -c \"xdg-open \'"+dir+"\' \"";
+ if(DEBUG_MODE){ qDebug() << " -cmd:" << cmd ; }
+ cmd.prepend("("); cmd.append(") &");
+ system( cmd.toUtf8() );
}
void MountTray::slotRescan(){

0 comments on commit 5a2e630

Please sign in to comment.