~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to HOOKS

  • Committer: Michael Vogt
  • Date: 2008-10-17 09:20:12 UTC
  • Revision ID: michael.vogt@ubuntu.com-20081017092012-7bk0w0h5rmor0ce0
* src/hooks.c:
  - add optional "OnlyAdminUsers" key (defaults to "true")
    so that non-admin users get not swamped with old 
    notifications after the ugprade to intrepid

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
   - the optional key "DisplayIf" will run a shell command (system())
60
60
     to figure out if the note should be displayed or not. If the command
61
61
     returns 0 the note will be displayed, otherwise it will be ignored
 
62
   - the optional key "OnlyAdminUsers" controls if the note is shown to all
 
63
     users or only to the admin users (users in the admin group). the
 
64
     default is "OnlyAdminsUsers=true".
62
65
 
63
66
Example
64
67
 
69
72
Terminal: True
70
73
GettextDomain: utf8-migration-assistant
71
74
DisplayIf: shell-command
 
75
OnlyAdminUsers: False
72
76
Description: This command will convert your stuff into UTF-8.
73
77
 Use this command if you want a working gnome desktop and you
74
78
 feel the world should be a better place.