/srv/irclogs.ubuntu.com/2013/03/23/#ubuntu-app-devel.txt

greg_25ello folks, is there any tutorial how to integrate my c++/qt app into unity/gnome? (Desktop application)14:35
Phoenix87hallo17:09
Phoenix87so 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)?17:11
commandolinePhoenix87: http://ubuntuforums.org/showthread.php?t=1692936&s=cec8ebd4901be0135d2bbfefc4b92bac&p=10483071#post10483071 works for Ubuntu.18:04
commandolinecross platform, there isn't anything as far as I know.18:04
Phoenix87commandoline, cheers! I presume the database should be stored in the data diractory?18:05
commandolineconfig I'd say. Data is for, say, some image icons as far as I know.18:06
Phoenix87hmm18:06
Phoenix87even if the db is not intended for app configuration?18:06
Phoenix87in my case the db is to hold data about some documents in local folders18:07
commandolineSeems like you're right. Based on: http://ploum.net/post/207-modify-your-application-to-use-xdg-folders18:08
Phoenix87commandoline, thank you very much! :D18:10
JanCPhoenix87: I suggest you use a subdirectory under XDG_DATA_HOME20:36
JanCalso, use an existing (and preferably often-used) library/module to find that directory, to make sure your application follows the spec correctly20:38
JanCPhoenix87: 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?20:41
Phoenix87JanC, 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:08
JanCif 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 well22:12
stqnhey, 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:14
stqn(just wondering if I’ll be able to submit an update + price change and this be taken into account quickly)22:15
JanCgood question... (I don't know the answer)22:15
JanCI think changes to the description would require re-packaging?22:17
stqnhm I don’t know22:18
JanCdepends on where the USC pulls its descriptions from22:18
stqnI’ll be submitting as a .tar.gz, so someone will indeed have to convert it to .deb anyway…22:19
JanCI suppose it's something that could be done to make things easier for app developers22:20
JanCcertainly, changing the price shouldn't hurt22:21
stqnI thought of something crazy like starting at $1 and increasing the price every day … ;)22:22
stqnnot sure of which price to choose for my game.22:22
JanCallowing to change the description might have certain security implications22:22
stqn(ok, $2.99 is the minimum price)22:23
JanCwell, it could be useful to have a Christmas sale (or more appropriate this time of year: an Easter sale) or something like that too22:25
stqnyeah22:25

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!