logiguard fork: GPUI xdg-activation keyboard-focus serial fix
Some checks failed
Update All Top Ranking Issues / update_top_ranking_issues (push) Has been cancelled
Triage Project Sync (#84) / Sync triage project (push) Has been cancelled
release_nightly / notify_on_failure (push) Has been cancelled
release_nightly / check_style (push) Has been cancelled
release_nightly / run_tests_windows (push) Has been cancelled
release_nightly / clippy_windows (push) Has been cancelled
release_nightly / bundle_linux_aarch64 (push) Has been cancelled
release_nightly / bundle_linux_x86_64 (push) Has been cancelled
release_nightly / bundle_mac_aarch64 (push) Has been cancelled
release_nightly / bundle_mac_x86_64 (push) Has been cancelled
release_nightly / bundle_windows_aarch64 (push) Has been cancelled
release_nightly / bundle_windows_x86_64 (push) Has been cancelled
release_nightly / build_nix_linux_x86_64 (push) Has been cancelled
release_nightly / build_nix_mac_aarch64 (push) Has been cancelled
release_nightly / update_nightly_tag (push) Has been cancelled
Hotfix Review Monitor / check-hotfix-reviews (push) Has been cancelled
Stale PR Review Reminder / check-stale-prs (push) Has been cancelled
Update Weekly Top Ranking Issues / update_top_ranking_issues (push) Has been cancelled
Bump collab-staging Tag / update-collab-staging-tag (push) Has been cancelled
compliance_check / scheduled_compliance_check (push) Has been cancelled

Single-commit orphan branch: full zed-industries/zed @ 8c74db0 source tree
with a 3-file patch applied (no upstream history).

Patch (crates/gpui_linux/src/linux/wayland/):
  - serial.rs: add SerialKind::KeyboardEnter
  - client.rs: store wl_keyboard.enter serial; add latest_serial_of()
  - window.rs: activate() uses keyboard-enter serial (Mutter focus gate)

Mutter honors window activation only when the token carries the keyboard-
focus serial from wl_keyboard.enter; GPUI used a stale mouse-press serial.
See docs/tray-window-focus-wayland.md in logiguard.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mohamad Khani
2026-07-14 02:22:17 +03:30
commit b72a46db68
3984 changed files with 1583326 additions and 0 deletions

158
script/uninstall.sh Normal file
View File

@@ -0,0 +1,158 @@
#!/usr/bin/env sh
set -eu
# Uninstalls Zed that was installed using the install.sh script
check_remaining_installations() {
platform="$(uname -s)"
if [ "$platform" = "Darwin" ]; then
# Check for any Zed variants in /Applications
remaining=$(ls -d /Applications/Zed*.app 2>/dev/null | wc -l)
[ "$remaining" -eq 0 ]
else
# Check for any Zed variants in ~/.local
remaining=$(ls -d "$HOME/.local/zed"*.app 2>/dev/null | wc -l)
[ "$remaining" -eq 0 ]
fi
}
prompt_remove_preferences() {
printf "Do you want to keep your Zed preferences? [Y/n] "
read -r response
case "$response" in
[nN]|[nN][oO])
rm -rf "$HOME/.config/zed"
echo "Preferences removed."
;;
*)
echo "Preferences kept."
;;
esac
}
main() {
platform="$(uname -s)"
channel="${ZED_CHANNEL:-stable}"
if [ "$platform" = "Darwin" ]; then
platform="macos"
elif [ "$platform" = "Linux" ]; then
platform="linux"
else
echo "Unsupported platform $platform"
exit 1
fi
"$platform"
echo "Zed has been uninstalled"
}
linux() {
suffix=""
if [ "$channel" != "stable" ]; then
suffix="-$channel"
fi
appid=""
db_suffix="stable"
case "$channel" in
stable)
appid="dev.zed.Zed"
db_suffix="stable"
;;
nightly)
appid="dev.zed.Zed-Nightly"
db_suffix="nightly"
;;
preview)
appid="dev.zed.Zed-Preview"
db_suffix="preview"
;;
dev)
appid="dev.zed.Zed-Dev"
db_suffix="dev"
;;
*)
echo "Unknown release channel: ${channel}. Using stable app ID."
appid="dev.zed.Zed"
db_suffix="stable"
;;
esac
# Remove the app directory
rm -rf "$HOME/.local/zed$suffix.app"
# Remove the binary symlink
rm -f "$HOME/.local/bin/zed"
# Remove the .desktop file
rm -f "$HOME/.local/share/applications/${appid}.desktop"
# Remove the database directory for this channel
rm -rf "$HOME/.local/share/zed/db/0-$db_suffix"
# Remove socket file
rm -f "$HOME/.local/share/zed/zed-$db_suffix.sock"
# Remove the entire Zed directory if no installations remain
if check_remaining_installations; then
rm -rf "$HOME/.local/share/zed"
prompt_remove_preferences
fi
rm -rf $HOME/.zed_server
}
macos() {
app="Zed.app"
db_suffix="stable"
app_id="dev.zed.Zed"
case "$channel" in
nightly)
app="Zed Nightly.app"
db_suffix="nightly"
app_id="dev.zed.Zed-Nightly"
;;
preview)
app="Zed Preview.app"
db_suffix="preview"
app_id="dev.zed.Zed-Preview"
;;
dev)
app="Zed Dev.app"
db_suffix="dev"
app_id="dev.zed.Zed-Dev"
;;
esac
# Remove the app bundle
if [ -d "/Applications/$app" ]; then
rm -rf "/Applications/$app"
fi
# Remove the binary symlink
rm -f "$HOME/.local/bin/zed"
# Remove the database directory for this channel
rm -rf "$HOME/Library/Application Support/Zed/db/0-$db_suffix"
# Remove app-specific files and directories
rm -rf "$HOME/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/$app_id.sfl"*
rm -rf "$HOME/Library/Caches/$app_id"
rm -rf "$HOME/Library/HTTPStorages/$app_id"
rm -rf "$HOME/Library/Preferences/$app_id.plist"
rm -rf "$HOME/Library/Saved Application State/$app_id.savedState"
# Remove the entire Zed directory if no installations remain
if check_remaining_installations; then
rm -rf "$HOME/Library/Application Support/Zed"
rm -rf "$HOME/Library/Logs/Zed"
prompt_remove_preferences
fi
rm -rf $HOME/.zed_server
}
main "$@"