Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My app use systay. I know I should use gsettings to set the 'systray-whitelist' key.

Now I would like to package my app. After I googled, I guess dh_installgsettings can help me.

So I put a file named 'myapp.gsettings-override' and put the following content:

com.canonical.Unity.Panel]
systay-whitelist=['myapp']
  1. Am I right?
  2. Will 'myapp' be appended to systray-whitelist?
share|improve this question
add comment

1 Answer

You've got part of it right. This is what you need to do in order to modify a setting like you want to.

1) Add override_dh_installgsettings to debian/rules:

override_dh_installgsettings:
dh_installgsettings --priority=50

2) Add the gsettings-override file like you did.

Now the bad news. Your change will not append to the whitelist, it will overwrite it. In addition, if the user has modified the setting in any way at any time, their modifications will always take precedence.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.