[Initiatives.wiki] Allow for easily setting an alternative "Devel" icon for an application



commit 30fcfdc690b9069e05bea19a7e5c02d97ebb1147
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Sep 4 09:52:05 2019 +0000

    Allow for easily setting an alternative "Devel" icon for an application

 DevOps-with-Flatpak.md | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/DevOps-with-Flatpak.md b/DevOps-with-Flatpak.md
index f74724a..9384c2e 100644
--- a/DevOps-with-Flatpak.md
+++ b/DevOps-with-Flatpak.md
@@ -159,20 +159,19 @@ To install icons with the proper name change to the following on your data/meson
 ```python
 icondir = join_paths('icons', 'hicolor', 'scalable', 'apps')
 install_data(
-  join_paths(icondir, 'org.gnome.AppName.svg'),
+  join_paths(icondir, '@0@.svg'.format(application_id)),
   install_dir: join_paths(datadir, icondir),
   rename: '@0@.png'.format(application_id)
 )
 
 icondir = join_paths('icons', 'hicolor', 'symbolic', 'apps')
-
 install_data(
   join_paths(icondir, 'org.gnome.AppName-symbolic.svg'),
   install_dir: join_paths(datadir, icondir),
   rename: '@0 -symbolic svg'.format(application_id)
 )
 ```
-Replace "AppName" by your application name.
+If you are providing a Nightly variant of your application icon, make sure to name it 
"org.gnome.AppNameDevel.svg" (replace "AppName" by your application name). This way the code above will 
assign the desired icon to each profile.
 
 ### Desktop file handling
 The desktop file name has to match the dbus id, so we need to recreate it based on the profile selected.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]