Why does my Quickly app install in /usr/bin instead of /opt? [closed]

As I've finished my app for the App Showdown, I ran quickly submitubuntu, but I found that my app is installed inside /usr/bin. What? I need it at /opt! How can I fix this?

-

closed as too localized by David Planella, izx, hbdgaf, andrewsomething, John S GruberAug 20 '12 at 2:40

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Sorry, Eliah! :P –  espectalll123 Jul 6 '12 at 16:47
FYI, you've got three questions in the same question. Each question should generally be separate. –  Thomas W. Jul 6 '12 at 16:48
Yes please, could you modify this question so it's a single question and open separate ones for the others? Thanks! –  David Planella Jul 6 '12 at 16:58
Splitting questions... ;) –  espectalll123 Jul 6 '12 at 17:53
Done! Now you have two questions instead of one. Second one is askubuntu.com/questions/160561/removing-my-app-from-ubuntus-ppa –  espectalll123 Jul 6 '12 at 18:00

Right, after running quickly package --verbose --extras (which does essentially the same as quickly submitubuntu except for uploading to a PPA) it looks your package does not even build.
It looks to me as if it might be an issue with the source tree layout. You've ported your app to Quickly, but you might need to make it a bit more Quickly-compliant. For one, I spotted that the virtuam folder where Quickly expects to find the app code is missing. You sould create and move your code there, instead of having it in virtuam_lib.
I've also noticed that in vui.py you've got a hardcoded path: os.chdir('/usr/share/virtuam/ui'). In general, hardcoded paths are considered bad practice, as they make your app less portable. Have a look at how Quickly loads the .ui file by creating an example app with quickly create ubuntu-application foo.
Run quickly create ubuntu-application foo, then have a look at the foo_lib/Window.py. The builder is loaded with the get_builder function from the helpers.py module. But as I say, rather than a question, this issue requires a conversation, so I'd recommend sending an e-mail either to the ubuntu-app-devel mailing list or the quickly-talk mailing list. –  David Planella Jul 7 '12 at 10:38