After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605891 - Move Paths into Hyena.
Move Paths into Hyena.
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks: 605902
 
 
Reported: 2010-01-02 12:21 UTC by Ruben Vermeersch
Modified: 2010-04-12 08:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move Paths and XdgBaseDirectorySpec into Hyena. (27.59 KB, patch)
2010-01-02 12:21 UTC, Ruben Vermeersch
none Details | Review
Updated patch (47.43 KB, patch)
2010-01-02 15:40 UTC, Ruben Vermeersch
none Details | Review
Move Paths and XdgBaseDirectorySpec into Hyena. (23.69 KB, patch)
2010-04-11 14:25 UTC, Ruben Vermeersch
none Details | Review
Updated patch (36.60 KB, patch)
2010-04-11 14:53 UTC, Ruben Vermeersch
committed Details | Review

Description Ruben Vermeersch 2010-01-02 12:21:06 UTC
This patch moves Paths and XdgBaseDirectorySpec into Hyena, which allows it to
be used by other applications (F-Spot currently ships a copy of
XdgBaseDirectorySpec).

This patch consists of a number of things:
 * XdgBaseDirectorySpec is moved into Hyena.
 * The legacy application data path is moved to a new LegacyPaths class.
 * The rest of Paths is moved into Hyena.
 * All other fixes are related to getting it building with the moved classes.

One special thing to note is the new ApplicationName member in Paths. As I
didn't want anything banshee-specific in Paths, I had to introduce this new
member. This needs to be initialized at application startup.
Comment 1 Ruben Vermeersch 2010-01-02 12:21:10 UTC
Created attachment 150674 [details] [review]
Move Paths and XdgBaseDirectorySpec into Hyena.
Comment 2 Ruben Vermeersch 2010-01-02 12:32:38 UTC
I just noticed that this was pushed as a git diff. So you'll probably need to use git-apply instead of patch when applying (and testing) this.
Comment 3 Ruben Vermeersch 2010-01-02 12:34:48 UTC
This patch is a prerequisite for being able to move Banshee.Configuration into Hyena, which I want to adopt in F-Spot. This was my main motivation for writing it, as XmlConfigurationClient depends on Paths.
Comment 4 Ruben Vermeersch 2010-01-02 15:40:12 UTC
Created attachment 150683 [details] [review]
Updated patch

Updated version, which corrects the initialization order of variables.
Comment 5 Ruben Vermeersch 2010-01-04 12:23:07 UTC
This patch probably still needs changes to the .csproj files, other than that, it can be reviewed (I will post an updated version with the .csproj modifications, but don't hold back on that for a review please).
Comment 6 Ruben Vermeersch 2010-04-11 14:25:30 UTC
Created attachment 158423 [details] [review]
Move Paths and XdgBaseDirectorySpec into Hyena.

This patch moves Paths and XdgBaseDirectorySpec into Hyena, which allows it to
be used by other applications (F-Spot currently ships a copy of
XdgBaseDirectorySpec).

This patch consists of a number of things:
 * XdgBaseDirectorySpec is moved into Hyena.
 * The legacy application data path is moved to a new LegacyPaths class.
 * The rest of Paths is moved into Hyena.
 * All other fixes are related to getting it building with the moved classes.

One special thing to note is the new ApplicationName member in Paths. As I
didn't want anything banshee-specific in Paths, I had to introduce this new
member. This needs to be initialized at application startup.
Comment 7 Ruben Vermeersch 2010-04-11 14:53:19 UTC
Created attachment 158424 [details] [review]
Updated patch

Updated patch, with a revised commit message and monodevelop updates.
Comment 8 Ruben Vermeersch 2010-04-11 14:54:11 UTC
Since XdgBaseDirectorySpec is already in Hyena, this part of the patch has also been dropped.
Comment 9 Alexander Kojevnikov 2010-04-12 00:51:58 UTC
Thanks Ruben! I committed a slightly modified version of the patch, the YouTube extension and some tests did not compile. Could you make sure all extensions compile in the other big reorganisations?

commit 2d1dada540c07344948c725d63f70a378012fc23
Author: Ruben Vermeersch <ruben@savanne.be>
Date:   Mon Apr 12 10:41:24 2010 +1000

    Move `Paths` to Hyena (bgo#605891)
    
    This patch moves Paths into Hyena, which allows it to be used by other
    applications.
    
    This patch consists of a number of things:
    
     * The legacy application data path is moved to a new LegacyPaths class.
     * The rest of Paths is moved into Hyena.
     * All other fixes are related to getting it building with the moved
       class.
    
    One special thing to note is the new ApplicationName member in Paths.
    As I didn't want anything banshee-specific in Paths, I had to
    introduce this new member. This needs to be initialized at application
    startup.
    
    Signed-off-by: Alexander Kojevnikov <alexander@kojevnikov.com>
Comment 10 Ruben Vermeersch 2010-04-12 08:06:14 UTC
Oh yes sorry, I build with the youtube extension disabled due to missing dependencies. Will keep that into account in the future. Thanks!