Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-19 Thread Claudio Saavedra
El mar, 08-12-2009 a las 22:27 +0200, Claudio Saavedra escribió:
 
   1) How can I start it automatically without having to start it
 manually?
  
   It should do already, after installation, and on the session start
   (after the X session is ready).
  
  it didn't after installation, but it did after a device restart
 
 It's odd, but it works fine if you install the package by hand. I'll
 have to look into this.

The problem was not running dsmetool through run-standalone.sh. The
process was starting, but it was failing to initialize mafw-shared. 

I pushed a new package to extras-devel. This installs fine with ham.

Claudio

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Riku Voipio
ext Claudio Saavedra wrote:
 El mar, 08-12-2009 a las 17:50 +, Graham Cobb escribió:
 On Tuesday 08 December 2009 17:23:15 Claudio Saavedra wrote:
 I noticed that the postinst script was missing the debhelper token used
 by dh_installxsession to plug its magic. Now the Xsession script should
 be installed properly.
 What is dh_installxsession?  I can't find any documentation on it.  Probably 
 looking in the wrong place!

 It's part of upstart-dev. I don't know where it's documented, though. I
 simply looked at hildon-desktop and some other modules' packages.

It is not really necessary/recommended to use it anymore. One can just
copy the startup script into /etc/X11/Xession.post like one would do to
any file in /etc. Same is true to dh_installupstart.

But why does mafw-lastfm need to start at boot time and keep running all
the time? Is it not possible to make it start/stop when playback
stops/starts?

Still, looking forward to seeing mafw-lastfm in extras-testing =)
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Claudio Saavedra
El mar, 08-12-2009 a las 21:20 +0100, Andrea Grandi escribió:
 Hi,
 
 another idea: what about displaying Listening with Nokia N900
 instead of Listening with mafw-lastfm ?

If you can prove that there's no legal issue with using the 'Nokia N900'
brand with a third party application, maybe. Still, mafw-lastfm should
work with any other device using mafw, so restricting it's app id only
to the 'Nokia N900' now is not something I would like, at least not for
the long term.

Of course, I could request other application ids, one for each supported
device. Not sure if it's worth the burden. Unless users really care to
show off that they own a N900, or a whatever device is released in the
future.

Claudio


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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Juan A. Suarez Romero
On Wed, 2009-12-09 at 13:15 +0200, Claudio Saavedra wrote:
 El mar, 08-12-2009 a las 21:20 +0100, Andrea Grandi escribió:
  Hi,
  
  another idea: what about displaying Listening with Nokia N900
  instead of Listening with mafw-lastfm ?
 
 If you can prove that there's no legal issue with using the 'Nokia N900'
 brand with a third party application, maybe. Still, mafw-lastfm should
 work with any other device using mafw, so restricting it's app id only
 to the 'Nokia N900' now is not something I would like, at least not for
 the long term.
 


Maybe using Listening with p, where p is a used-defined string
that can be customized through the applet.

J.A.


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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Claudio Saavedra
El mié, 09-12-2009 a las 10:30 +0200, Riku Voipio escribió:
 ext Claudio Saavedra wrote:
  El mar, 08-12-2009 a las 17:50 +, Graham Cobb escribió:
  On Tuesday 08 December 2009 17:23:15 Claudio Saavedra wrote:
  I noticed that the postinst script was missing the debhelper token used
  by dh_installxsession to plug its magic. Now the Xsession script should
  be installed properly.
  What is dh_installxsession?  I can't find any documentation on it.  
  Probably 
  looking in the wrong place!
 
  It's part of upstart-dev. I don't know where it's documented, though. I
  simply looked at hildon-desktop and some other modules' packages.
 
 It is not really necessary/recommended to use it anymore. One can just
 copy the startup script into /etc/X11/Xession.post like one would do to
 any file in /etc. Same is true to dh_installupstart.

OK, roger that. I'll change it for future releases. I guess there are
plenty of packages still using dh_installxsession, though.

 
 But why does mafw-lastfm need to start at boot time and keep running all
 the time? Is it not possible to make it start/stop when playback
 stops/starts?

I am not 100% sure that's feasible, since it's separate process
communicated with mafw through libmafw-shared. I don't think mafw has
any way to start/stop processes on demand that would fit this. And I
don't think doing so would have any important benefit.

Claudio

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Claudio Saavedra
El mié, 09-12-2009 a las 12:29 +0100, Juan A. Suarez Romero escribió:
 
 Maybe using Listening with p, where p is a used-defined string
 that can be customized through the applet.
 

Short answer: that's not feasible.

Long answer: what you see displayed in the user last.fm page is the name
of the application, as registered by its developer when requesting a
scrobbling client id. One application - one client id - one
application name displayed there.

Then again, having one client id per device should be feasible. It's a
matter of discussing it with the last.fm people and being sure that we
are not stepping on Nokia's toes by using 'Nokia N900' as the
application name.

Claudio


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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Alberto Garcia
On Tue, Dec 08, 2009 at 09:20:48PM +0100, Andrea Grandi wrote:

 another idea: what about displaying Listening with Nokia N900
 instead of Listening with mafw-lastfm ?

The thing is that you can scrobble from the N900 using different apps,
and you can also (in theory) use mafw-lastfm from a platform other
than the N900, so ...

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Graham Cobb
On Wednesday 09 December 2009 08:30:49 Riku Voipio wrote:
 It is not really necessary/recommended to use it anymore. One can just
 copy the startup script into /etc/X11/Xession.post like one would do to
 any file in /etc. Same is true to dh_installupstart.

OK -- that makes sense.  So, is there any documentation on 
using /etc/X11/Xsession.post?  It seems that somewhere the documentation 
should explain that that is how to start a user daemon process or take action 
on X session startup (and that /etc/event.d is the way to tell upstart to 
start a system daemon process or take action on system boot).

Out of interest, why is there a .post directory (instead of just using .d)?

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-09 Thread Juan A. Suarez Romero
On Wed, 2009-12-09 at 13:40 +0200, Claudio Saavedra wrote:
 Long answer: what you see displayed in the user last.fm page is the
 name
 of the application, as registered by its developer when requesting a
 scrobbling client id. One application - one client id - one
 application name displayed there.
 

Then, I prefer to keep mafw-lastfm name.

J.A.


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


mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi all,

I was trying to test mafw-lastfm plugin on my N900 but I cannot make it work.
I've installed it from extras-devel, I've configured it following the
istructions contained in README and I've restarted the device.

The plugin is not started automatically and I don't think the average
user would be able to understand how to start a mafw plugin.

Could you please fix this for the next release? Thanks :)

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Claudio Saavedra
El mar, 08-12-2009 a las 16:13 +0100, Andrea Grandi escribió:
 Hi all,
 
 I was trying to test mafw-lastfm plugin on my N900 but I cannot make it work.
 I've installed it from extras-devel, I've configured it following the
 istructions contained in README and I've restarted the device.
 
 The plugin is not started automatically and I don't think the average
 user would be able to understand how to start a mafw plugin.

  $ mafw-lastfm

That should be enough to start it. Did you try to start it manually?

 
 Could you please fix this for the next release? Thanks :)
 

Since this is maemo-developers, I'll ask: did you try to debug why it
doesn't start during the beginning of the session or whether it starts
and exits, crashes, or whatever?

Claudio



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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi,

2009/12/8 Claudio Saavedra csaave...@igalia.com:
 El mar, 08-12-2009 a las 16:13 +0100, Andrea Grandi escribió:
 Hi all,

 I was trying to test mafw-lastfm plugin on my N900 but I cannot make it work.
 I've installed it from extras-devel, I've configured it following the
 istructions contained in README and I've restarted the device.

 The plugin is not started automatically and I don't think the average
 user would be able to understand how to start a mafw plugin.

  $ mafw-lastfm

 That should be enough to start it. Did you try to start it manually?

yes, I tried this while I was connected to it via ssh. I controlled
with ps -aux | grep mafw if it was running, but I wasn't.
Is it a standalone plugin or does it have to be started with the mafw wrapper?

 Since this is maemo-developers, I'll ask: did you try to debug why it
 doesn't start during the beginning of the session or whether it starts
 and exits, crashes, or whatever?

no error messages... it just stay without doing anything after you
execute it... it doesn't return.

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Claudio Saavedra
El mar, 08-12-2009 a las 16:49 +0100, Andrea Grandi escribió:
 Hi,
 
 2009/12/8 Claudio Saavedra csaave...@igalia.com:
  El mar, 08-12-2009 a las 16:13 +0100, Andrea Grandi escribió:
  Hi all,
 
  I was trying to test mafw-lastfm plugin on my N900 but I cannot make it 
  work.
  I've installed it from extras-devel, I've configured it following the
  istructions contained in README and I've restarted the device.
 
  The plugin is not started automatically and I don't think the average
  user would be able to understand how to start a mafw plugin.

I noticed that the postinst script was missing the debhelper token used
by dh_installxsession to plug its magic. Now the Xsession script should
be installed properly.

I pushed a new package to the autobuilder queue already.

Claudio

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi,

2009/12/8 Claudio Saavedra csaave...@igalia.com:
 I noticed that the postinst script was missing the debhelper token used
 by dh_installxsession to plug its magic. Now the Xsession script should
 be installed properly.

 I pushed a new package to the autobuilder queue already.

thank you so much Claudio!

p.s: I was thinking about writing a very simple GUI in Python/Gtk to
let the user enter his username and password, generate the md5sum
automatically and create the .mafw-lastfm, do you think this could be
useful? If you're already working on it I won't start working on it.

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Claudio Saavedra
El mar, 08-12-2009 a las 18:30 +0100, Andrea Grandi escribió:
 
 p.s: I was thinking about writing a very simple GUI in Python/Gtk to
 let the user enter his username and password, generate the md5sum
 automatically and create the .mafw-lastfm, do you think this could be
 useful? If you're already working on it I won't start working on it. 

There is already a control panel applet for this since 0.0.2.

Claudio

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi,

2009/12/8 Claudio Saavedra csaave...@igalia.com:
 El mar, 08-12-2009 a las 18:30 +0100, Andrea Grandi escribió:

 p.s: I was thinking about writing a very simple GUI in Python/Gtk to
 let the user enter his username and password, generate the md5sum
 automatically and create the .mafw-lastfm, do you think this could be
 useful? If you're already working on it I won't start working on it.

 There is already a control panel applet for this since 0.0.2.

doh! I created the file by hand :\
Really didn't know anything about it, sorry.

Ok, I'll test the incoming version and maybe I'll write a little blog
post to let the people know about it and how it works.

Thanks again,

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Graham Cobb
On Tuesday 08 December 2009 17:23:15 Claudio Saavedra wrote:
 I noticed that the postinst script was missing the debhelper token used
 by dh_installxsession to plug its magic. Now the Xsession script should
 be installed properly.

What is dh_installxsession?  I can't find any documentation on it.  Probably 
looking in the wrong place!

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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi,

2009/12/8 Claudio Saavedra csaave...@igalia.com:
 I pushed a new package to the autobuilder queue already.

I'm testing the new package right now. After installing it I had to
start it manually from N900 terminal, but it's working because last.fm
website is displaying in realtime what I'm listening to.

A couple of question now:

1) How can I start it automatically without having to start it manually?

2) If I'm listening to some music but I don't have any connection at
the moment, are the tracks queued to be scrobbled once I get an
Internet connection?

Thanks,

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Claudio Saavedra
El mar, 08-12-2009 a las 20:52 +0100, Andrea Grandi escribió:
 Hi,
 
 2009/12/8 Claudio Saavedra csaave...@igalia.com:
  I pushed a new package to the autobuilder queue already.
 
 I'm testing the new package right now. After installing it I had to
 start it manually from N900 terminal

Well, the debian prerm and postinst scripts should be taking care of
restarting the daemon during an upgrade, so this should be working
automatically.

  but it's working because last.fm
 website is displaying in realtime what I'm listening to.
 
 A couple of question now:
 
 1) How can I start it automatically without having to start it manually?

It should do already, after installation, and on the session start
(after the X session is ready).

 
 2) If I'm listening to some music but I don't have any connection at
 the moment, are the tracks queued to be scrobbled once I get an
 Internet connection?

Yes, tracks are queued. Once there is a connection available, the queue
is flushed and the tracks are sent to last.fm. This doesn't happen
immediately after the connection is available, though, but only when you
start listening again. This could be improved.

Another limitation is that the queue is not serialized, so if the
process is terminated for any reason, the queue will be emptied. This is
also important to fix.

Claudio


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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Claudio Saavedra
El mar, 08-12-2009 a las 17:50 +, Graham Cobb escribió:
 On Tuesday 08 December 2009 17:23:15 Claudio Saavedra wrote:
  I noticed that the postinst script was missing the debhelper token used
  by dh_installxsession to plug its magic. Now the Xsession script should
  be installed properly.
 
 What is dh_installxsession?  I can't find any documentation on it.  Probably 
 looking in the wrong place!

It's part of upstart-dev. I don't know where it's documented, though. I
simply looked at hildon-desktop and some other modules' packages.

Claudio


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


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi,

2009/12/8 Claudio Saavedra csaave...@igalia.com:
 1) How can I start it automatically without having to start it manually?

 It should do already, after installation, and on the session start
 (after the X session is ready).

it didn't after installation, but it did after a device restart

 Yes, tracks are queued. Once there is a connection available, the queue
 is flushed and the tracks are sent to last.fm. This doesn't happen
 immediately after the connection is available, though, but only when you
 start listening again. This could be improved.

yes, I've noticed looking in the terminal debug messages that it keeps
doubling the time of retry. It could just check for internet
connection every 60 or 120 seconds (maybe configurable by user).

 Another limitation is that the queue is not serialized, so if the
 process is terminated for any reason, the queue will be emptied. This is
 also important to fix.

I don't know how much data you have to save for every song scrobbled,
but what about sqlite?

p.s: in the configuration dialog, before launching the GUI, the icon is missing.

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started

2009-12-08 Thread Andrea Grandi
Hi,

another idea: what about displaying Listening with Nokia N900
instead of Listening with mafw-lastfm ?

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.andreagrandi.it/pgp_key.asc
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers