Thread: postinst without root
a .deb package can have postinst script runs after installation, works fine, runs root. there way make postinst script leave root , run normal user? commands, editing gconf settings, need run normal user.
i don't know gconf, if change default settings computer, users (except have manually overrided default value paricular key) recieve changes.
how change defaults? don't know myself. remember ubuntu-light-theme made controversial change default setting in lucid (i.e. shift window command buttons left instead of right). i've looked @ source package , seem find 'gconf-defaults' file in debian directory. `man dh_gconf` more info.
how run normal user? don't know. seem impossible so. how should dpkg decide normal user run , if does, dpkg not supposed make user-specific change. if user deletes his/her account, how uninstall? also, why should 1 user affected change?
finally, cannot run script each user 1 one. because these changes not affect user accounts created after installation of package.
hope helps.![]()
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs postinst without root
Ubuntu
Comments
Post a Comment