ThreadScope icon indicating copy to clipboard operation
ThreadScope copied to clipboard

Set correct application title in GNOME shell

Open rcook opened this issue 7 years ago • 4 comments

Prior to this change, the application will show up as "Threadscope" (lower-case "s") instead of "ThreadScope" in GNOME shell (e.g. Ubuntu). This change makes the capitalization of the application name consistent in the UI. I have not, yet, figured out how to get the application name to show up consistently under macOS.

rcook avatar Nov 06 '18 07:11 rcook

It seems that setProgramName (i.e. g_set_prgname) is usually used with an application ID (typically something like org.gnome.Terminal etc) and the name of the application is set by setApplicationName (i.e. g_set_application_name). Maybe we can follow the standard here: the program name is org.haskell.ThreadScope and the application name is ThreadScope.

maoe avatar Nov 06 '18 23:11 maoe

I tried setApplicationName and that doesn't work while setProgramName does.

rcook avatar Nov 06 '18 23:11 rcook

If I call Gtk.initGUI before a call to setApplicationName it seems to work. Could you confirm?

maoe avatar Nov 07 '18 00:11 maoe

I don't have a Mac right now but I can check the behavior later.

maoe avatar Nov 07 '18 00:11 maoe