You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this. Just a note, this seems to depend on qt6-base-dev (ubuntu) / qt6-qtbase-devel (fedora).
Also might be helpful to just point people to an install.sh like this, that creates the systemd service too:
#!/bin/bash# Variables
SERVICE_NAME="fakwin.service"
SERVICE_DIR="$HOME/.config/systemd/user"
SERVICE_PATH="$SERVICE_DIR/$SERVICE_NAME"
EXECUTABLE="$HOME/.local/bin/fakwin"# Build the binary
mkdir -p build
cd build
cmake ..
make
mkdir -p "$(dirname "$EXECUTABLE")"
mv fakwin "$EXECUTABLE"# Ensure the service directory exists
mkdir -p "$SERVICE_DIR"# Create the service file
cat <<EOF > "$SERVICE_PATH"[Unit]Description=Run fakwin binary to fix shutdowns on custom WM plasma.# For running before shutdownDefaultDependencies=noBefore=shutdown.target reboot.target halt.target poweroff.target[Service]ExecStart=$EXECUTABLERestart=alwaysType=simple[Install]# run before shutdownWantedBy=shutdown.targetEOF# Reload systemd to recognize the new service
systemctl --user daemon-reload
# Enable the service to start on boot or before shutdown
systemctl --user enable"$SERVICE_NAME"# Start the service immediately (optional)
systemctl --user start "$SERVICE_NAME"
The text was updated successfully, but these errors were encountered:
Hey, thanks for the point about dependencies. I'll add a note for the same. Thank you for the script as well, but I would rather let people choose how they want to run this script (whether they want to use a systemd service or something else).
And in any case, this is a just a temporary fix. I would rather wish that users complain to the upstream, urging them to fix it, than make the hacky fix a simple click-to-install solution. :)
Thanks for this. Just a note, this seems to depend on
qt6-base-dev
(ubuntu) /qt6-qtbase-devel
(fedora).Also might be helpful to just point people to an
install.sh
like this, that creates the systemd service too:The text was updated successfully, but these errors were encountered: