I tried to package my sms160 app to upload to devel, and I wanted to create shortcutd configuration if it is not there. I saw that debian conffiles addresses the issue by putting the configuration file where it should and asks the user wether he wants it to be replaced with a new one.
After the first "press enter to continue" I created a file .py2deb_build_folder/sms160/debian/conffiles with contents
Code:
/home/user/.shortcutd/config
I also put a src/home/user/.shortcutd/config file with contents
After the first "press enter to continue" I created a file .py2deb_build_folder/sms160/debian/conffiles with contents
{ "proximityOn": 0, "proximityVibrateOn": 1, "camerakeyOn": 1, "proximityShortPress": "dashboard", "proximityLongPress": "phone", "proximityHold": "disabled", "camerakeyShortPress": "dashboard", "camerakeyLongPress": "desktop", "shellCommand": "python /home/user/transform.py" }Last edited by qwazix; 2011-08-16 at 12:23.