mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
17 lines
381 B
Python
Executable File
17 lines
381 B
Python
Executable File
#!/usr/bin/python
|
|
"""
|
|
Launch desktop files from ~/.config/autostart
|
|
"""
|
|
|
|
import glob
|
|
import os.path
|
|
from gi.repository import Gio
|
|
|
|
dirname = os.path.expanduser('~/.config/autostart')
|
|
for desktop in glob.glob(os.path.join(dirname, '*.desktop')):
|
|
try:
|
|
fp = Gio.DesktopAppInfo.new_from_filename(desktop)
|
|
except TypeError:
|
|
continue
|
|
fp.launch_uris([], None)
|