Skip to content

Set correct application title in GNOME shell #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rcook
Copy link
Contributor

@rcook rcook commented Nov 6, 2018

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
Copy link
Member

maoe commented Nov 6, 2018

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
Copy link
Contributor Author

rcook commented Nov 6, 2018

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

@maoe
Copy link
Member

maoe commented Nov 7, 2018

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

@maoe
Copy link
Member

maoe commented Nov 7, 2018

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