Ubuntu Tweak was submitted to the ARB
Allison Randal
allison at lohutok.net
Fri Feb 24 23:00:18 UTC 2012
Hi Ding,
It's approved that you can install the essential files for the dbus
service in /usr/share, specifically, you can install .service files in
/usr/share/dbus-1/services/.
What files are you installing in /usr/share/polkit-1 and
/usr/share/glib-2.0? They may be installable into /opt. If not, let us
know the details of why it doesn't work, and we'll figure out what's
possible.
Icons you should install in /opt/extras.ubuntu.com/ubuntu-tweak. You can
set the path to the icon in the .desktop file for the app.
The python files that you're currently installing in /usr/lib, can be
installed in /opt/extras.ubuntu.com/ubuntu-tweak. You'll need to add the
/opt paths to Python's sys.path in your app, but that's pretty
straightforward. Here's one common code snippet:
======
if os.path.abspath(__file__).startswith('/opt'):
sys.path.insert(0, '/opt/extras.ubuntu.com/ubuntu-tweak')
======
The configuration files should also be installed in /opt, or into the
user's home directory if it's user-specific. (The app will only be able
to read from /opt, not write to it, so if users change the config file,
it'll have to be in their home directory.) You can use a similar path
check to the one above for sys.path, and set an alternate location for
the config file when the app is installed in /opt. Or, you can make the
change as a patch in the packaging files. Either works, so pick
whichever is easier for you.
BTW, a side-comment about the name, the Ubuntu trademark guidelines seem
to discourage naming apps like "Ubuntu Tweak", and encourage naming them
more like "Tweak for Ubuntu". For more details see:
http://www.ubuntu.com/aboutus/trademarkpolicy
If you have any questions on how to make these changes, you can reply to
this message, get in touch with us on the
ubuntu-app-devel at lists.ubuntu.com mailing list, or on IRC
#ubuntu-app-devel on Freenode.
Thanks,
Allison
More information about the App-review-board
mailing list