libdesktop.startup¶
A module for interacting with the system startup.
-
libdesktop.startup.
add_item
(name, command, system_wide=False)[source]¶ Adds a program to startup.
Adds a program to user startup.
Parameters: Note
system_wide
requires superuser/admin privileges.
-
libdesktop.startup.
list_items
(system_wide=False)[source]¶ List startup programs.
List the programs set to run at startup.
Parameters: system_wide (bool) – Gets the programs that run at system-wide startup. Returns: A list of dictionaries in this format: { 'name': 'The name of the entry.', 'command': 'The command used to run it.' }
Return type: list