Skip to content

fix: add migration to remove orphaned open-alacritty.py extension#589

Open
ki11e6 wants to merge 1 commit intobasecamp:masterfrom
ki11e6:fix/cleanup-orphaned-alacritty-extension
Open

fix: add migration to remove orphaned open-alacritty.py extension#589
ki11e6 wants to merge 1 commit intobasecamp:masterfrom
ki11e6:fix/cleanup-orphaned-alacritty-extension

Conversation

@ki11e6
Copy link
Copy Markdown

@ki11e6 ki11e6 commented Dec 23, 2025

Summary

  • Adds migration script to remove the orphaned open-alacritty.py Nautilus extension

Problem

The "Open in Alacritty" Nautilus extension was introduced in PR #435 and later removed in PR #559 (Ubuntu 25.10 compatibility). However, users who installed Omakub between these two PRs still have the extension file at:

~/.local/share/nautilus-python/extensions/open-alacritty.py

This extension has a bug where it uses a blocking os.system("alacritty") call, causing the Nautilus right-click context menu to freeze/hang until Alacritty is closed.

Solution

This PR adds a migration script that:

  1. Removes the orphaned open-alacritty.py file (if it exists)
  2. Clears the __pycache__ directory
  3. Restarts Nautilus to apply changes

Test plan

  • Verified migration script runs without errors
  • Confirmed extension file is removed after migration
  • Context menu no longer freezes after fix

Related

The Nautilus extension introduced in PR basecamp#435 had a bug where it used
a blocking os.system() call, causing the context menu to freeze until
Alacritty was closed.

PR basecamp#559 removed the extension from the install script but did not
clean up the already-installed file for existing users.

This migration removes the orphaned extension file and restarts
Nautilus to apply the changes.

Fixes: context menu freeze when using "Open in Alacritty"
Related: basecamp#435, basecamp#559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants