-
Notifications
You must be signed in to change notification settings - Fork 211
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
[mac only?] Weird Menu Strings #1631
Comments
My guess is that for some reason MacOS picks the "Ruby program name" for the menus. KLayout calls a function named "rb_set_progname" from the embedded Ruby interpreter. It does so that Ruby reports error messages in the proper context. Maybe on MacOS, Ruby somehow passes this name to the system which makes it think that the program is called "" once a macro has been executed from the console. Matthias |
After checking the Ruby source code I believe that the patch provided in the PR for this issue may fix the issue. Apparently Ruby decided not only to change the internal program name, but also the process name when setting the "PROGRAM_NAME" global variable. There is an alternative function which appears to do the same thing without this side effect. The important hint was the Maybe you can check this and give feedback whether the problem is fixed? Thanks, Matthias |
Problem fixed, tested on M1 macOS Sonoma. |
OMG ... hard to believe it was that simple. I swear I had no clue where to look at, until I saw the Matthias |
Hi @klayoutmatthias, Thank you for your efforts to resolve this issue. Best regards, |
This problem was reported by @stefanottili at least twice:
I could reproduce the problem on Monterey (Intel Mac) as follows.
Build and Deploy
Test-1: direct start of the executable
qt6Brew.bin.macos-Monterey-release-Rhb33Phb311/
directory../macQAT.py -k
, whereDYLD_LIBRARY_PATH
environment variable is set appropriately../klayout.app/Contents/MacOS/klayout
is invoked.The outputs are as follows.
Test-2: open the application bundle
LW-qt6Brew.pkg.macos-Monterey-release-Rhb33Phb311
directory.open ./klayout.app/
Kazzz-S
The text was updated successfully, but these errors were encountered: