[lightsoff/appdata-update: 1/3] unify app-id



commit c46bc32e56bf625bf6bc6636e4e97174b068f980
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Fri Jan 18 23:31:56 2019 +0100

    unify app-id
    
    rename desktop file, icons and appdata file to use the app-id as a filename

 .../hicolor/scalable/apps/{lightsoff.svg => org.gnome.lightsoff.svg}  | 0
 .../apps/{lightsoff-symbolic.svg => org.gnome.lightsoff-symbolic.svg} | 0
 data/meson.build                                                      | 4 ++--
 data/{lightsoff.appdata.xml.in => org.gnome.lightsoff.appdata.xml.in} | 0
 data/{lightsoff.desktop.in => org.gnome.lightsoff.desktop.in}         | 2 +-
 po/POTFILES.in                                                        | 4 ++--
 src/lightsoff.vala                                                    | 4 ++--
 7 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/icons/hicolor/scalable/apps/lightsoff.svg 
b/data/icons/hicolor/scalable/apps/org.gnome.lightsoff.svg
similarity index 100%
rename from data/icons/hicolor/scalable/apps/lightsoff.svg
rename to data/icons/hicolor/scalable/apps/org.gnome.lightsoff.svg
diff --git a/data/icons/hicolor/symbolic/apps/lightsoff-symbolic.svg 
b/data/icons/hicolor/symbolic/apps/org.gnome.lightsoff-symbolic.svg
similarity index 100%
rename from data/icons/hicolor/symbolic/apps/lightsoff-symbolic.svg
rename to data/icons/hicolor/symbolic/apps/org.gnome.lightsoff-symbolic.svg
diff --git a/data/meson.build b/data/meson.build
index 0b3415c..05f5772 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -8,7 +8,7 @@ install_data(['off.svg', 'on.svg', 'highlight.svg'],
   install_dir: pkgdatadir,
 )
 
-desktop = 'lightsoff.desktop'
+desktop = 'org.gnome.lightsoff.desktop'
 
 # Desktop file
 i18n.merge_file(
@@ -20,7 +20,7 @@ i18n.merge_file(
   install_dir: join_paths(datadir, 'applications'),
 )
 
-appdata = 'lightsoff.appdata.xml'
+appdata = 'org.gnome.lightsoff.appdata.xml'
 
 # Appdata
 i18n.merge_file(
diff --git a/data/lightsoff.appdata.xml.in b/data/org.gnome.lightsoff.appdata.xml.in
similarity index 100%
rename from data/lightsoff.appdata.xml.in
rename to data/org.gnome.lightsoff.appdata.xml.in
diff --git a/data/lightsoff.desktop.in b/data/org.gnome.lightsoff.desktop.in
similarity index 94%
rename from data/lightsoff.desktop.in
rename to data/org.gnome.lightsoff.desktop.in
index 7d21096..8b1726b 100644
--- a/data/lightsoff.desktop.in
+++ b/data/org.gnome.lightsoff.desktop.in
@@ -4,7 +4,7 @@ Comment=Turn off all the lights
 # Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list 
MUST also end with a semicolon!
 Keywords=game;logic;board;tiles;adjacent;puzzle;
 # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=lightsoff
+Icon=org.gnome.lightsoff
 Exec=lightsoff
 Terminal=false
 Type=Application
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 98d5aee..be16c76 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,9 +1,9 @@
 # List of source files containing translatable strings.
 # Please keep this file in alphabetical order.
-data/lightsoff.appdata.xml.in
-data/lightsoff.desktop.in
 data/lightsoff-menus.ui
 data/lightsoff.ui
+data/org.gnome.lightsoff.appdata.xml.in
+data/org.gnome.lightsoff.desktop.in
 data/org.gnome.lightsoff.gschema.xml
 src/lightsoff.vala
 src/lightsoff-window.vala
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index 2391b6b..36af964 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -46,7 +46,7 @@ public class LightsOff : Gtk.Application
     {
         base.startup ();
 
-        Gtk.Window.set_default_icon_name ("lightsoff");
+        Gtk.Window.set_default_icon_name ("org.gnome.lightsoff");
         Gtk.Settings.get_default ().set ("gtk-application-prefer-dark-theme", true);
 
         add_action_entries (action_entries, this);
@@ -119,7 +119,7 @@ public class LightsOff : Gtk.Application
                                "artists", artists,
                                "documenters", documenters,
                                "translator-credits", _("translator-credits"),
-                               "logo-icon-name", "lightsoff",
+                               "logo-icon-name", "org.gnome.lightsoff",
                                "website", "https://wiki.gnome.org/Apps/Lightsoff";,
                                null);
     }


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