1. Yad About

This will display YAD about dialog.

1.1. --about

Display about dialog.

Command
yad --about
yad about
Figure 1. Default YAD about dialog

In the YAD About dialog you can se what your YAD has been compiled with.
In the above screeenshoot you can see that this YAD is compiled with Webkit, GtkSourceView and GSpell.

2. Custom about dialog options

With custom about options you can create your own about dialog.

2.1. --pname

Set application name

Command
yad --about --pname="Test Application"
yad about pname
Figure 2. Custom about dialog with application name

2.2. --pversion

Set application version

Command
yad --about --pversion="1.0.1" --pname="Test Application"
yad about pversion
Figure 3. Custom about dialog with version info

Set application copyright string

Command
yad --about \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about copyright
Figure 4. Custom about dialog with copyright info

2.4. --comments

Set application comments string

Command
yad --about \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about comments
Figure 5. Custom about dialog with a comment

2.5. --license

Set program license.
The value of this option can be one of predefined licenses
(GPL2, GPL3, LGPL2, LGPL3, BSD, MIT or ARTISTIC),
or a file name with license text or arbitrary string.

Command
yad --about \
  --license="GPL3" \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about license
Figure 6. Custom about dialog with license info

2.6. --authors

Set list of program authors separated by comma.

Command
yad --about \
  --authors="Ingemar" \
  --license="GPL3" \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about authors
Figure 7. Custom about dialog with credits button
Credits
Figure 8. Custom about dialog with authors info

2.7. --website

Set a link to program website.

Command
yad --about \
  --website="application.example.com" \
  --authors="Ingemar" \
  --license="GPL3" \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about website
Figure 9. Custom about dialog with a website link

2.8. --website-label

Set a label for program website link.

Command
yad --about \
  --website-label="Homepage" \
  --website="application.example.com" \
  --authors="Ingemar" \
  --license="GPL3" \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about website label
Figure 10. Custom about dialog with a website link and custom label

2.9. --image

Set Application image.
The value of this option can be a system icon or a path to a image.

Example code with a system icon
yad --about \
  --image=gtk-about \
  --website-label="Homepage" \
  --website="application.example.com" \
  --authors="Ingemar" \
  --license="GPL3" \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about image
Figure 11. Custom about dialog with a about image
Example code with a image in a path
yad --about \
  --image=./img/Tux.png \
  --website-label="Homepage" \
  --website="application.example.com" \
  --authors="Ingemar" \
  --license="GPL3" \
  --comments="A simple demo application" \
  --copyright="Copyright (c) 2023 Ingemar" \
  --pversion="1.0.1" \
  --pname="Test Application"
yad about image 2
Figure 12. A complete custom about dialog

And now we have a complete about dialog you can user for your YAD application.

Dont forget that you can change the window icon with the ` --window-icon` option.

Back to YAD Guide