Easy way to make desktop shortcuts to almost anything added.

This commit is contained in:
Storm Dragon committed 2026-10-18 22:13:18 -04:00
1 parent 6c793f530a
commit d2c5695221
6 files changed
+608 -1

No files matched your search

+6 -1
View File
@@ -26,6 +26,8 @@ gi.require_version("Gtk", "3.0")
from gi.repository import Gdk, Gio, GLib, Gtk
from shortcuts import desktop_directory
try:
gi.require_version("GioUnix", "2.0")
from gi.repository import GioUnix
@@ -100,7 +102,10 @@ def desktop_entry_name(path):
def read_desktop_items():
desktop_path = Path.home() / "Desktop"
try:
desktop_path = desktop_directory()
except ValueError:
return []
if not desktop_path.is_dir():
return []