dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] Settings window cannot be reopened after closing with Ctrl+Q until logout/reboot

Open tetam01 opened this issue 6 months ago • 8 comments

Describe the bug

After closing the ML4W Settings window with Meta+Q (killactive), the Settings cannot be reopened until logout/reboot.

Steps to reproduce

I experienced an issue where the ML4W Settings window cannot be reopened after closing it with Meta+Q. The only workaround was to log out and log back in or reboot the system. Since I couldn't find any useful information about this online, I asked an AI for help. This is the script I got:

!/usr/bin/env bash
SETTINGS_PATH="HOME/.local/share/ml4w-dotfiles-settings/quickshell"
pkill -f "qs -p $SETTINGS_PATH" 2>/dev/null
sleep 0.5
export PROFILE="com.ml4w.dotfiles"
qs -p "$SETTINGS_PATH" &
sleep 1
qs -p "$SETTINGS_PATH" ipc call theme-manager reload

I cannot guarantee this script works for everyone, as it was AI-generated and I'm not sure if it addresses the root cause.

To trigger this script with a keyboard shortcut, I changed my keybinding from

bind = $mainMod, Q, killactive to bind = $mainMod, Q, exec, ~/.config/hypr/scripts/killactive.sh

CachyOS Linux 7.0.5-2-cachyos Hyprland 0.55.0 (Wayland)

Expected behavior

The Settings window should be able to be reopened after closing it, without requiring a logout or reboot

Screenshots

No response

Distribution

Arch Linux

If Other, specify

No response

Additional context

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

tetam01 avatar May 12 '26 20:05 tetam01

I have exactly the same behaviour on my arch system.

JohRest avatar May 13 '26 13:05 JohRest

Thanks for sharing this issue. I will look into it.

mylinuxforwork avatar May 13 '26 18:05 mylinuxforwork

I was able to replicate the issue. It is somehow connected to Hyprland 0.55.x. You can enter "settings" in the terminal to open the tty version of the settings app.

mylinuxforwork avatar May 16 '26 20:05 mylinuxforwork

Same issue with welcome app

lolxdop avatar May 17 '26 06:05 lolxdop

Yes. I can confirm the same effect on the welcome app. In the lua-migration branch, I have already temporarily replaced the quickshell settings app with the terminal version.

You can always run killall qs and the qs & to restart quickshell and bring the welcome app and settings app back.

mylinuxforwork avatar May 17 '26 14:05 mylinuxforwork

I changed the script to works with welcome app and settings app. To fix the same IPC issue with Welcome App and Settings App becoming unresponsive. I've changed my restart script that handles both:

#!/usr/bin/env bash
SETTINGS_PATH="$HOME/.local/share/ml4w-dotfiles-settings/quickshell"
# Kill all Quickshell instances
killall qs 2>/dev/null
sleep 0.5
# Restart main Quickshell
qs &
sleep 0.5
# Restart Settings instance with profile 
export PROFILE="com.ml4w.dotfiles"
qs -p "$SETTINGS_PATH" &
sleep 0.5

Might help if you're experiencing the same problem. Works on my setup, but no guarantees it'll work for everyone since setups can vary.

tetam01 avatar May 17 '26 15:05 tetam01

The other workaround was I downgraded Quickshell back 0.2.x it worked fine after that for me

dwilliam62 avatar May 22 '26 15:05 dwilliam62

Fixed on Rolling Release.

mylinuxforwork avatar May 27 '26 14:05 mylinuxforwork