raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
3.96k stars 125 forks source link

Rio: New terminal window does not open from within a separate space. #336

Open pushyseagull opened 1 year ago

pushyseagull commented 1 year ago

Problem Description:

The Rio application is opened on Space (1) and using command + N opens a new terminal window. Switching to a new space, Space (2), ensuring Rio is the actively selected application, and using command + N does not open a new terminal window.

Going back to Space (1) and using command + N opens a new terminal window, as expected. If I move that terminal window to Space (2), then go to Space (2), command + N opens a new window.

Troubleshooting

I mostly just did MacOS troubleshooting to make sure it wasn't some hidden setting under Appearance or Desktop & Dock. I have attached my current Desktop & Dock settings for mission control and ensured that the grouping or "switch to space with existing open application window" was not set.

Mission-Control-Setting

Proposition

If this is expected behavior or needs to be a feature request let me know and I can edit the FAQ mac page or look into contributing a fix. I didn't want to make assumptions on the intended functionality of the application.

raphamorim commented 1 year ago

Hey @pushyseagull thanks for the descriptive issue,

I've tried to do the same approach:

  1. open rio in space 1
  2. move to space 2 and select rio as active application
  3. command+n and it opens in space 1 even I am in space 2 (this behavior is the correct, same as Firefox does for example)
pushyseagull commented 1 year ago

Hi @raphamorim,

Thanks for the feedback. Yeah that is the odd part, other existing applications operate, for me, as you noted above with firefox, which is why I noticed the oddity with Rio. I am going to try and reboot after upgrading to Ventura 13.5.2 -> 13.6.1.

The other item I didn't consider was checking the full disk access after installation. If enabling full disk access does not change the observed operation I will install via the dmg file directly instead of through brew and report back.

pushyseagull commented 1 year ago

Hi @raphamorim,

MacOS Upgrade 13.5.2 -> 13.6.1 (Rio Installed via brew)

MacOS 13.6.1 + Full Disk Access (Rio Installed via brew)

Removed Rio

brew remove rio

MacOS 13.6.1 (Rio installed via dmg)


Install on another laptop

I wanted to remove my laptop from the equation so I installed Rio on my work laptop, MacbookPro M1/Sonoma 14.1.1

MacOS Sonoma 14.1.1 (Rio Installed via dmg)


New Observation

To add an new item. If I do the following:

  1. Open Rio terminal
  2. Minimize Rio terminal to the dock
  3. Make sure Rio is the active application.
  4. Use command + N to open a new window.
  5. No new window is opened.

To contrast this I minimized Terminal, Brave to the dock and on the same desktop was able to open new windows with command + N.

Troubleshooting

  1. I also checked that I hadn't assigned Rio to a specific desktop. The current and I assume default was set to "None" Rio-Options-Assign-To
  2. I opened the console and only had brave, terminal, and rio running and these were the errors that showed up when trying to open a new window with Rio as the active application but no existing terminal window on the desktop. Rio-MacOS-Console-Logs

I attached a text file with the error messages.

Rio-Attempting-New-Window-without-Active-Window-On-Desktop.txt

Let me know if there are any other debugging tools or logs I can get.

pushyseagull commented 11 months ago

Hey @pushyseagull thanks for the descriptive issue,

I've tried to do the same approach:

  1. open rio in space 1
  2. move to space 2 and select rio as active application
  3. command+n and it opens in space 1 even I am in space 2 (this behavior is the correct, same as Firefox does for example)

I wanted to come back to this because I think the problem was maybe mis-understood. I don't have application grouping by space enabled so I would not expect a new window of any application to go back to space 1 as in your example, it should open in space 2 as thats the active space. Currently I am unable to open a new Rio window in any space that doesn't have an existing window present.

The only way to have multiple Rio windows is to open new ones from the initial space and move the windows to other spaces. Once a space has an existing Rio window you can open new ones.

With many other applications such as Firefox, Chrome, Brave, terminal, Preview, Finder, etc I can go to any space that is currently blank and open a new window in that space when selecting an application.

I saw in a few locations where it mentions Rio is built upon some other underlying tools, is there a core terminal emulator that Rio uses that I could try installing and see if it has the same issue?