Hi Pawel,
Addition: after we downloaded the newest iso image (May
25) and installed it, we replaced the libunity to
libunity-7.0 and we found Dash works abnormaly.
Cheers,
Jonas
At 2013-03-22 22:10:39,"Pawel Stolowski"
<pawel.stolowski@xxxxxxxxxxxxx>
<mailto:pawel.stolowski@xxxxxxxxxxxxx> wrote:
Hi guys,
How is the migration to the new API going, any
problems with it? I haven't got any questions so far,
can we assume it's going smooth? Please keep in mind
the weekend is coming, I'll be occasionally checking
my email, but if anything urgent pops up, there may
be little/no time for me to react, or we may need
help from somebody else (if it's beyond my expertise)
and this can be an issue. Please let me know if you
need anything as soon as possible.
Kind Regards,
Pawel
On 03/20/2013 04:39 AM, 张卫华 wrote:
Hi Pawel,
We will catch up with changes of new API and make
sure the scope can work in 13.04.
Regards,
Weihua
At 2013-03-15 17:26:30,"Pawel Stolowski"
<pawel.stolowski@xxxxxxxxxxxxx>
<mailto:pawel.stolowski@xxxxxxxxxxxxx> wrote:
Weihua, all,
As you might or might now know, the API changes
we planned for 13.04 didn't land on time. We're
currently working on finishing the transition to
the new API and finishing/polishing some areas
(in particular the new Home Scope); there is a
Feature Freeze Exception bug filed to get the
new stack landed if FFE is approved. In other
words, you should port your scope to the new API
and have a branch ready for merging when all the
base infrastructure we're working on lands,
otherwise your scope won't work in 13.04.
The latest API is available in libunity-7.0
branch of libunity, there is a number of scopes
ported to it already, plus Unity Dash branch.
There are two options for you when porting:
- base your scope on DeprecatedScope* class,
which requires only minimal changes to your code;
- inherit your scope on AbstractScope; this
requires more changes as you need to implement a
number of abstract methods; this is the
recommended way.
Both options impose no real changes to "business
logic" of scopes. If you choose option #1, you
should be able to migrate your code in a matter
of few hours tops.
Here is the FFe bug I mentioned:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1154229
There you'll find all relevant branches,
information about ppa etc. Take a look at any of
the scopes linked there (for default Ubuntu
scopes such as applications, files etc. you need
to be looking at -libunity7-compatible
branches). 100 scopes such as "wikipedia" and
other listed there are using the AbstractScope
approach, while our default scopes use
DeprecatedScope API.
Kind Regards,
Pawel
On 01/30/2013 02:15 AM, 张卫华 wrote:
Dear Pawel,
As you wrote in last email:
Until all these changes land in Ubuntu
13.04 repositories (which should happen in
~2-3 weeks), the only way to test a scope
against new API is:
- install latest Dee from trunk and
libunity-7 branch (don't install
system-wide as this would break your
current Unity environment; install them in
a dedicated subdirectory).
- compile your scope against libunity-7 and
run it manually from a terminal.
- test search queries with
'tool/libunity-tool -g' from libunity-7 branch.
We begin to port unity-china-music-scope to new
API. Before I start my work I have some questions:
1. how to install latest Dee and libunity-7
branch in a dedicated subdirectory? Do you mean
old version and new version can exist together?
2. how to test search queries with
'tool/libunity-tool -g' from libunity-7 branch?
Cheers,
Weihua