Pin files & folders to your app grid on GNOME

This script generates a desktop entry that opens a folder, with the same icon and all. #!/usr/bin/env python3 import sys, textwrap from pathlib import Path import gi gi.require_version('Gtk', '4.0') from gi.repository import Gio, GLib, Gtk def get_icon_name(path: Path): """Get the icon associated with a file.""" file = Gio.File.new_for_path(path.as_posix()) info = file.query_info('standard::icon',…