Skip to content

Instantly share code, notes, and snippets.

@axzxc1236
Last active September 22, 2025 10:03
Show Gist options
  • Select an option

  • Save axzxc1236/1d1b737a8b2d5c2a3e2026e4cf9d332a to your computer and use it in GitHub Desktop.

Select an option

Save axzxc1236/1d1b737a8b2d5c2a3e2026e4cf9d332a to your computer and use it in GitHub Desktop.
My mitigation to Wine bug 43030
#How to setup:
#1. Have systemd and xdotool installed
#2. store the script (Line_helper.sh) as $HOME/.local/script/Line_helper.sh
#3. store this service file as $HOME/.config/systemd/user/line-helper.service
#4. chmod +x $HOME/.local/script/Line_helper.sh
#5. start line-helper.service before you start line
[Unit]
Description=Automatically minimize Line
After=graphical.target
[Service]
ExecStart=%h/.local/script/Line_helper.sh
Restart=always
RestartSec=30
[Install]
WantedBy=default.target
#! /bin/sh
if [[ $(which xdotool) = "" ]]; then
echo "xdotool is required to run this script."
exit
fi
if [[ $(which xwininfo) = "" ]]; then
echo "xwininfo is required to run this script."
exit
fi
while true
do
xwininfo -tree -root |
grep 'has no name.*"line.*\.exe"' |
awk '{ print $1 }' |
xargs -rl xdotool windowclose
sleep 10
done
@axzxc1236
Copy link
Author

That works very well without the need to minimize Line, thank you!

@sundtek
Copy link

sundtek commented Jun 22, 2025

This would be another option, but it requires a modification of the wine sourcecode:
https://forum.winehq.org/viewtopic.php?t=41118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment