X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=blobdiff_plain;f=debian%2Fpostinst;h=0175a397619cace0fcc7c810c4c24ea1af9bc7d2;hp=1eb18ce5b8add2ff73834f789e7ba5cba51e31f2;hb=c4420e60fd3a82e800e97df8409c57181dd2ee0d;hpb=82f5c8e9b32eb3ec1810c2c2812a9a7b52026981 diff --git a/debian/postinst b/debian/postinst index 1eb18ce..0175a39 100644 --- a/debian/postinst +++ b/debian/postinst @@ -20,13 +20,9 @@ set -e case "$1" in configure) - # If there's a MicroB browser process in the background, try to kill - # it off, because it's taking com.nokia.osso_browser and preventing - # us from working - browser_pids=`pidof browser || true` - if [ ! -z "$browser_pids" ]; then - kill $browser_pids || true - fi + # Try to start browser-switchboard as the user + # XXX: we're assuming here that the user is named "user" + /bin/su - user -c "/etc/X11/Xsession.post/35browser-switchboard" || true ;; abort-upgrade|abort-remove|abort-deconfigure)