#!/bin/sh
# postrm

if [ -f "/home/user/.osso/call-ui.ini" ];
then
 sed -i 's/ssc=1/ssc=0/' /home/user/.osso/call-ui.ini
 run-standalone.sh dbus-send --type=method_call \
   --dest=org.freedesktop.Notifications /org/freedesktop/Notifications \
   org.freedesktop.Notifications.SystemNoteInfoprint \
   string:"restarting phone application"
 killall -9 rtcom-call-ui
else
 run-standalone.sh dbus-send --type=method_call \
   --dest=org.freedesktop.Notifications /org/freedesktop/Notifications \
   org.freedesktop.Notifications.SystemNoteInfoprint \
   string:"No file! Nothing to uninstall. Quit."
 return 5
fi

