Changeset b3ee7b3


Ignore:
Timestamp:
09/12/13 12:34:34 (13 months ago)
Author:
Ken <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
5ea46879
Parents:
4ba4baf
Message:

Clean up the mount tray FM opening function - it looks like the problems with xdg-open are related to missing environment variables with the "sudo" start of the app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-mounttray/mountTray.cpp

    r11b9eef rb3ee7b3  
    303303  //Open the default file manager to the given directory as that user 
    304304  qDebug() << "Opening the media directory with user permissions"; 
    305   QString cmd = "su -m "+USERNAME+" -c \'xdg-open \""+dir+"\"\' &"; 
    306   if(DEBUG_MODE){ qDebug() << " -cmd:" << cmd; } 
    307   system( cmd.toUtf8() );  
     305  QString cmd = "su -m "+USERNAME+" -c \"xdg-open \'"+dir+"\' \""; 
     306  if(DEBUG_MODE){ qDebug() << " -cmd:" << cmd ; } 
     307  cmd.prepend("("); cmd.append(") &"); 
     308  system( cmd.toUtf8() ); 
    308309} 
    309310 
Note: See TracChangeset for help on using the changeset viewer.