fix: exclude Python from AppImage to fix Show In Folder with non-ASCII paths #1885

Closed
ljharb opened 6:46am on August 3, 2026 wanted to merge 1 commit into mltframework/shotcut master from
copilot/fix-1884-issue
Diff Delta:
0
About 4 Diff Delta/hour
Classified as:  Bug Fix

ljharb's Description of Work

The AppImage bundles Python with a non-standard prefix (usr/bin), causing AppRun to set PYTHONHOME={AppImage}/usr/bin. External tools invoked by Shotcut (e.g. xdg-open for "Show In Folder") inherit this env var and fail when the path contains non-ASCII characters: Could not parse arguments: Invalid byte sequence in conversion input.



  • packaging/linux/appimage/appimage.yml: Remove Python from the AppDir after tarball extraction. Covers the non-standard prefix location (usr/bin/lib/python*) and the standard one (usr/lib/python*):
    yaml
    - rm -rf usr/bin/python* usr/bin/lib/python* usr/lib/python*

    With no Python in the AppDir, AppRun does not set PYTHONHOME/PYTHONPATH, and external processes handle all paths correctly.

1 total changed file
Loading changes...
You’ve completed the full review pass
Your attention span may now revert to "default human"