View Single Post
Old 01-04-2013, 04:34 AM   #3
koenieee
Enthusiast
koenieee doesn't litterkoenieee doesn't litterkoenieee doesn't litter
 
Posts: 49
Karma: 208
Join Date: Nov 2012
Device: Kobo Glo
Well, using the the plugin interface from 'ah-', you can start the shell script, and in QT you make a button to another shell script to start nickel again.
Shell script to start nickel again: http://pastebin.com/gEuQpaU5
Code:
void App::on_pushButton_2_clicked()
{
    QMessageBox msgBox;
    msgBox.setText("Wait for nickel");
    msgBox.exec();
    QProcess *proc = new QProcess();
    proc->start("/home/admin/nickel_start.sh", QStringList());
     QApplication::quit();
}
The only thing is, the wifi doesn't work when you restart nickel, only after a reboot everything is back to normal.
koenieee is offline   Reply With Quote