Skip to content
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

APP_NAME/APP_ICON #21

Open
ctrueden opened this issue Feb 1, 2024 · 1 comment
Open

APP_NAME/APP_ICON #21

ctrueden opened this issue Feb 1, 2024 · 1 comment
Labels

Comments

@ctrueden
Copy link
Member

ctrueden commented Feb 1, 2024

The ImageJ Launcher sets the APP_NAME and APP_ICON at launch. Should Jaunch really be in the business of doing that? Or should it always be baked into the macOS binary at build time?

@ctrueden
Copy link
Member Author

ctrueden commented May 3, 2024

The relevant code from the ImageJ Launcher is:

	struct string *env_key, *icon_path;

	/* set the Application's name */
	env_key = string_initf("APP_NAME_%d", (int)getpid());
	setenv(env_key->buffer, "ImageJ", 1);

	/* set the Dock icon */
	string_setf(env_key, "APP_ICON_%d", (int)getpid());
	icon_path = string_init(32);
	append_icon_path(icon_path, main_argv0);
	if (icon_path->length)
		setenv(env_key->buffer, icon_path->buffer, 1);

	string_release(env_key);
	string_release(icon_path);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant