diff options
author | Mathieu Bridon <bochecha@daitauha.fr> | 2017-12-03 15:40:16 +0100 |
---|---|---|
committer | fiaxh <fiaxh@users.noreply.github.com> | 2017-12-03 15:40:16 +0100 |
commit | cfc156b77a11d16aa5c4c273bfe50d74df59ecf9 (patch) | |
tree | f38579cda04b22fc1bf65bb4791cf82f7cb13e10 /main | |
parent | f3ca14f2d6f31c5a4b6438e64fbfca19ebad066e (diff) | |
download | dino-cfc156b77a11d16aa5c4c273bfe50d74df59ecf9.tar.gz dino-cfc156b77a11d16aa5c4c273bfe50d74df59ecf9.zip |
Use reverse DNS naming for icon, desktop file, DBus service, app ID (#221)
The convention is to use reverse DNS for the DBus service names, icons,
desktop files and application ID.
Flatpak enforces that convention, and even requires at least 3 components
in those names.
Diffstat (limited to 'main')
-rw-r--r-- | main/CMakeLists.txt | 10 | ||||
-rw-r--r-- | main/data/icons/im.dino.Dino-symbolic.svg (renamed from main/data/icons/dino-symbolic.svg) | 0 | ||||
-rw-r--r-- | main/data/icons/im.dino.Dino.svg (renamed from main/data/icons/dino.svg) | 0 | ||||
-rw-r--r-- | main/data/im.dino.Dino.desktop (renamed from main/data/im.dino.desktop) | 2 | ||||
-rw-r--r-- | main/data/im.dino.Dino.service (renamed from main/data/im.dino.service) | 2 | ||||
-rw-r--r-- | main/data/unified_window_placeholder.ui | 2 | ||||
-rw-r--r-- | main/src/ui/application.vala | 4 |
7 files changed, 10 insertions, 10 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 3e23fffc..28cd355d 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -17,7 +17,7 @@ set(RESOURCE_LIST icons/dino-status-chat.svg icons/dino-status-dnd.svg icons/dino-status-online.svg - icons/dino-symbolic.svg + icons/im.dino.Dino-symbolic.svg icons/dino-tick-symbolic.svg add_conversation/add_contact_dialog.ui @@ -147,10 +147,10 @@ if(WIN32) endif(WIN32) install(TARGETS dino ${TARGET_INSTALL}) -install(FILES data/im.dino.desktop DESTINATION ${DESKTOP_FILE_INSTALL_DIR}) -install(FILES data/im.dino.service DESTINATION ${SERVICE_FILE_INSTALL_DIR}) -install(FILES data/icons/dino.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/scalable/apps) -install(FILES data/icons/dino-symbolic.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/symbolic/apps) +install(FILES data/im.dino.Dino.desktop DESTINATION ${DESKTOP_FILE_INSTALL_DIR}) +install(FILES data/im.dino.Dino.service DESTINATION ${SERVICE_FILE_INSTALL_DIR}) +install(FILES data/icons/im.dino.Dino.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/scalable/apps) +install(FILES data/icons/im.dino.Dino-symbolic.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/symbolic/apps) install(FILES data/icons/dino-status-away.svg data/icons/dino-status-chat.svg diff --git a/main/data/icons/dino-symbolic.svg b/main/data/icons/im.dino.Dino-symbolic.svg index 00680734..00680734 100644 --- a/main/data/icons/dino-symbolic.svg +++ b/main/data/icons/im.dino.Dino-symbolic.svg diff --git a/main/data/icons/dino.svg b/main/data/icons/im.dino.Dino.svg index 27634d5a..27634d5a 100644 --- a/main/data/icons/dino.svg +++ b/main/data/icons/im.dino.Dino.svg diff --git a/main/data/im.dino.desktop b/main/data/im.dino.Dino.desktop index b53ef111..90f3e38f 100644 --- a/main/data/im.dino.desktop +++ b/main/data/im.dino.Dino.desktop @@ -4,7 +4,7 @@ Name=Dino GenericName=Jabber/XMPP Client Keywords=chat;talk;im;message;xmpp;jabber; Exec=dino %U -Icon=dino +Icon=im.dino.Dino StartupNotify=false Terminal=false Type=Application diff --git a/main/data/im.dino.service b/main/data/im.dino.Dino.service index 02339e92..8f6ebbba 100644 --- a/main/data/im.dino.service +++ b/main/data/im.dino.Dino.service @@ -1,3 +1,3 @@ [D-BUS Service] -Name=im.dino +Name=im.dino.Dino Exec=dino diff --git a/main/data/unified_window_placeholder.ui b/main/data/unified_window_placeholder.ui index 70307e6e..429c95c6 100644 --- a/main/data/unified_window_placeholder.ui +++ b/main/data/unified_window_placeholder.ui @@ -13,7 +13,7 @@ <property name="visible">True</property> <child> <object class="GtkImage"> - <property name="icon-name">dino-symbolic</property> + <property name="icon-name">im.dino.Dino-symbolic</property> <property name="pixel-size">144</property> <property name="margin">30</property> <property name="visible">True</property> diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala index e4fdd9eb..e8424684 100644 --- a/main/src/ui/application.vala +++ b/main/src/ui/application.vala @@ -14,10 +14,10 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application { public SearchPathGenerator? search_path_generator { get; set; } public Application() throws Error { - Object(application_id: "im.dino", flags: ApplicationFlags.HANDLES_OPEN); + Object(application_id: "im.dino.Dino", flags: ApplicationFlags.HANDLES_OPEN); init(); Environment.set_application_name("Dino"); - Window.set_default_icon_name("dino"); + Window.set_default_icon_name("im.dino.Dino"); CssProvider provider = new CssProvider(); provider.load_from_resource("/im/dino/theme.css"); |