Skip to content

This program serves as a replacement of desktop shortcuts and batch files, and an extension to the Windows start menu.

License

Notifications You must be signed in to change notification settings

dlamanna/DesktopShell

Repository files navigation

DesktopShell

Created in Visual Studio 2017

============

This program serves as a replacement of desktop shortcuts and batch files, and an extension to the Windows start menu.


Setup

Before running DesktopShell, you need to configure environment variables for secure operation. See ENVIRONMENT_SETUP.md for detailed instructions.

Environment variables (overview)

  • DESKTOPSHELL_PASSPHRASE (required): TCP remote command passphrase.
  • DESKTOPSHELL_TCP_TLS (optional): set to 1 to enable TLS for TCP remote commands.
  • DESKTOPSHELL_TCP_TLS_PFX / DESKTOPSHELL_TCP_TLS_PFX_PASSWORD (optional): server certificate for TLS.
  • DESKTOPSHELL_TCP_TLS_THUMBPRINT (optional): client-side pin for self-signed certs.
  • DESKTOPSHELL_QUEUE_ENABLED (optional): set to 1 to enable HTTPS queue fallback.
  • DESKTOPSHELL_QUEUE_BASEURL (optional): queue API base URL (defaults to https://queue.dlamanna.com).
  • DESKTOPSHELL_QUEUE_KEY_B64 (optional): Base64-encoded AES key for queue message encryption.
  • DESKTOPSHELL_CF_ACCESS_CLIENT_ID / DESKTOPSHELL_CF_ACCESS_CLIENT_SECRET (required if queue enabled): Cloudflare Access service token credentials.

This is mostly meant as a code example since many of the features of this program launch other programs I coded which are not bundled in this repository. If you want to try it anyways, add your regular expression, program executable path, and commandline arguments in separate lines in the shortcuts.txt file. Add one line spacing between statements, and if no commandline arguments are required, put a dash on the third line. To use your new regex either re-open the DesktopShell.exe program or type the command "rescan".


Example:

(^txt$){1}
C:\notepad.exe
"C:\Program Files (x86)\testfile.txt"
C:\notepad.exe
"C:\Program Files (x86)\testfile2.txt"

(^img$){1}
C:\paint.exe
-

About

This program serves as a replacement of desktop shortcuts and batch files, and an extension to the Windows start menu.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages