Blame platform-overview/it/dev-launching-startupnotify.page
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="dev-launching-startupnotify" xml:lang="it">
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<info>
|
|
Packit |
1470ea |
<link type="next" xref="dev-launching-mime"/>
|
|
Packit |
1470ea |
<revision version="0.1" date="2014-01-28" status="draft"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<credit type="author">
|
|
Packit |
1470ea |
<name>David King</name>
|
|
Packit |
1470ea |
<email its:translate="no">davidk@gnome.org</email>
|
|
Packit |
1470ea |
<years>2014</years>
|
|
Packit |
1470ea |
</credit>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
</info>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<title>Startup Notification</title>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
<links type="series" style="floatend">
|
|
Packit |
1470ea |
<title>Launch your application</title>
|
|
Packit |
1470ea |
</links>
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
Notify the user when your application has finished starting up.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
GNOME implements the
|
|
Packit |
1470ea |
<link href="http://standards.freedesktop.org/desktop-entry-spec/latest/index.html">Startup
|
|
Packit |
1470ea |
Notification protocol</link>, to give feedback to the user when application
|
|
Packit |
1470ea |
startup finishes.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
GTK+ applications automatically support startup notification, and by
|
|
Packit |
1470ea |
default notify that application startup is complete when the first window is
|
|
Packit |
1470ea |
shown. Your application must declare that it supports startup notification by
|
|
Packit |
1470ea |
adding StartupNotify=true to its desktop file.
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
More complicated startup scenarios, such as showing a splash screen during
|
|
Packit |
1470ea |
startup, would need custom handling with gdk_notify_startup_complete() .
|
|
Packit |
1470ea |
|
|
Packit |
1470ea |
</page>
|