From ebe5a088f7bfa1d8cfc0dc7b99a9eb068dc2377d Mon Sep 17 00:00:00 2001 From: kvnxiao Date: Mon, 27 Apr 2020 17:45:22 -0400 Subject: [PATCH] Add Startup folder shell command --- README.md | 4 ++++ src/icons/startup.png | Bin 0 -> 3899 bytes src/keyword.py | 1 + src/lib/win.py | 4 ++++ src/shell_actions.py | 8 ++++++++ 5 files changed, 17 insertions(+) create mode 100644 src/icons/startup.png diff --git a/README.md b/README.md index 1f0b08f..febee0c 100644 --- a/README.md +++ b/README.md @@ -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)** @@ -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 diff --git a/src/icons/startup.png b/src/icons/startup.png new file mode 100644 index 0000000000000000000000000000000000000000..fa236ceefb3855c4a9eee44cdf1005529a42ef3f GIT binary patch literal 3899 zcmd5<3vd+W9sfc!27+LD3_@UBkBU;UV5^_rj|MDU*E0!BoH5J6>-rb|&qNlfsCsx*I8xg-+M4+Ai0 z=!lm}@S-SrJPGz*#RdWiZr#YPMi#|=>y=yg)`TFD4|TOl6Jd5W(m1ipFx|+9-Ju!4 zam1cD94c20RWDcj2ttB5IQBn5W1LY z5+`jqZTC`k-fHJ5bJ@+TN{U?5FRLW-vZ@6HbazTXD1$^OSQgdh@$l}TZU{jUy0e@X zWNL<@NIb{Nlq^y#?%*UV4kep}bF`hqDbh#TWZB2iEZ22DOBJh3T$$%%DJH2Rl99L& z-a)Z4EwchHN}?UNIcz>$;20myaXy)%t%&AJNPApUP?ih+o>EP#BqR|jl{g7fxI?sy zIO(&=ILF#)T;^zpB#4Y`6C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=P#(=vt!%-`oSQ_-MRGI;@NFCZ)~}_br5;FcX*h)qz8;Sn@(T&y0&O&-7h;vKL8iB zk4|oGFkfd8iVGWW)^}W4eFGFOoI5oFXMo!=eH++8UK$w1Ed+&^&L3R6)zfGSac9rT K+BUQF*?$ApI4~su literal 0 HcmV?d00001 diff --git a/src/keyword.py b/src/keyword.py index 4b92707..01f4f3c 100644 --- a/src/keyword.py +++ b/src/keyword.py @@ -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" diff --git a/src/lib/win.py b/src/lib/win.py index a6b162e..6a43558 100644 --- a/src/lib/win.py +++ b/src/lib/win.py @@ -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:") diff --git a/src/shell_actions.py b/src/shell_actions.py index ffd21ba..6ed261c 100644 --- a/src/shell_actions.py +++ b/src/shell_actions.py @@ -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 + )