![]() |
2012-07-27
, 21:24
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#2
|
The Following User Says Thank You to rainisto For This Useful Post: | ||
![]() |
2012-07-27
, 21:36
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#3
|
![]() |
2012-07-27
, 21:42
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#4
|
![]() |
2012-07-27
, 22:22
|
Posts: 203 |
Thanked: 538 times |
Joined on Oct 2009
@ Colombia
|
#5
|
![]() |
2012-07-27
, 23:30
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#6
|
![]() |
2012-07-27
, 23:41
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#7
|
#!/bin/sh if [ ! -f /path/where is/theme-setting-app/need to be installed ]; then echo "Theme setting not installed, trying to install..." echo "" | dpkg -i /home/user/MyDocs/Downloads/themesetting.deb || echo "failed to install theme setting" fi if [ -f /path/where is/theme-setting-app/need to be installed ] then /path/where is/theme-setting-app/need to be installed else echo "theme-setting-app not installed. exiting..." sleep 2 exit 0 fi
sh /home/user/MyDocs/Downloads/my-script.sh
![]() |
2012-07-27
, 23:56
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#8
|
#include <MMessageBox> #include <QFile> #include <QDBusConnection> #include <QDBusInterface> #include "checkerapplication.h" CheckerApplication::CheckerApplication(int &argc, char **argv) : MApplication(argc, argv) { new CheckerApplicationAdaptor(this); QDBusConnection connection = QDBusConnection::sessionBus(); if (!connection.registerService("com.jormas.vesuri.meegotouchtheme-settings-checker")) { qWarning("Unable to register D-Bus service com.jormas.vesuri.meegotouchtheme-settings-checker"); } if (!connection.registerObject("/", this)) { qWarning("Unable to register D-Bus object at /"); } if (!QFile::exists("/usr/lib/duicontrolpanel/applets/libmeegotouchtheme-settings.so")) { MMessageBox *messageBox = new MMessageBox("To take the theme into use, Theme settings needs to be installed from the Store. Would you like to go to the Store now?", M::YesButton | M::NoButton); connect(messageBox, SIGNAL(finished(int)), this, SLOT(openStoreIfAccepted(int))); messageBox->setSystem(true); messageBox->appear(MSceneWindow::DestroyWhenDone); } else { exit(); } } CheckerApplication::~CheckerApplication() { } void CheckerApplication::openStoreIfAccepted(int dialogResult) { if (dialogResult == MDialog::Accepted) { QDBusInterface("com.nokia.OviStoreClient", "/", "com.nokia.OviStoreClient", QDBusConnection::sessionBus()).call("LaunchWithLink", QStringList() << "http://store.ovi.com/content/300721"); } exit(); }
![]() |
2012-07-28
, 00:29
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#9
|
![]() |
2012-07-28
, 00:39
|
|
Posts: 418 |
Thanked: 506 times |
Joined on Jan 2012
@ Argentina
|
#10
|
#!/bin/sh #create .deb files for packages (fremantle&harmattan) if [ ! $1 ];then echo Create .deb files for fremantle and harmattan devices echo Usage: make-deb /path/to/package exit 0 fi #step in package directory chdir "$1" #versionnumber and packagename from control file packagename=`grep "Package: " DEBIAN/control | cut -d ' ' -f 2` versionnumber=`grep "Version: " DEBIAN/control | cut -d ' ' -f 2` #remove old md5 and digsig sums rm -f DEBIAN/md5sums 2>/dev/null rm -f DEBIAN/digsigsums 2>/dev/null #list all folders except DEBIAN find | grep -v "./DEBIAN" > ../md5 #get md5 and digsig sums to DEBIAN/ while read line do if [ -f "$line" ]; then #cut "./" from beginning line=`echo "$line" | cut -c 3-` #get md5 md5sum "$line" >> DEBIAN/md5sums #get sha1 for digital signatures echo S 15 com.nokia.maemo H 40 `sha1sum "$line" | cut -c -40` R `expr length "$line"` $line >> DEBIAN/digsigsums fi done < "../md5" #remove temp file list rm -f ../md5 #package control.tar.gz and data.tar.gz tar -cvzf ../control.tar.gz -C DEBIAN/ . >/dev/null tar -cvzf ../data.tar.gz . --exclude=DEBIAN >/dev/null echo 2.0>../debian-binary #step outside package folder cd .. #create debian archive "package_version.deb" ar -rcv $packagename"_"$versionnumber.deb debian-binary control.tar.gz data.tar.gz >/dev/null #remove packaged files rm -f debian-binary control.tar.gz data.tar.gz 2>/dev/null
So i would like to know how can i make the dependency call from my theme package when the file is installing.
I tried modifying the control file adding:
So i don't know how to point my app installer to installs "theme settings" before it installs itselfs.
Any idea how can i do this?
Bigger Icons (MetroUI)
Charging Indicator
s60.com.ar
Last edited by flotron; 2012-07-28 at 00:42.