invoking the application manager programatically in Qt

2010-02-25 Thread ibrahim

greetings;

I was hoping to add enable installing some features/add-ons/updates in 
the form of .deb packages (for example: font packages/ updates to my SW) 
from within my  Qt application. So, I used an approach similar to OTA 
installation. I add a '.install' file in some server, open the link to 
that install file inside my application using qwebkit's webview. and 
when the user clicks on the link to the '.install' file, the 
Hildon-application-manager gets invoked and my update package is installed.

but i faced the following problems:
first: the webkit component doesn't understand the association between 
the .install file and the required application to open it. the qwebview 
either displays the .install file as text in the browser or does nothing.


I can overcome this problem by delegating the webl inks and handling 
them on my own, ... when user clicks on the .install file's link, i can 
create a QHTtp object to download the file to any location (say /tmp)


but the real problem is : i have the .install file But i can't invoke 
the app manager to install the package with the file. Calling the 
command "hildon-aaplication-manager install_file.install " from system() 
or using a QProcess object from within the code  - OR EVEN from 
command-line as root -  returns the following:
in the console: the app manager requests a password (??? what password 
should i provide ???)
then the app manager starts and shows the following notification: 
"Operation Failed"

just like that.

is there's a way to invoke the app manager to install a package from my 
Qt code ???


any assistance is  higly appreciated
thanks in advance;
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: QMainWindow crashes when it closes while the menu is visible

2010-02-24 Thread ibrahim

Antonio Aloisio wrote:

Hi ibrahim,
Are you using 4.5 or 4.6? Could you show us a backtrace?

i am using 4.5.3. and iam afraid i  don't know how to produce the backtrace.


Thanks,
Antonio

On Wed, Feb 24, 2010 at 7:10 PM, ibrahim <mailto:ibrahim@asgatech.com>> wrote:


Greetings;

I have a little bit strange crash that occurs in my Qt
application. I have a QMainWindow Object that has a QMediaObject
object inside it to play sound. When the sound player finishes,
the QMainWindow sends a signal to its parent, so the parent can
close it (programatically, by calling window->close(); and my
QMainWindow is set to DeleteOnClose).
Everything works fine with no problems at all. But when I view the
menu in that window, and it closes (when sound player returns),
the application crashes 
I don't know what is wrong with that issue. why does it crash when
the menu is shown?
and how to avoid that issue ?? is there's a way to detect the open
menubar and close it programatically before  destroying the
application ???

any assistance is higly appreciated;
thanks in advance;
___
maemo-developers mailing list
maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
https://lists.maemo.org/mailman/listinfo/maemo-developers




--

Ted Turner 
<http://www.brainyquote.com/quotes/authors/t/ted_turner.html>  - 
"Sports is like a war without the killing."


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


QMainWindow crashes when it closes while the menu is visible

2010-02-24 Thread ibrahim

Greetings;

I have a little bit strange crash that occurs in my Qt application. I 
have a QMainWindow Object that has a QMediaObject object inside it to 
play sound. When the sound player finishes, the QMainWindow sends a 
signal to its parent, so the parent can close it (programatically, by 
calling window->close(); and my QMainWindow is set to DeleteOnClose).
Everything works fine with no problems at all. But when I view the menu 
in that window, and it closes (when sound player returns), the 
application crashes 
I don't know what is wrong with that issue. why does it crash when the 
menu is shown?
and how to avoid that issue ?? is there's a way to detect the open 
menubar and close it programatically before  destroying the application ???


any assistance is higly appreciated;
thanks in advance;
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


calling a Qt dbus method from a HILDON desktop widget

2010-02-09 Thread ibrahim

greetings;

I was creating an application with Qt that exposes a dbus service. the 
service returns its output  as a QStringList. I tested this dbus service 
with a client written in Qt and it worked perfectly.


I wanted to create a Desktop widget that can consume this dbus service. 
I created a normal C file that calls the dbus service - just as POC to 
see if it works by modifying some code i found (a C file that gets the 
imei , written by mr.faheem 
http://talk.maemo.org/showpost.php?p=371496&postcount=45)

my code is :

#include 
#include 
#include 
#include 
#include 
#include 
static GList* ptimes_list = NULL;
int fn() {
DBusGConnection *conn;
   GError *error = NULL;

   conn = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
   if (!conn) {
   g_printerr ("Error: %s\n", error->message);
   g_error_free (error);
   return 0;
   }
   DBusGProxy *proxy = NULL;
   /* replaced the cinstants with values from my dbus interface */
   proxy = dbus_g_proxy_new_for_name(conn, SERVICE_NAME,PATH ,INTERFACE);

   if (!proxy) {

   printf("No proxy, dbus_g_proxy_new_for_name() failed \n");
   return 0;
   }
  
   if (!dbus_g_proxy_call(proxy,"mthod_name", &error,my_list) )

   {
   /* dbus_g_proxy_call failed */
   printf("dbus_g_proxy_call(proxy,method, &error,myList) 
returned FALSE \n");

   return 0;
   }
   if (!my_list) {
   /* output list is empty */
   printf("my_list) glist is still NULL \n");
   return 0;
   }
   g_object_unref(proxy);
   char[10] element = (char*) g_list_nth_data(my_list),0);   
   printf("the value of the fajr first is %s \n",element);

   return 1;
}
the program fails at this point: proxy = dbus_g_proxy_new_for_name(conn, 
SERVICE_NAME,PATH ,INTERFACE);

and my application stops.

I wonder what is wrong with the way I called my DBus service . Any help 
is appreciated!

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


how to make a splash screen with Qt

2010-02-08 Thread ibrahim

hello there ;

I was wondering how to make a splash screen for my application using Qt, 
I found this link : 
http://wiki.maemo.org/Qt4_Hildon#QSplashScreen_not_fully_compatible_with_Hildon-Desktop 

telling that it is not compitable with maemo, So, it tried many 
workarounds (like creating a fullscreen window above my main window, and 
then hiding it after a while, But it blinks when it hide and the main 
view of my application is shown minimized when spalsh screen disappears.
Also tried to make my  main view window's central widget to be a splash 
screen widget and after a while i replace it with the original  central 
widget of the main view But it failed too)


So, I wonder if you have any other way/Maemo API to allow a splash 
screen to be properly shown .


thank you in advance;

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: sensing change in System Clock using Qt

2010-01-31 Thread ibrahim

nomrasco wrote:

ibrahim wrote:
> I am very sorry for not making my question clear enough. But the
> situation you just described is JUST what I want to do! Yes, I want to
> do something exactly as you described; I am now at 4:00 am, I need to
> make my app do something at - say - 8:00 am (the time of the alarm is
> calculated and varies from time to time, so i can't just use cron jobs
> to schedule the next alarm), So, I used a QTimer and set its interval to
> the duration between now and the next alarm. BUT this solution won't
> work if user decides to adjust the system clock/change timezone.
> What I'm asking is there anyway to GET NOTIFIED by the system when > its
> clock/timezone changes (in order to recalculate the next alarm and set
> my Qtimer object to a new duration)?? any signal emitted ? anything?

> I hope i made my question clear and sorry for any inconvenience.
> thanks again

Hi,

   You should check libalarm API and its feautures 
(http://maemo.org/api_refs/5.0/5.0-final/libalarm/). It provides You 
exactly what You want... the only problem is that it is in pure C. You 
can add alarm and forget about QTimer etc. Device could be even boot 
up on You alarm if that is a behaviour You would like to get (and 
device was switched off before Your alarm;) ). It should not be to 
hard to use this library in Qt code. Furthermore, You can check 
another library provided by Nokia - libtime 
(http://maemo.org/api_refs/5.0/5.0-final/clockd/). It allows You to 
communicate with clockd which is responsible for maintaining time on 
the device. clockd daemon also sends D-Bus signal 
(http://maemo.org/api_refs/5.0/5.0-final/clockd/libtime_8h.html just 
at the top of the page :) ) after time was changed by the user or time 
was synchronized and changed to different GMT offset (this is not 
working with every GSM network though).


   So.. fast reply for Your question is: signal send by clockd. Better 
solution: use libalarm which will save You a lot of time :)


Best Regards
--
nomrasco
software development
thank you very much for your response. I will try both your and faheem's 
answers. will get back to you soon if everything happens

thanks again
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: sensing change in System Clock using Qt

2010-01-31 Thread ibrahim

David Greaves wrote:

ibrahim wrote:
  

remi.denis-courm...@nokia.com wrote:


   Hello,

- Message d'origine -
 
  

But the problem that can face me is the case when the user changes his
clock settings (i.e adjust phone's time to a different time). in this
case, the timer that has been set to some fixed duration can go wrong.



As a general rule, delay measurements should be done with the
monotonic clock, not the wall clock (the real-time clock). As far as I
know, Qt timers already do so internally. But of course, your own code
should never request and use the wall clock for time measurements.

  
  

I don't think I follow you! What do you mean by monotonic clock ? If I
don't depend on the system's clock to get current time, where else can I
get it from ?
Let me explain my problem again briefly, I want to know the current
time, calculate some future durations  depending on it. Then I figure
out the time left to the upcoming duration and set it as interval to a
QTimer Object. But I'm afraid that user may change the system clock
(adjust the clock) So that my preset time will be invalid.



Just so you know... you're describing an implementation and asking if it does
what you want without describing what you want.

Example: "At 4am the user wants to play a sound at 8am (in 4hrs). At 6am the
user changes timezone and it becomes 7am. The alarm should sound at 8am in the
new timezone."

My guess is that you know about interval timers but you should be using a
wall-clock. Since you haven't specified what you want it's hard to know.

David

  
I am very sorry for not making my question clear enough. But the 
situation you just described is JUST what I want to do! Yes, I want to 
do something exactly as you described; I am now at 4:00 am, I need to 
make my app do something at - say - 8:00 am (the time of the alarm is 
calculated and varies from time to time, so i can't just use cron jobs 
to schedule the next alarm), So, I used a QTimer and set its interval to 
the duration between now and the next alarm. BUT this solution won't 
work if user decides to adjust the system clock/change timezone.
What I'm asking is there anyway to GET NOTIFIED by the system when its 
clock/timezone changes (in order to recalculate the next alarm and set 
my Qtimer object to a new duration)?? any signal emitted ? anything?


I hope i made my question clear and sorry for any inconvenience.
thanks again
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: sensing change in System Clock using Qt

2010-01-30 Thread ibrahim

remi.denis-courm...@nokia.com wrote:

   Hello,

- Message d'origine -
  

But the problem that can face me is the case when the user changes his
clock settings (i.e adjust phone's time to a different time). in this
case, the timer that has been set to some fixed duration can go wrong.



As a general rule, delay measurements should be done with the monotonic clock, 
not the wall clock (the real-time clock). As far as I know, Qt timers already 
do so internally. But of course, your own code should never request and use the 
wall clock for time measurements.

  
I don't think I follow you! What do you mean by monotonic clock ? If I 
don't depend on the system's clock to get current time, where else can I 
get it from ?
Let me explain my problem again briefly, I want to know the current 
time, calculate some future durations  depending on it. Then I figure 
out the time left to the upcoming duration and set it as interval to a 
QTimer Object. But I'm afraid that user may change the system clock 
(adjust the clock) So that my preset time will be invalid.


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


sensing change in System Clock using Qt

2010-01-24 Thread ibrahim

Greetings;

I am creating a Qt application that depends on system clock (get the 
current system time/date) to do time-dependent calculations. (calculate 
duration from current time to a specifed/calculated duration in the 
future, and set a QTimer's interval to that duration).


But the problem that can face me is the case when the user changes his 
clock settings (i.e adjust phone's time to a different time). in this 
case, the timer that has been set to some fixed duration can go wrong.


One solution i figured is to check for system time change every fixed 
period (say a minute). But it seems a very ugly one since it is bad for 
performance and not handy (wait for the next minute to come to check for 
the clock and realize it was changed)


my question is: is there any way to get notified by the system clock of 
any change/adjustments ? any signals sent by the system phone or 
something like that ?


thanx in advance
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


running application automatically at system startup

2010-01-17 Thread ibrahim


--- Begin Message ---

cheers;

I wonder how to make my application run automatically at system startup. 
I've read about many ways to do so ( different ways for different  linux 
distributions) but I'm not sure which way is the right one. I don't want 
to mess things up by using an inappropriate way.
So, is there any way to make my (console)app run automatically  when the 
phone starts??


thanks in advance


--- End Message ---
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


running application automatically at system startup

2010-01-17 Thread ibrahim

cheers;

I wonder how to make my application run automatically at system startup. 
I've read about many ways to do so ( different ways for different  linux 
distributions) but I'm not sure which way is the right one. I don't want 
to mess things up by using an inappropriate way.
So, is there any way to make my (console)app run automatically  when the 
phone starts??


thanks in advance

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


User-specific files for maemo packages

2010-01-11 Thread ibrahim

hi there;

I wonder how can I put some user-specific files on the filesystem that 
can't get removed when my application package is uninstalled.
for normal Linux systems, I can fimd user-settings/specific files  
stored inside hidden folders inside the /home/user_name folder ( for 
example: firefox's browser-cache, installed addons and history files are 
all located inside a hidden folder called /home/user/.mozilla )


I tried to do so for my maemo application packafe, So, I created a 
hidden folder .app_name/ and put it inside the folders 
my_package_folder/home/user/ , I created the package out of the folder 
and everything is alright when i deploy my package to the phone.
but the problem id : when I uninstall the package, the hidden folder i 
created inside /home/user/ gets deleted too, as the apt keeps track of 
all extracted files.


what can I do to fix that?
thanks in advance
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to show installed application icon on the App manager's Uninstall menu

2010-01-10 Thread ibrahim

Andrew Flegg wrote:

On Sun, Jan 10, 2010 at 11:39, ibrahim  wrote:
  

Since I failed to install my application using a .install file with a
local repository. I wonder if an application package was installed from
command-line "using dpkg -i package_name.deb" can it -at least- be
uninstalled using the app manager ??
does it have a chance to appear on Hildon application Manager's Uninstall
list ?? If it is possible, how to do that?



The Application Manager only shows, and manages, packages in the
"user" section. In debian/control, if your application is user-facing,
it should have it in a line of the form:

Section: user/...

Where "..." is one of the sections listed here:


http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging%2C_Deploying_and_Distributing#Sections

HTH,

Andrew

  

It worked like magic !!
thanks alot. really appreciate your fast response
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


how to show installed application icon on the App manager's Uninstall menu

2010-01-10 Thread ibrahim

Hi there;

I have a question regarding the way applications are installed/removed 
using the Application manager.
Since I failed to install my application using a .install file with a 
local repository. I wonder if an application package was installed from 
command-line "using dpkg -i package_name.deb" can it -at least- be 
uninstalled using the app manager ??
does it have a chance to appear on Hildon application Manager's 
Uninstall list ?? If it is possible, how to do that?


the packages installed by "dpkg -i" can be seen and removed by the 
apt-get command (apt-get remove  manages to find 
and uninstalls it  ).  So, why the app manager can't see them? Isn't it 
a GUI for apt ? or it uses another method to install/update/remove maemo 
packages ?


thanks in advance ;

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: can't install application to phone from local repository

2010-01-06 Thread ibrahim

Jeremiah Foster wrote:

On Jan 6, 2010, at 14:05, ibrahim wrote:

  

Kees Jongenburger wrote:


Hi ibrahim,

On Sun, Oct 25, 2009 at 11:37 AM, ibrahim  wrote:
  
you might want to look a what extra's devel's structure looks like


#source.list
#extras-devel
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free

but on on the website
http://repository.maemo.org/extras-devel/dists/fremantle/free/

notice the "dists" and the location where the Packages file ends up
http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages

The thing also is that your package has arch set to "all". but start
looking at your servers logs.

Greetings

 
  

I did exactly the same as Maemo extras repository did on my local reposidtor , 
the same folder structure

/dists/fremantle/free/binary-armel/



Turns out that is not "exactly the same." Try /extras-devel/ as a replacement for your 
"dists" .
  

i'am afraid i didn't understand what you just said !!
do you mean I replace the "dists" folder with "extras-devel" so my 
repository becomes like this: 
/var/www/repo/extras-devel/free/binary-armel/ ??
if you mean that, it didn't work , and the server's access.log file 
reports failure to get Packages.gz file (which used to be successful before)
:::192.168.0.99 192.168.0.228 - [06/Jan/2010:17:02:41 +0200] "GET 
/repo/dists/fremantle/free/binary-armel/Packages.gz HTTP/1.1" 404 345 
"-" "Debian APT-HTTP/1.3 (0.7.20.2maemo8)"
:::192.168.0.99 192.168.0.228 - [06/Jan/2010:17:03:05 +0200] "GET 
/repo/dists/fremantle/free/binary-armel/Packages HTTP/1.1" 404 345 "-" 
"Debian APT-HTTP/1.3 (0.7.20.2maemo8)"


thanx again

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: can't install application to phone from local repository

2010-01-06 Thread ibrahim

Kees Jongenburger wrote:

Hi ibrahim,

On Sun, Oct 25, 2009 at 11:37 AM, ibrahim  wrote:
  

cheers;

I created a local repository to host some test applications for Maemo
fremantle device - and YES, the repository folders are visible to the phone-
Added some packages and ran the "dpkg-scanpackages" utility to generate the
"Package " and "Package.gz" files with no errors.



Check your webserver's error logs. perhaps you only think you did the
right thing and you might see http 404 messages(file not found)
  
the following is logged to the server's log "access.log" file just after 
I click on the .install file :

// installing from the .install file
:::192.168.0.99 192.168.0.228 - [05/Jan/2010:09:45:12 +0200] "GET 
/repo/dists/fremantle/Release.gpg HTTP/1.1" 404 345 "-" "Debian 
APT-HTTP/1.3 (0.7.20.2maemo8)"
:::192.168.0.99 192.168.0.228 - [05/Jan/2010:09:45:12 +0200] "GET 
/repo/dists/fremantle/Release HTTP/1.1" 404 345 "-" "Debian APT-HTTP/1.3 
(0.7.20.2maemo8)"
:::192.168.0.99 192.168.0.228 - [05/Jan/2010:09:45:13 +0200] "GET 
/repo/dists/fremantle/free/binary-armel/Packages.gz HTTP/1.1" 200 236 
"-" "Debian APT-HTTP/1.3 (0.7.20.2maemo8)"
it fails to get Release.gpg and Release, as they don't exist - i didn't 
generate them - , BUT it succeeds to get the package description file 
'Packages.gz' , the one i already generated with the scanpackages command.
Nothing more, the phone's App manager didn't even try to access the 
actual package ".deb" from the server  - although the App Manager tells 
me Application Package not found , it didn't even try to look for it on 
the server with any given path so the server returns 404 code
  

_the contents of the Package file :_

  Section: base
  Priority: optional
  Description: Hello World When you need some sunshine, just run this
small program!



Do check if all those files are still in the Pacakges. the
dpkg-scanpackages will remove fields  it doesn't know be default(the
Section and icons for example).
  
I doubt that, looking at Maemo extra repository's  'Packages' file 
showed me that things like Section and icons dont exist.


  

the directory structure of my local repository is :
/var/www/repo/dists/fremantle/free/binary-armel/
so, the url to the package files is :
http:///repo/dists/fremantle/free/binary-armel/
<http://%3clocal-ip%3e/repo/dists/fremantle/free/binary-armel/>




you might want to look a what extra's devel's structure looks like

#source.list
#extras-devel
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb-src http://repository.maemo.org/extras-devel/ fremantle free

but on on the website
http://repository.maemo.org/extras-devel/dists/fremantle/free/

notice the "dists" and the location where the Packages file ends up
http://repository.maemo.org/extras-devel/dists/fremantle/free/binary-armel/Packages

The thing also is that your package has arch set to "all". but start
looking at your servers logs.

Greetings

  
I did exactly the same as Maemo extras repository did on my local 
reposidtor , the same folder structure


/dists/fremantle/free/binary-armel/

and even i moved my package files to the pool/ directory as extra repo 
did, BUT no use!

any help is highly appreciated!
thanx again for your response


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Daemonizing Qt app

2009-12-31 Thread ibrahim
Greetings;

I am trying to create a background application (starts with system 
startup, and keeps running in the background ) . the only solution i 
found is to make it as daemon.
searching the internet about how to create a daemon 
 , I built a small app 
around my findings.

Qt Code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  



#include 
#include 
#include 
#include 
#include 
#include "globaldefs.h"
 
void log_message(char *filename,char *message)
{
FILE *logfile;
logfile=fopen(filename,"a");
if(!logfile) return;
fprintf(logfile,"%s\n",message);
fclose(logfile);
}
 
 
/**
  a signal handler for the Linux signals sent to daemon process,
  for more signals, refer to 
http://www.comptechdoc.org/os/linux/programming/linux_pgsignals.html
  */
void signal_handler(int sig)
{
switch(sig) {
case SIGHUP:
log_message(LOG_FILE,"hangup signal catched");
break;
case SIGTERM:
log_message(LOG_FILE,"terminate signal catched");
break;
}
}
 
/**
  create background process out of the application, source code taken from: 
http://www.enderunix.org/docs/eng/daemon.php
  with some minor modifications
  */
void init_daemon()
{
int i,lfp;
char str[10];
if(getppid()==1)
return; /* already a daemon */
i=fork();
if (i<0)
exit(1); /* fork error */
if (i>0)
exit(0); /* parent exits */
 
/* child (daemon) continues */
setsid(); /* obtain a new process group */
 
for (i=getdtablesize();i>=0;--i)
close(i); /* close all descriptors */
i=open("/dev/null",O_RDWR); dup(i); dup(i); /* handle standart I/O */
 
umask(027); /* set newly created file permissions */
 
chdir(RUNNING_DIR); /* change running directory */
lfp=open(LOCK_FILE,O_RDWR|O_CREAT,0640);
if (lfp<0)
exit(1); /* can not open */
if (lockf(lfp,F_TLOCK,0)<0)
exit(0); /* can not lock */
/* first instance continues */
sprintf(str,"%d\n",getpid());
write(lfp,str,strlen(str)); /* record pid to lockfile */
signal(SIGCHLD,SIG_IGN); /* ignore child */
signal(SIGTSTP,SIG_IGN); /* ignore tty signals */
signal(SIGTTOU,SIG_IGN);
signal(SIGTTIN,SIG_IGN);
signal(SIGHUP,signal_handler); /* catch hangup signal */
signal(SIGTERM,signal_handler); /* catch kill signal */
}
int main(int argc, char *argv[])
{
// first, create the daemon
init_daemon();
QCoreApplication  
a(argc, argv);
 
return a.exec();
}

the code doesn't handle signals (for example, a termination signal). So, 
when I run it from the command line, and try to kill it, it refuses to 
get killed!!! the only way to kill the process is to restart the phone !!
I really suspect that creating a QCoreApplication instance in the main 
method forks a new process other than the one i forked in the 
init_daemom() method. But i can't find any clue . On the other hand, i 
can't init my qt app without creating a QCoreApplication instance -says 
qt documentation.
When I try to debug the application. it fails to fork a new process thus 
exit() is issued and the debugging session terminates.

I am using Qt 4.5 and the  phone's libqt version is 4.5.3
What am I missing? can there be anything done to make my Qt application 
run as a daemon process ?? Am i using a wrong way to do so?

thanks in advance;
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: VS: QWebView keeps crashing in maemo qt4.5.3

2009-12-31 Thread ibrahim
Antonio Aloisio wrote:
> Hi,
> Could you show us a backtrace?
>
> Antonio
>
>
> On Mon, Dec 28, 2009 at 1:05 PM,  > wrote:
>
>
> What is the value of myurl, it should contain protocol and domain
> name. If it is wrong nothing will be shown.
>
>
> -- 
> Mikk0 Terh0
> - Alkuperäinen viesti -
> >
> >
> >
> >
> >
> > greetings;
> >
> > I am having a very strange problem with the QWebView Component.
> It keeps
> > crashing when it loads about 39% of the web page!!
> > I created a dialog that contains a webView instance, and loaded
> a page
> > just like the Qt Documentation says :
> > ui->webView->load(QUrl(MY_URL));
> > nothing more !!! i didn't even connect to any of its signals.
> >
> > When running my application on the phone , it simply crashes (it
> works
> > perfectly fine in the desktop ). By accident I tried to run it
> on the
> > phone as root  It worked fine with no crashes!!!
> >
> > What root user has got more than a normal user (besides higher
> > permission) ??? Does the permission thing have something to do
> with my
> > issue??
> > I forgot to say that i made my application a debian package - in
> order
> > to run it on the phone - and used the maemo-optify 0.1
> application to
> > generate maemo-friendly debian package. "So, the path to my
> executable
> > is now: /opt/maemo/usr/bin/" , but i don't seem to see somthing
> wrong
> > with permissions in that folder. Should I enable write
> permissions to
> > that folder to others(non-roots) ? Does webkit write any sort of
> > temporary files to the directory/any direcotry and when it fails it
> > crashes my application??
> >
> > my phone's libqt4 version -as said in dpkg -l libqt4*  :
> >
> > Desired=Unknown/Install/Remove/Purge/Hold
> > |
> >
> 
> Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
>
> > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> > uppercase=bad)
> > ||/ Name  
> > VersionDescription
> >
> 
> +++-==-==-
>
> > ii  libqt4-core   
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 core module
> > ii  libqt4-dbus   
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 D-Bus module
> > un  libqt4-dev
> >  (no description available)
> > ii  libqt4-gui
> > 4.5.3~git20090723-0maemo4.2Qt 4 GUI module
> > ii  libqt4-network
> > 4.5.3~git20090723-0maemo4.2Qt 4 network module
> > ii  libqt4-opengl 
> > 4.5.3~git20090723-0maemo4.2Qt 4 OpenGL module
> > ii  libqt4-phonon 
> > 4.5.3~git20090723-0maemo4.2Qt 4 Phonon Libraries
> > ii  libqt4-sql
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 SQL module
> > ii  libqt4-sql-sqlite 
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 SQLite plugin
> > ii  libqt4-webkit 
> > 4.5.3~git20090723-0maemo4.2Qt 4 WebKit module
> > ii  libqt4-xml
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 XML module
> >
> > which i find pretty strange (mixed versions:
> > 4.5.3~git20090723-0maemo4.2  and 4.5.3~git20090723-0maemo4+0m5  )
> > can it be the reason? (the new packages -maemo4.2 - were installed
> > automatically when installing the qt-webkit component)
> > ___
> > maemo-developers mailing list
> > maemo-developers@maemo.org 
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> >
>
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org 
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
>
>
> -- 
>
> Ted Turner 
>   - 
> "Sports is like a war without the killing." 
I think I know where the problem is :
I tried my application on the phone with the latest stable version of qt 
libs (4.5.3~git20090723-0maemo4+0m5). It didn't crash at all 
the problem occuered when using the test version of qt 4.5.3 libs 
(4.5.3~git20090723-0maemo4.2 ) which I found here: 
http://qt4.garage.maemo.org/fremantle.html
I got to the url with

Re: VS: QWebView keeps crashing in maemo qt4.5.3

2009-12-28 Thread ibrahim
it contains a fully working url (contains protocol(http) and a domain name )

mikko.j.te...@nokia.com wrote:
>
>
> What is the value of myurl, it should contain protocol and domain 
> name. If it is wrong nothing will be shown.
>
>
> -- 
> Mikk0 Terh0
> - Alkuperäinen viesti -
> >
> >
> >
> >
> >
> > greetings;
> >
> > I am having a very strange problem with the QWebView Component. It 
> keeps
> > crashing when it loads about 39% of the web page!!
> > I created a dialog that contains a webView instance, and loaded a page
> > just like the Qt Documentation says :
> > ui->webView->load(QUrl(MY_URL));
> > nothing more !!! i didn't even connect to any of its signals.
> >
> > When running my application on the phone , it simply crashes (it works
> > perfectly fine in the desktop ). By accident I tried to run it on the
> > phone as root  It worked fine with no crashes!!!
> >
> > What root user has got more than a normal user (besides higher
> > permission) ??? Does the permission thing have something to do with my
> > issue??
> > I forgot to say that i made my application a debian package - in order
> > to run it on the phone - and used the maemo-optify 0.1 application to
> > generate maemo-friendly debian package. "So, the path to my executable
> > is now: /opt/maemo/usr/bin/" , but i don't seem to see somthing wrong
> > with permissions in that folder. Should I enable write permissions to
> > that folder to others(non-roots) ? Does webkit write any sort of
> > temporary files to the directory/any direcotry and when it fails it
> > crashes my application??
> >
> > my phone's libqt4 version -as said in dpkg -l libqt4*  :
> >
> > Desired=Unknown/Install/Remove/Purge/Hold
> > |
> > 
> Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend 
>
> > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> > uppercase=bad)
> > ||/ Name  
> > VersionDescription
> > 
> +++-==-==-
>  
>
> > ii  libqt4-core   
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 core module
> > ii  libqt4-dbus   
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 D-Bus module
> > un  libqt4-dev
> >  (no description available)
> > ii  libqt4-gui
> > 4.5.3~git20090723-0maemo4.2Qt 4 GUI module
> > ii  libqt4-network
> > 4.5.3~git20090723-0maemo4.2Qt 4 network module
> > ii  libqt4-opengl 
> > 4.5.3~git20090723-0maemo4.2Qt 4 OpenGL module
> > ii  libqt4-phonon 
> > 4.5.3~git20090723-0maemo4.2Qt 4 Phonon Libraries
> > ii  libqt4-sql
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 SQL module
> > ii  libqt4-sql-sqlite 
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 SQLite plugin
> > ii  libqt4-webkit 
> > 4.5.3~git20090723-0maemo4.2Qt 4 WebKit module
> > ii  libqt4-xml
> > 4.5.3~git20090723-0maemo4+0m5  Qt 4 XML module
> >
> > which i find pretty strange (mixed versions:
> > 4.5.3~git20090723-0maemo4.2  and 4.5.3~git20090723-0maemo4+0m5  )
> > can it be the reason? (the new packages -maemo4.2 - were installed
> > automatically when installing the qt-webkit component)
> > ___
> > maemo-developers mailing list
> > maemo-developers@maemo.org 
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> >
>

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


QWebView keeps crashing in maemo qt4.5.3

2009-12-27 Thread ibrahim
greetings;

I am having a very strange problem with the QWebView Component. It keeps 
crashing when it loads about 39% of the web page!!
I created a dialog that contains a webView instance, and loaded a page 
just like the Qt Documentation says :
ui->webView->load(QUrl(MY_URL));
nothing more !!! i didn't even connect to any of its signals.

When running my application on the phone , it simply crashes (it works 
perfectly fine in the desktop ). By accident I tried to run it on the 
phone as root  It worked fine with no crashes!!!

What root user has got more than a normal user (besides higher 
permission) ??? Does the permission thing have something to do with my 
issue??
I forgot to say that i made my application a debian package - in order 
to run it on the phone - and used the maemo-optify 0.1 application to 
generate maemo-friendly debian package. "So, the path to my executable 
is now: /opt/maemo/usr/bin/" , but i don't seem to see somthing wrong 
with permissions in that folder. Should I enable write permissions to 
that folder to others(non-roots) ? Does webkit write any sort of 
temporary files to the directory/any direcotry and when it fails it 
crashes my application??

my phone's libqt4 version -as said in dpkg -l libqt4*  :

Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name   
VersionDescription
+++-==-==-
ii  libqt4-core
4.5.3~git20090723-0maemo4+0m5  Qt 4 core module
ii  libqt4-dbus
4.5.3~git20090723-0maemo4+0m5  Qt 4 D-Bus module
un  libqt4-dev 
 (no description available)
ii  libqt4-gui 
4.5.3~git20090723-0maemo4.2Qt 4 GUI module
ii  libqt4-network 
4.5.3~git20090723-0maemo4.2Qt 4 network module
ii  libqt4-opengl  
4.5.3~git20090723-0maemo4.2Qt 4 OpenGL module
ii  libqt4-phonon  
4.5.3~git20090723-0maemo4.2Qt 4 Phonon Libraries
ii  libqt4-sql 
4.5.3~git20090723-0maemo4+0m5  Qt 4 SQL module
ii  libqt4-sql-sqlite  
4.5.3~git20090723-0maemo4+0m5  Qt 4 SQLite plugin
ii  libqt4-webkit  
4.5.3~git20090723-0maemo4.2Qt 4 WebKit module
ii  libqt4-xml 
4.5.3~git20090723-0maemo4+0m5  Qt 4 XML module

which i find pretty strange (mixed versions: 
4.5.3~git20090723-0maemo4.2  and 4.5.3~git20090723-0maemo4+0m5  )
can it be the reason? (the new packages -maemo4.2 - were installed 
automatically when installing the qt-webkit component)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Can't get Finger Scrolling to work for Qt4.5.3 Applications

2009-12-23 Thread ibrahim
Greetings;

I've been trying to enable Finger scrolling feature on Some Qt4.5 
controls (scrollArea and ListView). I tried the solutions suggested in :
http://wiki.maemo.org/Qt/Finger_Scrolling  AND
 http://wiki.maemo.org/Qt4_Hildon#FREMANTLE_.28Qt_4.5.29 :
that is : setting the property "FingerScrollable" OR "FingerScrolling" 
to true for the entire application or per each control. But it just 
Doesn't Work!!
using the code provided in the post: 
http://forums.internettablettalk.com/showpost.php?p=406082&postcount=5 

but it didn't compile on my scratchbox's ARMEL target either as it 
didn't recognize " QMaemo5KineticScroller"

I am using the default libqt4 installed with the n900 device (that is : 
when running the command dpkg -l libqt4* prints :
Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
||/ Name   
VersionDescription
+++-==-==-
ii  libqt4-core
4.5.3~git20090723-0maemo4+0m5  Qt 4 core module
ii  libqt4-dbus
4.5.3~git20090723-0maemo4+0m5  Qt 4 D-Bus module
un  libqt4-dev 
 (no description available)
ii  libqt4-gui 
4.5.3~git20090723-0maemo4+0m5  Qt 4 GUI module
ii  libqt4-opengl  
4.5.3~git20090723-0maemo4+0m5  Qt 4 OpenGL module
ii  libqt4-phonon  
4.5.3~git20090723-0maemo4+0m5  Qt 4 Phonon Libraries
ii  libqt4-sql 
4.5.3~git20090723-0maemo4+0m5  Qt 4 SQL module
ii  libqt4-sql-sqlite  
4.5.3~git20090723-0maemo4+0m5  Qt 4 SQLite plugin
ii  libqt4-xml 
4.5.3~git20090723-0maemo4+0m5  Qt 4 XML module

the same applies for the ScratchBox ARMEL target except the "libqt4-dev 
" package is installed.

What am i missing ???
thanx in advance,
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Willing to Compile Maemo source

2009-11-19 Thread ibrahim
greetings;

 I am trying to get the entire source code of Maemo 5 and try to compile 
it to generate a complete image out of it. But I have some questions to 
start with:

   1. where can I get the complete source code ? in other words: is the
  source code in the repository : http://maemo.gitorious.org/ THE
  COMPLETE source code (including all tools and the kernel) ? If
  not, is where can i get the missing sources (sources not in
  maemo.gitorious.org if any exist ) ??
   2. Any instructions to build the complete source code ?? Any
  Documentation ??
   3. I've heard that there are parts of Maemo closed source (made by
  nokia) that I can't download and build . Can I have a
  complete/running Maemo system without them (can compiling only the
  open source components create a running system image) ?
   4. Anyway to test my output image (If it can be built) in the
  emulator/ phone ??
   5. Any further advice/note to add ???

thanks alot in advance
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to create a desktop applet

2009-11-18 Thread ibrahim
Kimmo Hämäläinen wrote:
> On Tue, 2009-11-17 at 18:31 +0100, ext ibrahim wrote:
>   
>> daniel wilms wrote:
>> 
>>> Hi
>>>   
>>>> I can't seem to find the APIs needed to do such thing.
>>>> where should a look to find something like that?
>>>> 
>>> there is a good tutorial how to do that in the developer guide:
>>>
>>> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_Desktop_Widgets
>>>  
>>>
>>>
>>> Hope that helps,
>>>
>>> cheers Daniel
>>>
>>>   
>> I tried the example, created a debian package out of the output, and 
>> installed it on the emulator and the n900 phone. BUT noting happened!
>> th eapplication is installed but i can't see the applicatin name in the 
>> "Add Widget" menu from the "Desktop menu".
>> What am I missing ?? is there anything else i can do to make the home 
>> widget visible to the "Add widget" and the Desktop??
>> 
>
> I haven't tried that, but libhildondesktop1-examples package has an
> example Home applet that worked for me.  The package should be part of
> the SDK.  The latest source is in the gitorious:
>
> http://maemo.gitorious.org/fremantle-hildon-desktop/libhildondesktop
>
> -Kimmo
>
>
>
>   
Didn't work either. Maybe there is something wrong with the way i create 
packages:
the steps i take to create the package are :

   1. compile the source and header using gcc inside scratchbox
  * gcc -shared 'pkg-config hildon-1 libhildondesktop-1 --libs
--cflags' example.c example.h -o output.so
   2. create the folder structure : data/usr/lib/ and put the output.so
  file inside it
   3. create the folder : data/usr/share/applications/hildon-home and
  put the .desktop file inside it
   4. create the DEBIAN/control file and supply the package information
  in it
   5. rename the parent folder to : -||
   6. |run the command : dpkg-deb --build app-folder|
   7. then setup the package to the emulator using dpkg -i packagename.deb
   8. in the emulator; press on the upper area of the desktop, and enter
  the desktop menu
   9. click on the Desktop menu ---> add widget ---> didn't find my
  application name in the widgets menu !!!

what's wrong with what i've done ?? can anybody help?

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to create a desktop applet

2009-11-17 Thread ibrahim
daniel wilms wrote:
> Hi
>> I can't seem to find the APIs needed to do such thing.
>> where should a look to find something like that?
> there is a good tutorial how to do that in the developer guide:
>
> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/Writing_Desktop_Widgets
>  
>
>
> Hope that helps,
>
> cheers Daniel
>
I tried the example, created a debian package out of the output, and 
installed it on the emulator and the n900 phone. BUT noting happened!
th eapplication is installed but i can't see the applicatin name in the 
"Add Widget" menu from the "Desktop menu".
What am I missing ?? is there anything else i can do to make the home 
widget visible to the "Add widget" and the Desktop??

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


how to create a desktop applet

2009-11-16 Thread ibrahim
greetings;

I am tryting to make an applet to show some information on the desktop. 
I can't seem to find the APIs needed to do such thing.
where should a look to find something like that?

thanx
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: how to manage phone Profiles in Maemo

2009-11-11 Thread ibrahim
thank you for the fast response;

#define MCE_DEVICE_MODE_CHANGE_REQ   "req_device_mode_change"

WoW!, that looks promising. But how can I use this inside my application 
to force changing of the Profile/mode of the phone ??

thanks in advance;

daniel wilms wrote:
> Hi,
>
>>  I was wondering if there are APIs to programatically manage/change 
>> the  phone profile (normal-silent-offline-meeting ..etc) in Maemo 5.
>>  Can I put the phone to silent or make it offline for sometime ??? Is 
>>  this controllable?
>>   
> have a look at this API [1]. This should provide what you want.
>
> 1. 
> http://maemo.org/api_refs/5.0/5.0-final/mce-dev/dbus-names_8h.html#1667ab075df4b54d6f85e8f0a540c041
>  
>
>
>
> Cheers Daniel
>
>
>

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to get n900 IMEI code in C

2009-11-11 Thread ibrahim
A small additional question if you don't mind ;
If I want to extract the IMSI of the phone SIM, can I use the same code 
you provided <http://talk.maemo.org/showpost.php?p=371496&postcount=45> 
but with changing the 
#define SIM_IMI_SIG "get_imei"
with something else ??? if yes what is it??

thanks again for your fast response
cheers;

Faheem Pervez wrote:
> Here is a quick example I've posted up:
> http://talk.maemo.org/showpost.php?p=371496&postcount=45
>
> Best Regards,
> Faheem
>
> On Tue, Nov 10, 2009 at 12:01 PM, ibrahim  wrote:
>   
>> greetings;
>>
>> I wonder if there is an API to get the n900 device IMEI code . I've been
>> searching for a long time with no result except for :
>> http://talk.maemo.org/showthread.php?t=34058
>> which didn't give me sufficient information.
>>
>> Can anybody help???
>> thanx alot
>> ___
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>> 
>
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


how to manage phone Profiles in Maemo

2009-11-11 Thread ibrahim
cheers;

I was wondering if there are APIs to programatically manage/change the 
phone profile (normal-silent-offline-meeting ..etc) in Maemo 5.
Can I put the phone to silent or make it offline for sometime ??? Is 
this controllable?
What component of Maemo 

 
is responsible for Profile Managment?

thanks in advance;

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to get n900 IMEI code in C

2009-11-10 Thread ibrahim
greetings;

I wonder if there is an API to get the n900 device IMEI code . I've been 
searching for a long time with no result except for :
http://talk.maemo.org/showthread.php?t=34058
which didn't give me sufficient information.

Can anybody help???
thanx alot
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


How to Send SMS programatically in Maemo

2009-11-04 Thread ibrahim
greetings;

I Want To Implement An App For Sending And Receiving SMS. I looked for 
telepathy and DBus APIs ,took a look at articles and books like 
http://people.collabora.co.uk/~danni/telepathy-book/ , but didn't help 
me much

I also read the Bluetooth example code provided in maemo.org 
documentation  like
http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Using_Connectivity_Components/Maemo_Connectivity#Bluetooth_DBUS_UI_dialogs
and 
https://garage.maemo.org/svn/maemoexamples/trunk/maemo-examples/example_bluetooth.c
and I figured out my application would be a lot like them, Maybe i only 
have yo use the APIs they used to get the SMS message done.

but the problem is I can't seem to find any documentation related to SMS 
handling. what parameters should I provide to the telepathy APIs to use 
the SMS sending functionality ??? (I mean the service name, dbus 
interface name and path)
what parameters should I provide for methods like :
dbus_g_bus_get 

 
(DBusBusType type, GError **error) // the type

dbus_g_proxy_new_for_name   (DBusGConnection 

 *connection,
 const char *name,
 const char *path,
 const char 
*interface); // what is the path and interface


dbus_g_proxy_call 

 
(DBusGProxy 
 
*proxy, const char *method, GError **error, GType first_arg_type,...) // 
what is the name of the method to call in order to send sms??
. etc

i am kind of lost and i dont't know where to find things like that

I appreciate any help
thanx in advance
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


can't install application to phone from local repository

2009-10-25 Thread ibrahim


--- Begin Message ---

cheers;

I created a local repository to host some test applications for Maemo 
fremantle device - and YES, the repository folders are visible to the 
phone- Added some packages and ran the "dpkg-scanpackages" utility to 
generate the "Package " and "Package.gz" files with no errors.


_the contents of the Package file :_

   Package: hello
   Version: 1.0
   Architecture: all
   Maintainer: Your Name mailto:y...@email.com>>
   Filename: hello-1.0.deb
   Size: 4158
   MD5sum: ce9ebc5398438693ae49d1f7c7679633
   Section: base
   Priority: optional
   Description: Hello World When you need some sunshine, just run this 
   small program!




the directory structure of my local repository is : 
/var/www/repo/dists/fremantle/free/binary-armel/

so, the url to the package files is :
http:///repo/dists/fremantle/free/binary-armel/ 



application packages and the index files "Package files" are inside the 
binary-armel/ folder


_ the ".install" file for the application :_

   [install]
   catalogues= hellocat
   package= hello

   [hellocat]
   name = hello
   uri= http:///repo 
   dist= fremantle
   components = free



opening the install file on the device with the Application Manager adds 
the catalogue to the catalogues list, the installation procedure starts 
saying:"preparing for the installation, please wait"
but the Application manager says that it couldn't download the 
application : "unable to download 'hello'. Application package not found".

Yet, the Application Manager's log doesn't show any error at all

the catalogue entry is added to the sources file 
"/etc/apt/sources.list.d/hildon-application-manager.list" as follows:

deb http:///repo  fremantle free

I tried to download the application from the Xterminal application - 
using the gainroot program:

apt-get install hello
And surprisingly, the application manages to download and install !
the question is : What is wrong with the way i deployed the application 
that the Application Manager refuses to install it, yet it is downloaded 
from the command line ? Am i missing something?



--- End Message ---
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


can't install application to phone from local repository

2009-10-22 Thread ibrahim
cheers;

I created a local repository to host some test applications for Maemo 
fremantle device - and YES, the repository folders are visible to the 
phone- Added some packages and ran the "dpkg-scanpackages" utility to 
generate the "Package " and "Package.gz" files with no errors.

_the contents of the Package file :_

Package: hello
Version: 1.0
Architecture: all
Maintainer: Your Name mailto:y...@email.com>>
Filename: hello-1.0.deb
Size: 4158
MD5sum: ce9ebc5398438693ae49d1f7c7679633
Section: base
Priority: optional
Description: Hello World When you need some sunshine, just run this 
small program!

 

the directory structure of my local repository is : 
/var/www/repo/dists/fremantle/free/binary-armel/
so, the url to the package files is :
http:///repo/dists/fremantle/free/binary-armel/ 


application packages and the index files "Package files" are inside the 
binary-armel/ folder

_ the ".install" file for the application :_

[install]
catalogues= hellocat
package= hello

[hellocat]
name = hello
uri= http:///repo 
dist= fremantle
components = free

 

opening the install file on the device with the Application Manager adds 
the catalogue to the catalogues list, the installation procedure starts 
saying:"preparing for the installation, please wait"
 but the Application manager says that it couldn't download the 
application : "unable to download 'hello'. Application package not found".
Yet, the Application Manager's log doesn't show any error at all

the catalogue entry is added to the sources file 
"/etc/apt/sources.list.d/hildon-application-manager.list" as follows:
deb http:///repo  fremantle free

I tried to download the application from the Xterminal application - 
using the gainroot program:
apt-get install hello
And surprisingly, the application manages to download and install !
the question is : What is wrong with the way i deployed the application 
that the Application Manager refuses to install it, yet it is downloaded 
from the command line ? Am i missing something?

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers