~andrikos/acetoneiso/trunk

« back to all changes in this revision

Viewing changes to acetoneiso/sources/foldertoiso.h

  • Committer: bullet-famas
  • Date: 2011-11-16 19:17:36 UTC
  • Revision ID: svn-v4:399f1bad-b237-0410-9052-acaef1fa5b6b::1119

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
void acetoneiso::foldertoiso() {
18
18
  QFile mkisofs;
19
 
  mkisofs.setFileName("/usr/bin/genisoimage");
 
19
  mkisofs.setFileName("/usr/bin/xorrisofs");
20
20
  QDir Home = QDir::home();
21
21
  QFile file(Home.path() + "/.acetoneiso/acetoneiso.conf");
22
22
  file.open(QIODevice::ReadOnly);//lo apro in sola lettura
24
24
  file.close();
25
25
  
26
26
  if (!mkisofs.exists()) {
27
 
    QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no genisoimage found in /usr/bin"));
 
27
    QMessageBox::warning(this, "AcetoneISO::Warning!",tr("no xorrisofs found in /usr/bin"));
28
28
    return;
29
29
  }
30
30
 
51
51
    MKisofs->setProcessChannelMode(QProcess::MergedChannels);
52
52
    connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() )); 
53
53
    connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
54
 
    MKisofs->start("genisoimage",QStringList() << "-R" << "-J" << "-o" << fileName << folder  );
 
54
    MKisofs->start("xorrisofs",QStringList() << "-R" << "-J" << "-o" << fileName << folder  );
55
55
  }
56
56
  else {        
57
57
    bool ok;
67
67
    MKisofs->setProcessChannelMode(QProcess::MergedChannels);
68
68
    connect(MKisofs, SIGNAL(readyReadStandardOutput()), SLOT(updateProgressDisplay_MKisofs() )); 
69
69
    connect(MKisofs, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(printOut(int, QProcess::ExitStatus)));
70
 
    MKisofs->start("genisoimage",QStringList()  << "-R" << "-J" << "-V" << text << "-o" << fileName << folder  );
 
70
    MKisofs->start("xorrisofs",QStringList()  << "-R" << "-J" << "-V" << text << "-o" << fileName << folder  );
71
71
 
72
72
  }
73
73