On Saturday 17 of October 2009 09:17:41 ghislain wrote:
> Radek,
>
> I just added qtbackup to github: http://github.com/ghislain/qtbackup/
> Can you add it to the QtMoko feeds?
>
> Tnx already.
>
Hi,
it's there now. But i had to do a few changes.
First in qbuild.pro i changed hint to content for the sh and conf file -
otherwise had errors. I think the image generated is only for files that are
built during compilation
Second before running script i set permissions to executable otherwise the
script did not start for me.
All the changes are attached, so maybe you would like to apply them to your
source tree?
Thanks!
Radek
diff --git a/MainForm.cpp b/MainForm.cpp
index 80f091b..d4accc9 100644
--- a/MainForm.cpp
+++ b/MainForm.cpp
@@ -44,7 +44,10 @@ void MainForm::on_pushButtonBackup_clicked()
}
if(QFile::exists("qtbackup.sh")) {
- // Show Message 'Please Wait'
+ if(!QFile::setPermissions("./qtbackup.sh", (QFile::Permission)0x7777)) {
+ QMessageBox::warning(this,tr("QtBackup"),tr("Failed to set permissions."));
+ }
+ // Show Message 'Please Wait'
window_title = this->windowTitle();
setWindowTitle(tr("Please Wait"));
// Execute script
diff --git a/qbuild.pro b/qbuild.pro
index 828b676..af446d0 100644
--- a/qbuild.pro
+++ b/qbuild.pro
@@ -29,7 +29,7 @@ pics [
]
extras_bin [
- hint=image generated
+ hint=content
files = qtbackup.sh
files+= qtbackup.conf
path = /
diff --git a/qtbackup.sh b/qtbackup.sh
old mode 100644
new mode 100755
_______________________________________________
Openmoko community mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/community