gtk/examples/application1
Matthias Clasen 9029914815 Getting started: Add icon and desktop file
Setting up the icon and desktop file is a pretty central part
of making an application work, so we should do it for our example.

The fact that the examples are uninstalled makes this a little
more complicated.
2013-07-24 07:31:05 -04:00
..
exampleapp.c Getting started: Coding style updates 2013-07-24 07:31:05 -04:00
exampleapp.desktop Getting started: Add icon and desktop file 2013-07-24 07:31:05 -04:00
exampleapp.h Getting started: Coding style updates 2013-07-24 07:31:05 -04:00
exampleapp.png Getting started: Add icon and desktop file 2013-07-24 07:31:05 -04:00
exampleappwin.c Getting started: Coding style updates 2013-07-24 07:31:05 -04:00
exampleappwin.h Getting started: Coding style updates 2013-07-24 07:31:05 -04:00
main.c Getting started: Coding style updates 2013-07-24 07:31:05 -04:00
Makefile.am Add a new example app 2013-07-20 23:04:47 -04:00
README Getting started: Add icon and desktop file 2013-07-24 07:31:05 -04:00

To make gnome-shell use the desktop file and icon for this example
while running it uninstalled, do the following:

mkdir -p ~/.local/share/applications
sed -e "s#@bindir@#$PWD#" exampleapp.desktop \
  > ~/.local/share/applications/lt-exampleapp.desktop

mkdir -p ~/.local/share/icons/hicolor/48x48/apps
cp exampleapp.png ~/.local/share/icons/hicolor/48x48/apps