Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

DBus service name

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


anidel at gmail

Nov 8, 2009, 2:57 PM

Post #1 of 6 (501 views)
Permalink
DBus service name

Hi again :)

there's no two without a three... so.. third question of the day.
I am using com.nokia.xournal as DBus service name. I wanted to change it.
Thus I went to xournal.service and xournal.desktop files and changed
it to something less nokian and more maemian like org.maemo.xournal.

Guess what.. Xournal gets killed after a few minutes.
Reverted back to com.nokia.xournal and it works again.

Why's that?
Do I have to restart the system, is there some cache I am not aware of?

Thanks.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


henrik.hedberg at innologies

Nov 8, 2009, 10:04 PM

Post #2 of 6 (470 views)
Permalink
Re: DBus service name [In reply to]

Aniello Del Sorbo wrote:

> there's no two without a three... so.. third question of the day.
> I am using com.nokia.xournal as DBus service name. I wanted to change it.
> Thus I went to xournal.service and xournal.desktop files and changed
> it to something less nokian and more maemian like org.maemo.xournal.
>
> Guess what.. Xournal gets killed after a few minutes.
> Reverted back to com.nokia.xournal and it works again.

See:

http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/LibOSSO_library#Maemo_initialization

The name in OSSO initialization, .desktop file, and .service file
must be the same.

BR,

Henrik

--
Henrik Hedberg - http://www.henrikhedberg.net/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Nov 9, 2009, 1:03 AM

Post #3 of 6 (469 views)
Permalink
Re: DBus service name [In reply to]

2009/11/9 Henrik Hedberg <henrik.hedberg [at] innologies>:
> Aniello Del Sorbo wrote:
>
>> there's no two without a three... so.. third question of the day.
>> I am using com.nokia.xournal as DBus service name. I wanted to change it.
>> Thus I went to xournal.service and xournal.desktop files and changed
>> it to something less nokian and more maemian like org.maemo.xournal.
>>
>> Guess what.. Xournal gets killed after a few minutes.
>> Reverted back to com.nokia.xournal and it works again.
>
>   See:
>
> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/LibOSSO_library#Maemo_initialization
>
>   The name in OSSO initialization, .desktop file, and .service file must be
> the same.
>
>   BR,
>
>   Henrik
>

Thanks Henrik,

I know that, and they were the same... but still didn't work.
It works now that I reverted back to com.nokia.xournal...

Weird

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Nov 9, 2009, 1:08 AM

Post #4 of 6 (470 views)
Permalink
Re: DBus service name [In reply to]

I got it now.

I initialize osso with a call like:

osso_initialize (PACKAGE, VERSION, 0, NULL);

where PACKAGE is the Debian name "xournal". I think com.nokia is then
automatically added.
I think I had this issue already and figured it out already in Diablo
but never bothered to change.

Thanks for triggering it back :)

Aniello

2009/11/9 Aniello Del Sorbo <anidel [at] gmail>:
> 2009/11/9 Henrik Hedberg <henrik.hedberg [at] innologies>:
>> Aniello Del Sorbo wrote:
>>
>>> there's no two without a three... so.. third question of the day.
>>> I am using com.nokia.xournal as DBus service name. I wanted to change it.
>>> Thus I went to xournal.service and xournal.desktop files and changed
>>> it to something less nokian and more maemian like org.maemo.xournal.
>>>
>>> Guess what.. Xournal gets killed after a few minutes.
>>> Reverted back to com.nokia.xournal and it works again.
>>
>>   See:
>>
>> http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Application_Development/LibOSSO_library#Maemo_initialization
>>
>>   The name in OSSO initialization, .desktop file, and .service file must be
>> the same.
>>
>>   BR,
>>
>>   Henrik
>>
>
> Thanks Henrik,
>
> I know that, and they were the same... but still didn't work.
> It works now that I reverted back to com.nokia.xournal...
>
> Weird
>
> --
> anidel
> Sent from London, Eng, United Kingdom
>



--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


davidk at openismus

Nov 9, 2009, 1:17 AM

Post #5 of 6 (470 views)
Permalink
Re: DBus service name [In reply to]

On 2009-11-09 09:08, Aniello Del Sorbo <anidel [at] gmail> wrote:
>I got it now.
>
>I initialize osso with a call like:
>
>osso_initialize (PACKAGE, VERSION, 0, NULL);
>
>where PACKAGE is the Debian name "xournal". I think com.nokia is then
>automatically added.

Correct:
http://maemo.org/api_refs/5.0/5.0-final/libosso/group__Init.html#g05d45d1e72c2cd74f665086225141431

--
David King | http://amigadave.blogspot.com/ | davidk [at] openismus
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Nov 9, 2009, 2:28 AM

Post #6 of 6 (477 views)
Permalink
Re: DBus service name [In reply to]

2009/11/9 David King <davidk [at] openismus>:
> On 2009-11-09 09:08, Aniello Del Sorbo <anidel [at] gmail> wrote:
>>I got it now.
>>
>>I initialize osso with a call like:
>>
>>osso_initialize (PACKAGE, VERSION, 0, NULL);
>>
>>where PACKAGE is the Debian name "xournal". I think com.nokia is then
>>automatically added.
>
> Correct:
> http://maemo.org/api_refs/5.0/5.0-final/libosso/group__Init.html#g05d45d1e72c2cd74f665086225141431
>

Yup.
I strongly remember this issue already in Diablo.. and 'probably' it
was me that triggered that comments there.
Oh well.. if it was me double shame on me for not remembering this
straight away :)

--
anidel
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.