<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="notification" xml:lang="de">
  <info>
    <link type="guide" xref="index#dialogs"/>
    <desc>Die Option <cmd>--notifications</cmd> verwenden.</desc>
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Mario Blättermann</mal:name>
      <mal:email>mario.blaettermann@gmail.com</mal:email>
      <mal:years>2008-2012</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Christian Kirbach</mal:name>
      <mal:email>Christian.Kirbach@gmail.com</mal:email>
      <mal:years>2012, 2019</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Tim Sabsch</mal:name>
      <mal:email>tim@sabsch.com</mal:email>
      <mal:years>2020</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Jürgen Benvenuti</mal:name>
      <mal:email>gastornis@posteo.org</mal:email>
      <mal:years>2023.</mal:years>
    </mal:credit>
  </info>
  <title>Benachrichtigungssymbol</title>
    <p>Use the <cmd>--notification</cmd> option to create a passive desktop notification.</p>

  <terms>
    <item>
      <title><cmd>--text</cmd>=<var>Text</var></title>
      <p>Legt den Text fest, der im Benachrichtigungsfeld angezeigt wird.</p>
    </item>
    <item>
      <title><cmd>--icon</cmd>=<var>path</var></title>
      <p>Set the notification icon using a string containing a path to a valid icon on the system.</p>
    </item>
    <item>
      <title><cmd>--listen</cmd></title>
      <p>Horcht auf Befehle von der Standardeingabe. Es muss mindestens ein Befehl angegeben werden. Befehle werden durch Kommata getrennt. Auf einen Befehl muss ein Doppelpunkt und ein Wert folgen.</p>
      <note style="tip">
        <p>The <cmd>icon</cmd> command also accepts icon theme name values in accordance with the FreeDesktop.org Icon Naming Specification such as <var>dialog-error</var>, <var>dialog-information</var> and <var>security-high</var>.</p>
      </note>
      <p>Examples include:</p>
      <code>
      message: Hello, my name is Joe
      icon: /usr/share/pixmaps/monitor.xpm
      </code>
    </item>
  </terms>

  <p>Das folgende Beispielskript zeigt, wie Sie ein Benachrichtigungssymbol erzeugen:</p>
  <code>
  #!/bin/sh

  zenity --notification \
    --icon="/usr/share/pixmaps/monitor.xpm" \
    --text="There are system updates necessary!"
  </code>

  <figure>
    <title>Beispiel für ein Benachrichtigungssymbol</title>
    <desc>Beispiel für ein Benachrichtigungssymbol in <app>Zenity</app></desc>
    <media type="image" mime="image/png" src="figures/zenity-notification-screenshot.png"/>
  </figure>

  <p>Das folgende Beispielskript zeigt, wie Sie ein Benachrichtigungssymbol zusammen mit <cmd>--listen</cmd> erzeugen:</p>
  <code>
  #!/bin/sh
  cat &lt;&lt;EOH| zenity --notification --listen
  Nachricht: Dies ist der Text
  EOH
  </code>

  <figure>
    <title>Beispiel für ein Benachrichtigungssymbol mit <cmd>--listen</cmd></title>
    <desc>Beispiel für ein Benachrichtigungssymbol mit <cmd>--listen</cmd> in <app>Zenity</app></desc>
    <media type="image" mime="image/png" src="figures/zenity-notification-listen-screenshot.png"/>
  </figure>

</page>
