From b5f88b3eab613ff854948dfba5cd5fe4afb12b76 Mon Sep 17 00:00:00 2001 From: Fmstrat Date: Thu, 12 Nov 2020 11:30:18 -0500 Subject: [PATCH] Added manual mode --- README.md | 7 +++++++ bin/winapps | 3 +++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 3c0c80e..8952ec1 100644 --- a/README.md +++ b/README.md @@ -174,6 +174,13 @@ Adding applications to the installer is easy. Simply copy one of the application When running the installer, it will check for if any configured apps are installed, and if they are it will create the appropriate shortcuts on the host OS. +## Running applications manually +WinApps offers a manual mode for running applications that are not configured. This is completed with the `manual` flag. Executables that are in the path do not require full path definition. +``` bash +./bin/winapps manual "C:\my\directory\executableNotInPath.exe" +./bin/winapps manual executableInPath.exe +``` + ## Checking for new application support The installer can be run multiple times, so simply run: ``` bash diff --git a/bin/winapps b/bin/winapps index 12858a2..2c90db7 100755 --- a/bin/winapps +++ b/bin/winapps @@ -74,6 +74,9 @@ fi if [ "${1}" = "windows" ]; then xfreerdp /d:"${RDP_DOMAIN}" /u:"${RDP_USER}" /p:"${RDP_PASS}" /v:${RDP_IP} /scale:${RDP_SCALE} /dynamic-resolution +auto-reconnect +home-drive /wm-class:"Microsoft Windows" 1> /dev/null 2>&1 & +elif [ "${1}" = "manual" ]; then + dprint "MANUAL:${2}" + xfreerdp /d:"${RDP_DOMAIN}" /u:"${RDP_USER}" /p:"${RDP_PASS}" /v:${RDP_IP} +auto-reconnect +home-drive -wallpaper /scale:${RDP_SCALE} /dynamic-resolution /${MULTI_FLAG} /app:"${2}" 1> /dev/null 2>&1 & elif [ "${1}" != "install" ]; then dprint "DIR:${DIR}" . "${DIR}/../apps/${1}/info"