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
MacOS open from Finder #13
Comments
This is most probably geany/geany#2344. Try the snapshot build from that bug report - it should fix your issues. |
The snapshot found in https://github.com/geany/geany/issues/2344 gives exactly the same error, as the error initially reported. |
OK, I've seen something similar but what I get now is that macOS opens a new instance of Geany instead of the existing one which is wrong too. Frankly I have no idea what could be wrong - I've tried various things without much success. The output inside the Console app isn't very helpful either. It's also possible it's a Catalina bug but no idea really. |
I believe this may be a Catalina thing, because I don’t remember seeing this before upgrading. Either that, or if there was some GTK upgrade happening when I tried the 3.36 experimental build. It is annoying, though, so I keep my fingers crossed that you identify the reason :-)
/Jan
… 19 okt. 2019 kl. 22:07 skrev Jiří Techet ***@***.***>:
OK, I've seen something similar but what I get now is that macOS opens a new instance of Geany instead of the existing one which is wrong too. Frankly I have no idea what could be wrong - I've tried various things without much success. The output inside the Console app isn't very helpful either. It's also possible it's a Catalina bug but no idea really.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13?email_source=notifications&email_token=AG7S4VQRMVNQLMGV7CGPS3LQPNSG5A5CNFSM4JCANOP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBX3VQA#issuecomment-544193216>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG7S4VRRU5VFDKINEKYF3OLQPNSG5ANCNFSM4JCANOPQ>.
|
I saw that first time I tried, only. Never after that single occasion!!
With closed geany, I can double click a file and open one file + geany. Once Geany is open, double clicking a second file does nothing
Jan
Skickat från min iPhone
… 19 okt. 2019 kl. 22:07 skrev Jiří Techet ***@***.***>:
OK, I've seen something similar but what I get now is that macOS opens a new instance of Geany instead of the existing one which is wrong too. Frankly I have no idea what could be wrong - I've tried various things without much success. The output inside the Console app isn't very helpful either. It's also possible it's a Catalina bug but no idea really.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Try to have a look into the Console app if you see some interesting log regarding this problem that could tell us more (I haven't found anything descriptive though ;-( |
Some tests I did, which I hope can be useful.
It seems as if the mechanism used by MacOS Catalina is broken (3-5 below) whereas bash or zsh (1) and drag-into-app (2) works as expected.
Furthermore, adding output to log-file in /Applications/Geany.app/Contents/MacOS/geany reveals that the geany bash script is only called in cases that works. That is, it is a launching problem, not wrong in the bash script.
List of tests :
-----------------
1 WORKS adding files into open Geany:
/Applications/Geany.app/Contents/MacOS/geany /Users/jan/Documents/test1.txt
/Applications/Geany.app/Contents/MacOS/geany /Users/jan/Documents/test2.txt
2 WORKS adding files into open Geany:
Drag files into open Geany
3 ONLY WORKS IF Geany is closed:
open -a Geany /Users/jan/Documents/test1.txt
4 ONLY WORKS IF Geany is closed:
Double-click file
5 ONLY WORKS IF Geany is closed:
Right-click Open With
… 19 okt. 2019 kl. 22:07 skrev Jiří Techet ***@***.***>:
OK, I've seen something similar but what I get now is that macOS opens a new instance of Geany instead of the existing one which is wrong too. Frankly I have no idea what could be wrong - I've tried various things without much success. The output inside the Console app isn't very helpful either. It's also possible it's a Catalina bug but no idea really.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13?email_source=notifications&email_token=AG7S4VQRMVNQLMGV7CGPS3LQPNSG5A5CNFSM4JCANOP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBX3VQA#issuecomment-544193216>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG7S4VRRU5VFDKINEKYF3OLQPNSG5ANCNFSM4JCANOPQ>.
|
I only see that Geany is opened, but I am not very skilled in the Console. Does Geany have its own log files somewhere ?
I noticed in the Activity Control that gnome-pty-helper is started with Geany. Is that something that may need updated for Catalina ?
/Jan
… 20 okt. 2019 kl. 23:07 skrev Jiří Techet ***@***.***>:
Try to have a look into the Console app if you see some interesting log regarding this problem that could tell us more (I haven't found anything descriptive though ;-(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13?email_source=notifications&email_token=AG7S4VWGZRFEBPZXPMKKOVLQPTCAHA5CNFSM4JCANOP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYT6YA#issuecomment-544292704>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG7S4VXUZNXCDNOVCF7EM5LQPTCAHANCNFSM4JCANOPQ>.
|
I don't think you'll see anything in Geany's logs - it isn't even launched by macOS in these cases. The Console app isn't a terminal - it's a log viewer on macOS (you can find it under the Other folder in the launchpad). You can open the console app, then double-click a file in Finder and see if it says something interesting regarding Geany. |
That I understood. But the only file I see updating is system.log, and there isn’t much there regarding Geany. Just lots of these:
Oct 20 23:37:33 Jans-MacBook-Pro-3 AGMService[8890]: ProcessPath : /Applications/Geany.app/Contents/MacOS/geany-bin
Do you reproduce this error? Is there any specific version of Geany I should run? Now I am on 1.33, but I also tried 1.36 from one of the issue-posts (but I got the impression that was a bit of a transient version, so went back)
/Jan
… 20 okt. 2019 kl. 23:33 skrev Jiří Techet ***@***.***>:
I don't think you'll see anything in Geany's logs - it isn't even launched by macOS in these cases.
The Console app isn't a terminal - it's a log viewer on macOS (you can find it under the Other folder in the launchpad). You can open the console app, then double-click a file in Finder and see if it says something interesting regarding Geany.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13?email_source=notifications&email_token=AG7S4VWHDZFP2VF2PQ35B6LQPTFEHA5CNFSM4JCANOP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYUQ6I#issuecomment-544295033>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG7S4VRGFMGJ7QCYIWRF5STQPTFEHANCNFSM4JCANOPQ>.
|
The 1.36 GTK3 version should work much better on Catalina. I can't reproduce this exactly - in my case it starts a new Geany instance for every opened file (which isn't the right thing either). |
Normal start of Geany 1.36 in Console (filtered by geany) One error (error=fel in swedish, förval=default/preselect in swedish):
Complete launch log for Geany
|
When double-clicking a file in Finder, this error occurs:
|
Yeah, I saw those too but I don't know what they mean. Anyway, I think I nailed it. The problem is this: I've reuploaded the snapshot here https://download.geany.org/snapshots/geany-1.36_osx.dmg and I believe it will fix the problem for you. I don't think that what we did before was wrong, it's just that Catalina doesn't like it. |
After rebuilding the Launch Services,
I got the same behavior as reported by techee. That is, double-clicking a file now opens a new instance of Geany 1.36. Still a problem -- but we see the same thing. |
Hmm, but have you downloaded the latest snapshot? It should work now. |
You did indeed nail the problem. Problem solve -- thanks a lot for your skills, and your professional communication |
Opening a text file in geany from Finder does not work if Geany is already running.
Neither of these options works :
If Geany is closed, both above options starts Geany, and opens the file.
I have a feeling this started with MacOS Catalina
I have allowed Geany and bash full disk access from System Security settings, so that is not the issue.
The text was updated successfully, but these errors were encountered: