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

« back to all changes in this revision

Viewing changes to HOOKS

  • Committer: Julian Andres Klode
  • Date: 2019-04-29 19:38:51 UTC
  • Revision ID: juliank@ubuntu.com-20190429193851-501astod6vchq39j
Tags: 3.192.20
releasing package update-notifier version 3.192.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
     i18n string (for langpacks)
40
40
   - each hook must have a unique "Name" key and a "Description" key
41
41
   - a optional "Priority" with {crititcal, high, medium, low} that
42
 
     gives the user a idea how importend the hook is (currently not used) 
 
42
     gives the user a idea how important the hook is (currently not used) 
43
43
   - a optional "Command" field may be registered with a shell-command
44
44
     that the user can run (e.g. a script like /usr/share/package/do-something)
45
45
   - a optional "Terminal: True" field if the command should be
54
54
     script will do
55
55
   - the encoding of the i18n fields is UTF-8
56
56
   - the optional key "DontShowAfterReboot" will make sure that the 
57
 
     notification is not shown when the system rebootet since it was 
 
57
     notification is not shown when the system rebooted since it was 
58
58
     created/refreshed 
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