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.
This commit is contained in:
Mathieu Bridon 2017-12-03 15:40:16 +01:00 committed by fiaxh
parent f3ca14f2d6
commit cfc156b77a
7 changed files with 10 additions and 10 deletions

View file

@ -17,7 +17,7 @@ set(RESOURCE_LIST
icons/dino-status-chat.svg icons/dino-status-chat.svg
icons/dino-status-dnd.svg icons/dino-status-dnd.svg
icons/dino-status-online.svg icons/dino-status-online.svg
icons/dino-symbolic.svg icons/im.dino.Dino-symbolic.svg
icons/dino-tick-symbolic.svg icons/dino-tick-symbolic.svg
add_conversation/add_contact_dialog.ui add_conversation/add_contact_dialog.ui
@ -147,10 +147,10 @@ if(WIN32)
endif(WIN32) endif(WIN32)
install(TARGETS dino ${TARGET_INSTALL}) install(TARGETS dino ${TARGET_INSTALL})
install(FILES data/im.dino.desktop DESTINATION ${DESKTOP_FILE_INSTALL_DIR}) install(FILES data/im.dino.Dino.desktop DESTINATION ${DESKTOP_FILE_INSTALL_DIR})
install(FILES data/im.dino.service DESTINATION ${SERVICE_FILE_INSTALL_DIR}) install(FILES data/im.dino.Dino.service DESTINATION ${SERVICE_FILE_INSTALL_DIR})
install(FILES data/icons/dino.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/scalable/apps) install(FILES data/icons/im.dino.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/icons/im.dino.Dino-symbolic.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/symbolic/apps)
install(FILES install(FILES
data/icons/dino-status-away.svg data/icons/dino-status-away.svg
data/icons/dino-status-chat.svg data/icons/dino-status-chat.svg

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

@ -4,7 +4,7 @@ Name=Dino
GenericName=Jabber/XMPP Client GenericName=Jabber/XMPP Client
Keywords=chat;talk;im;message;xmpp;jabber; Keywords=chat;talk;im;message;xmpp;jabber;
Exec=dino %U Exec=dino %U
Icon=dino Icon=im.dino.Dino
StartupNotify=false StartupNotify=false
Terminal=false Terminal=false
Type=Application Type=Application

View file

@ -1,3 +1,3 @@
[D-BUS Service] [D-BUS Service]
Name=im.dino Name=im.dino.Dino
Exec=dino Exec=dino

View file

@ -13,7 +13,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<child> <child>
<object class="GtkImage"> <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="pixel-size">144</property>
<property name="margin">30</property> <property name="margin">30</property>
<property name="visible">True</property> <property name="visible">True</property>

View file

@ -14,10 +14,10 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
public SearchPathGenerator? search_path_generator { get; set; } public SearchPathGenerator? search_path_generator { get; set; }
public Application() throws Error { public Application() throws Error {
Object(application_id: "im.dino", flags: ApplicationFlags.HANDLES_OPEN); Object(application_id: "im.dino.Dino", flags: ApplicationFlags.HANDLES_OPEN);
init(); init();
Environment.set_application_name("Dino"); Environment.set_application_name("Dino");
Window.set_default_icon_name("dino"); Window.set_default_icon_name("im.dino.Dino");
CssProvider provider = new CssProvider(); CssProvider provider = new CssProvider();
provider.load_from_resource("/im/dino/theme.css"); provider.load_from_resource("/im/dino/theme.css");