Skip to content

Set correct application title in GNOME shell#90

Open
rcook wants to merge 1 commit into
haskell:masterfrom
rcook:p-rcook-app-title
Open

Set correct application title in GNOME shell#90
rcook wants to merge 1 commit into
haskell:masterfrom
rcook:p-rcook-app-title

Conversation

@rcook

@rcook rcook commented Nov 6, 2018

Copy link
Copy Markdown
Contributor

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.

@maoe

maoe commented Nov 6, 2018

Copy link
Copy Markdown
Member

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.

@rcook

rcook commented Nov 6, 2018

Copy link
Copy Markdown
Contributor Author

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

@maoe

maoe commented Nov 7, 2018

Copy link
Copy Markdown
Member

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

@maoe

maoe commented Nov 7, 2018

Copy link
Copy Markdown
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants