forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
4af588e477
commit
9029914815
9
examples/application1/README
Normal file
9
examples/application1/README
Normal file
@ -0,0 +1,9 @@
|
||||
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
|
6
examples/application1/exampleapp.desktop
Normal file
6
examples/application1/exampleapp.desktop
Normal file
@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Example
|
||||
Icon=exampleapp
|
||||
StartupNotify=true
|
||||
Exec=@bindir@/exampleapp
|
BIN
examples/application1/exampleapp.png
Normal file
BIN
examples/application1/exampleapp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
Loading…
Reference in New Issue
Block a user