Opened 20 months ago

Last modified 2 months ago

#65660 assigned defect

geany: installing via MacPorts results in either a flickery GUI or wrong or no icon when processing switching via tab key

Reported by: simonhf (Simon Hardy-Francis) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ctreleaven (Craig Treleaven)
Port: geany

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Recently upgraded from an Intel MacBook to an Apple Silicon MacBook with M1 CPU.

Geany install attempt #1: Default install via MacPorts. Need to install X11 too.

Issue: Resulted in Geany with flickery GUI, so uninstalled.

Geany install attempt #2: Installed via MacPorts with +quartz, i.e.:

$ sudo port install gtk3 +quartz ; sudo port install geany +quartz

Issue: No window / icon shows up with Alt-Tab, and icon with regular tab key is black and just shows exec [1] [2].

Geany install attempt #3: Install without MacPorts and Geany works fine [2].

Conclusion: Non-MacPorts Geany is working, while MacPorts Geany is not working :-(

[1] https://github.com/lwouis/alt-tab-macos/issues/1858
[2] https://github.com/geany/geany-osx/issues/38

Change History (7)

comment:1 Changed 20 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: geany added

comment:2 Changed 20 months ago by kencu (Ken)

I installed geany on the current Intel system (12.5) using the X11 default variant, MacPorts xorg-server, and otherwise all defaults.

I couldn’t get any flickering to happen, building several simple projects and compiling/running them. So perhaps the flickering is arm64 only? I recall hearing something about flickering in some gtk apps from John Ralls previously. Maybe he fixed something for arm gtk apps that we haven’t done yet…

The nicer icon and lack of “exec” box in their build are likely because the geany project has written a nice macos launcher application that does the right things to make macos happy. MacPorts is using a simpler mechanism provided by the “app” Portgroup, which is very easy and works broadly, but is not as full-featured.

The launcher they have written could be added to our geany build with modest effort I think.

The launcher might also be an interesting template for something we could use to enhance the app Portgroup someday… we have always known the simple method used in the app Portgroup could be enhanced with such a proper launcher, and there it is…

comment:4 Changed 20 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

It's possible that we're still missing some GTK-related patches, particularly for redraw issues.

I'll take another look at upstream's repo, to see if any might apply in this case. More to follow.

comment:5 in reply to:  4 Changed 18 months ago by mascguy (Christopher Nielsen)

Replying to mascguy:

It's possible that we're still missing some GTK-related patches, particularly for redraw issues.

Based on a cursory review of upstream issues, I don't see any such open issues. And indeed, upstream seems to have tackled the key issues for ARM, Big Sur and Monterey, etc.

So for your Quartz test, did you ensure that all dependencies - including glib2, and everything else - is also installed with +quartz?

comment:6 Changed 15 months ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven added

comment:7 Changed 2 months ago by ctreleaven (Craig Treleaven)

In 36b75e9ad84e9b0fe82131dcc051739a174c7d0e/macports-ports (master):

geany: update to 2.0

Update to support Python 3.10 and 3.11
Remove unneeded patch

See #65660
Only tested on Intel; does it still flicker on Apple silicone?

Note: See TracTickets for help on using tickets.