DevAlien/workspaces

Apps open in duplicate

Opened this issue · 9 comments

jsf15 commented

Great app, I'm loving it! Thank you very much.

However, all the apps are opening in duplicate, Ubuntu 20.04.1 LTS.

do they open 2 times when you click the test button (when editing) or when you laucnh them through the launcher?

jsf15 commented

The test is fine. The problem is in the launcher.

Sorry I missed the reply. do you launch with mouse click or with the return key?

jsf15 commented

In both cases

Hi, I'm having the same problem, my apps also launch twice, however for me it only happens when I open the workspace with Enter, when I click on it they open just once

I can confirm it only happens when using Enter to open the workspace. When clicking, it does not happen. However, I noticed that if I press Ctrl and then press Enter (to keep the window open), it does not happen either.

Maybe it's related to this part of the code? Perhaps GTK already interprets the Enter key as a click, and by explicitly firing the activation event again, it's opening things twice.

That's strange, it should not count as a click, I have to do some testing. sorry for the delays, I'm a bit busy right now

I have the exact same behavior as @matfantinel describes: everything opens twice when using Enter, but it works fine when clicking or using CTRL+Enter. I'm running Xubuntu 21.04 and installed from Flathub.

Productivity boost idea.
Thank you I'm loving this app.
Hope you will resolve this twice opening issue. It only happens with ENTER button as @michaljenicek mentioned above.