Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Add Startup folder shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnxiao committed Apr 27, 2020
1 parent 33a7fad commit ebe5a08
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Type in a valid keyword to activate the corresponding function:
|Desktop|Opens the user's Desktop folder|
|Downloads|Opens the user's Downloads folder|
|Documents|Opens the user's Documents folder|
|Startup|Opens the user's Startup folder|

**Windows Settings Shortcuts (Win10 only)**

Expand All @@ -74,6 +75,9 @@ Type in a valid keyword to activate the corresponding function:

## Change Log

**1.0.1**
- Added `Startup` keyword as a shell command to open the user's startup menu folder

**1.0.0 - Initial Release**
- Initial release of the plugin which contains system actions,
explorer shell shortcuts, and windows settings shortcuts for Windows 10
Expand Down
Binary file added src/icons/startup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
SHELL_DESKTOP = "Desktop"
SHELL_DOWNLOADS = "Downloads"
SHELL_DOCUMENTS = "Documents"
SHELL_STARTUP = "Startup"

# Settings app actions
MS_SETTINGS_OPEN_SETTINGS = "Settings Panel"
Expand Down
4 changes: 4 additions & 0 deletions src/lib/win.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def open_downloads():
shell_open("shell:Downloads")


def open_startup():
shell_open("shell:Startup")


# UWP Settings app
def open_settings():
shell_open("ms-settings:")
Expand Down
8 changes: 8 additions & 0 deletions src/shell_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ def __init__(self, winsys):
winsys.load_resource_image("documents.png"),
shell_func.open_documents
)

# Documents
self.actions[keyword.SHELL_STARTUP] = action.Action(
keyword.SHELL_STARTUP,
"Opens the user's Startup folder",
winsys.load_resource_image("startup.png"),
shell_func.open_startup
)

0 comments on commit ebe5a08

Please sign in to comment.