Application is not associated with its .desktop file (using ApplicationID)
The ApplicationID is not being set when running Gnome Subtitles. This means some features are not activated when calling the application from the command line, mostly gnome shell features like showing the correct application name and icon. When executing the application from the menu, environments such as Gnome automatically associate that desktop file with the executable, so this problem shouldn't occur, but it may be a problem with other environments such as Wayland (see #118 (closed)).
Additionally, the application icon is being embedded inside the executable and this is unnecessary because the icon is also installed to the system.
Solution:
- Because Gtk#'s Application.Init() doesn't allow to set the application id, we need to stop using it, as well as Application.Run() and Application.Quit().
- There is a Gtk.Application constrctor that supports application id, so this is the way to go. When the window is created, it is then added to this Gtk.Application.
- Application.Quit is replaced by just destroying the window.
- The application icon is no longer embedded as a resource, instead IconName is set so the application uses the installed icon.