Skip to content
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

Launcher not closing after opening application #1381

Closed
5 tasks done
DADA30000 opened this issue Apr 25, 2024 · 13 comments
Closed
5 tasks done

Launcher not closing after opening application #1381

DADA30000 opened this issue Apr 25, 2024 · 13 comments
Labels
bug contributor-friendly Feel free to submit a pull request wayland

Comments

@DADA30000
Copy link

DADA30000 commented Apr 25, 2024

Environment

Hyprland, NixOS 24.05

Bug description

I'm using 6.0.0-beta10, in release notes it was said that this problem was fixed, but it's not fixed.
When I'm opening an app through ulauncher, ulauncher is not being closed afterwards

Log output

Extension Terminal Runner has not yet been updated to support API v3.0. Running in compatibility mode, which may not be fully functional.
2024-04-25 18:43:37,157 ℹ️  INFO Ulauncher version 6.0.0-beta10 main.main:53
2024-04-25 18:43:37,157 ℹ️  INFO Extension API version 3.0 main.main:54
2024-04-25 18:43:37,157 ℹ️  INFO GTK+ 3.24.39 main.main:55
2024-04-25 18:43:37,157 ℹ️  INFO PyGObject+ 3.46.0 main.main:56
2024-04-25 18:43:37,158 ℹ️  INFO Desktop: HYPRLAND (WAYLAND) on NixOS 24.05 (Uakari) main.main:58
2024-04-25 18:43:37,158 ⚠️  WARNING 

╔═════════════════════════════════════════════════════════════════════════════╗
║                  YOU ARE RUNNING A PRE-RELEASE of ULAUNCHER.                ║
║ Please do not report extension API support warnings to extension developers ║
║ We are still in the process of developing and documenting these features    ║
╚═════════════════════════════════════════════════════════════════════════════╝

 main.main:60
2024-04-25 18:43:37,162 ℹ️  INFO Layer shell: Yes main.main:71
2024-04-25 18:43:37,163 ℹ️  INFO X11 backend: No main.main:72
2024-04-25 18:43:37,163 ℹ️  INFO Migrating /home/l0lk3k/.config/ulauncher/ext_preferences/com.github.lighttigerxiv.ulauncher-terminal-runner-extension.json to /home/l0lk3k/.config/ulauncher/ext_preferences/com.github.lighttigerxiv.ulauncher-terminal-runner-extension.json migrate._migrate_file:50
2024-04-25 18:43:37,229 ℹ️  DEBUG Screen RGBA visual: <__gi__.GdkWaylandVisual object at 0x7f6b0245a980 (GdkWaylandVisual at 0xde70f0)> UlauncherWindow.position_window:256
2024-04-25 18:43:37,229 ℹ️  DEBUG Screen is composited: True UlauncherWindow.position_window:257
2024-04-25 18:43:37,275 ℹ️  DEBUG render 6 results UlauncherWindow.show_results:354
2024-04-25 18:43:37,329 ℹ️  DEBUG Screen RGBA visual: <__gi__.GdkWaylandVisual object at 0x7f6b0247c0c0 (GdkWaylandVisual at 0xde70f0)> UlauncherWindow.position_window:256
2024-04-25 18:43:37,329 ℹ️  DEBUG Screen is composited: True UlauncherWindow.position_window:257
2024-04-25 18:43:37,345 ℹ️  DEBUG render 6 results UlauncherWindow.show_results:354
2024-04-25 18:43:37,319 ℹ️  DEBUG Send message with keys "{'ext_id', 'type'}" Client.send:83
2024-04-25 18:43:37,347 ℹ️  DEBUG Received data of 116 bytes framer._ingest_data:103
2024-04-25 18:43:37,347 ℹ️  DEBUG Received message with keys "{'type', 'ext_id'}" framer._ingest_data:121
2024-04-25 18:43:37,349 ℹ️  DEBUG Send event dict to "com.github.lighttigerxiv.ulauncher-terminal-runner-extension" ExtensionSocketController._send_event:51
2024-04-25 18:43:37,349 ℹ️  INFO Extension "com.github.lighttigerxiv.ulauncher-terminal-runner-extension" connected ExtensionSocketController.__init__:46
2024-04-25 18:43:37,320 ℹ️  DEBUG Sent 116 bytes framer._write_done:154
2024-04-25 18:43:37,350 ℹ️  DEBUG Sent 120 bytes framer._write_done:154
2024-04-25 18:43:37,350 ℹ️  DEBUG Received data of 120 bytes framer._ingest_data:103
2024-04-25 18:43:37,350 ℹ️  DEBUG Received message with keys "{'type', 'args'}" framer._ingest_data:121
2024-04-25 18:43:37,350 ℹ️  DEBUG Incoming event dict Client.on_message:58
2024-04-25 18:43:37,350 ℹ️  DEBUG com.github.lighttigerxiv.ulauncher-terminal-runner-extension: No listeners for event PreferencesEvent extension.trigger_event:91
2024-04-25 18:43:38,776 ℹ️  INFO Will run command in preferred terminal (kitty) launch_app.launch_app:40
2024-04-25 18:43:38,777 ℹ️  INFO Run application btop++ (btop) Exec ['kitty', 'btop'] launch_app.launch_app:50

Communication guidelines

  • I have read and agree with Ulauncher's communication guidelines and checked the troubleshooting page for self-help.
  • I have tried to understand the error message and help myself, before reporting it.
  • My issue description has clear steps for how to reproduce the issue.
  • This issue applies to the whole Ulauncher application, not for a specific extension.

Ulauncher v6

  • I have made sure the bug isn't already fixed in v6.
@DADA30000 DADA30000 added the bug label Apr 25, 2024
@friday
Copy link
Member

friday commented Apr 25, 2024

What's the output of ulauncher --version?

@friday
Copy link
Member

friday commented Apr 25, 2024

Or actually nvm I guess it says 6.0.0-beta10 in the log.

I can't reproduce this in my environment so help would be appreciated. Does it only happen with terminal apps?

@Supreeeme
Copy link

This is happening to me as well with every app on Ubuntu 22.04 LTS (also on beta10). Checking with WAYLAND_DEBUG I don't see any calls to zwlr_layer_surface_v1.destroy().

@friday
Copy link
Member

friday commented Apr 26, 2024

Thanks @Supreeeme! This gives me a pretty good idea of how this was caused and probably how to fix it.

@friday
Copy link
Member

friday commented Apr 26, 2024

I think bce7010 may have broken it, but I'm not sure. Could you test if this works in v6.0.0-beta6 but not v6.0.0-beta7?

@DADA30000
Copy link
Author

I think bce7010 may have broken it, but I'm not sure. Could you test if this works in v6.0.0-beta6 but not v6.0.0-beta7?

idk how to do this with flakes

@friday friday added contributor-friendly Feel free to submit a pull request wayland labels Apr 27, 2024
@i0dk1
Copy link

i0dk1 commented Apr 27, 2024

@friday
Copy link
Member

friday commented Apr 27, 2024

The intended behavior for Ulauncher is to hide the window when you lose focus, but also to hide it when you launch an app. Both have to fail for Ulauncher to stay open.

For me, the former never failed before, but shortly after the other issue was raised I managed to replicate it with multiple monitors for one specific app. Since I was not at home and did not have time to work on Ulauncher when this happened I could only put a few minutes on it. I made it work for that situation, and found that I had to return True instead of False in one location, so I figured I probably messed the semantics up in the refactoring PR that introduced this. However that wasn't the case, and instead I got it wrong in the hotfix, but with the hotfix + the focus out behavior it would work for me 100% of the time.

Now I managed to test it some more and reverted the former hotfix in 3efdc94. I tried to replicate the issue but haven't been able to (not for lacking monitors to test with).

So please test again with the v6 branch.

Also @Thanatermesis can you confirm if it works for you too now or if the issue was reintroduced/never fixed for you?

@friday
Copy link
Member

friday commented Apr 27, 2024

And I'd like to understand why this doesn't seem to trigger for wlr-users?

def on_focus_out(self) -> None:
if not self.is_dragging:
self.hide(clear_input=False)

@friday
Copy link
Member

friday commented Apr 28, 2024

Latest release includes the new changes:
https://github.com/Ulauncher/Ulauncher/releases/tag/v6.0.0-beta11

@friday
Copy link
Member

friday commented Apr 28, 2024

I'll close the issue. But if you still get the problem after updating, write a comment.

@friday friday closed this as completed Apr 28, 2024
@DADA30000
Copy link
Author

yep, now it works as it should be

@Thanatermesis
Copy link

I can confirm it works on my side too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug contributor-friendly Feel free to submit a pull request wayland
Projects
None yet
Development

No branches or pull requests

5 participants