[14:35] <greg_25> ello folks, is there any tutorial how to integrate my c++/qt app into unity/gnome? (Desktop application)
[17:09] <Phoenix87> hallo
[17:11] <Phoenix87> so my app needs to create a database, say using sqlite, therefore it has to create a folder somewhere, like .appname inside the current user's home directory. Is there a canonical way of achieving this target (at least in python)?
[18:04] <commandoline> Phoenix87: http://ubuntuforums.org/showthread.php?t=1692936&s=cec8ebd4901be0135d2bbfefc4b92bac&p=10483071#post10483071 works for Ubuntu.
[18:04] <commandoline> cross platform, there isn't anything as far as I know.
[18:05] <Phoenix87> commandoline, cheers! I presume the database should be stored in the data diractory?
[18:06] <commandoline> config I'd say. Data is for, say, some image icons as far as I know.
[18:06] <Phoenix87> hmm
[18:06] <Phoenix87> even if the db is not intended for app configuration?
[18:07] <Phoenix87> in my case the db is to hold data about some documents in local folders
[18:08] <commandoline> Seems like you're right. Based on: http://ploum.net/post/207-modify-your-application-to-use-xdg-folders
[18:10] <Phoenix87> commandoline, thank you very much! :D
[20:36] <JanC> Phoenix87: I suggest you use a subdirectory under XDG_DATA_HOME
[20:38] <JanC> also, use an existing (and preferably often-used) library/module to find that directory, to make sure your application follows the spec correctly
[20:41] <JanC> Phoenix87: also, does that database contain information that is also included in those documents (so that it can be regenerated from the documents) or is it additional information?
[22:08] <Phoenix87> JanC, thank you! I think I managed to solve this by following commandoline suggestion of using the xdg python library. And of course I'm using xdg_data_home :). As for the info in the database, it is extra info coming from the internet, so I really need to store that for future use.
[22:12] <JanC> if your application is based on a framework like Gtk or Qt, those probable also have some functions to find those dirs, but I assume the framework-independent Python library should work as well
[22:14] <stqn> hey, do you know if commercial applications submitted to the ubuntu software center can have their price changed at will? and description… and if the updates need to be validated by canonical?
[22:15] <stqn> (just wondering if I’ll be able to submit an update + price change and this be taken into account quickly)
[22:15] <JanC> good question... (I don't know the answer)
[22:17] <JanC> I think changes to the description would require re-packaging?
[22:18] <stqn> hm I don’t know
[22:18] <JanC> depends on where the USC pulls its descriptions from
[22:19] <stqn> I’ll be submitting as a .tar.gz, so someone will indeed have to convert it to .deb anyway…
[22:20] <JanC> I suppose it's something that could be done to make things easier for app developers
[22:21] <JanC> certainly, changing the price shouldn't hurt
[22:22] <stqn> I thought of something crazy like starting at $1 and increasing the price every day … ;)
[22:22] <stqn> not sure of which price to choose for my game.
[22:22] <JanC> allowing to change the description might have certain security implications
[22:23] <stqn> (ok, $2.99 is the minimum price)
[22:25] <JanC> well, it could be useful to have a Christmas sale (or more appropriate this time of year: an Easter sale) or something like that too
[22:25] <stqn> yeah