amebalabs / TRex

Copy any text on your screen, stop retyping.
https://trex.ameba.co
MIT License
1.27k stars 42 forks source link

Settings window appears at startup when "Start at Login" option enabled on Sequoia #36

Closed tosbaha closed 5 days ago

tosbaha commented 2 months ago

Previously, the application would start in the background when the "Start at Login" option was enabled. However, after the Sequoia update, enabling this option causes the settings window to always appear automatically when the computer starts.

melonamin commented 2 months ago

Thanks for reporting. I see this as well. I will look into it when I confirm that this is not a bug in the BETA OS.

ecthelionvi commented 1 month ago

+1 on this bug. I also cannot seem to close the settings menu without closing the app all together.

melonamin commented 1 month ago

I also cannot seem to close the settings menu without closing the app all together.

Now, that's is weird. Can you confirm?

det-box commented 1 month ago

+1, when starting (autostart at login or Manuel) the settings window opens every time

wjfeeney commented 1 month ago

+1, I have the same issue

det-box commented 1 month ago

Hello, No news about this bug?

qns7 commented 4 weeks ago

+1

My workaround for now:

Grant bash access to Privacy&Security/Accessibility and add a bash-script to the LaunchAgents with the following content:

#!/bin/bash

sleep 5

osascript \
-e 'tell application "TRex" to activate' \
-e 'tell application "System Events" to tell process "TRex" to click menu item "Close" of menu "Window" of menu bar 1' \
-e 'tell application "Finder" to activate'

Or something similar or course ...

I have a bash-script named custom_start.sh in my LaunchAgents anyway for other/similar stuff and adding this did the trick for me: Triggering a virtual keystroke (cmd-w) after the first applescript line didn't work, but this did. It's janky though, of course, so I'm looking forward to the official fix. :-)

Best regards Q

Redstra commented 3 weeks ago

@melonamin This issue has been open for quite a while now, and I wanted to check if there are any updates on a fix. It’s a key blocker for some of us, so I’d appreciate if it could be considered a higher priority.

melonamin commented 3 weeks ago

@Redstra This is a pain in the back to test/debug, and I just didn't have enough time yet. Something has changed in the OS behavior.

It’s a key blocker for some of us

Do you mind explaining why it is such a big issue for you? I understand that it is annoying, but honestly, I didn't consider it in any way critical.

Redstra commented 3 weeks ago

@melonamin Thanks for your reply. I understand that debugging this must be difficult. For me, the issue with the settings window opening on every restart is disruptive because it interferes with my workflow and makes the app feel less polished, together with the bug that when I choose to hide the menu icon, there’s no way to access the settings again, which makes it tricky to adjust anything afterward.

I know it’s a free tool, and I really appreciate all the work you’ve put into it so far. It’s been one of my most used apps, and that’s why I wanted to share why it’s a bigger issue for me. Thanks again!

melonamin commented 3 weeks ago

Ok, fair enough, I'll spend more time on it this weekend.

Thank you for keeping me to a higher standard.

melonamin commented 2 weeks ago

Please try if 1.7.1 BETA 1 works, it seems to behave well on my end.

det-box commented 2 weeks ago

@melonamin Now works without errors. Many thanks

Redstra commented 2 weeks ago

@melonamin It works great, thanks for your effort and for taking our feedback into account! One more thing: when “Hide Menu Bar icon” is selected, there’s no way to access the settings window. Could you fix that as well?

Thanks again!

melonamin commented 2 weeks ago

@Redstra in this version, when menu bar is hidden, try launching TRex again, this should open the settings.

Redstra commented 2 weeks ago

@melonamin https://www.loom.com/share/9b366df463684a169181a21b3ba6fe74?sid=43739523-dadd-4396-8b1e-e9f44d6235fd Here’s a screen recording showing the behavior when I try to ‘relaunch’ the app after hiding the icon. The only way to access the settings window is by force-closing the app through Activity Monitor, then deleting it with AppCleaner, reinstalling, and reopening it.

melonamin commented 2 weeks ago

Well, that sucks, cause it totally works on my machine(s) 😐

Will look into it.

melonamin commented 1 week ago

Gave it another go, please take a look

Redstra commented 1 week ago

@melonamin Works perfectly now! Thanks for your effort, no issues with the app now

det-box commented 1 week ago

@melonamin Works now perfekt. Thanks