summaryrefslogtreecommitdiffstats
path: root/doinst.sh
blob: e2247681866650f1f72ad5b089a8428ad3de0993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

DEFAULT_SESSION_FILE=usr/share/gnome/default.session
if [ -f $DEFAULT_SESSION_FILE ]; then
  ID=
  while IFS=, read CURRENTID REST
  do
    ID=$CURRENTID
  done < $DEFAULT_SESSION_FILE

  ID=$(( $ID + 1 ))

  echo "${ID},id=default${ID}" >> $DEFAULT_SESSION_FILE
  echo "${ID},Priority=50" >> $DEFAULT_SESSION_FILE
  echo "${ID},RestartCommand=slapt-update-notifier --sm-client-id default${ID}" >> $DEFAULT_SESSION_FILE

fi