-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from WhitewaterFoundry/javier/ftr/PEN-160
[PEN-160] Add uninstall XFCE support
- Loading branch information
Showing
8 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# shellcheck source=./uninstall-common.sh | ||
source "$(dirname "$0")/uninstall-common.sh" "$@" | ||
|
||
function uninstall_xrdp() { | ||
echo "Removing XRDP" | ||
remove_package 'xrdp' 'xorgxrdp' | ||
sudo_rem_file "/usr/local/bin/remote_desktop.sh" | ||
sudo_rem_file "/usr/local/bin/start-xrdp" | ||
sudo_rem_file "/etc/profile.d/start-xrdp.sh" | ||
sudo_rem_file "/etc/sudoers.d/start-xrdp" | ||
} | ||
|
||
function uninstall_xfce() { | ||
echo "Removing XFCE" | ||
remove_package 'xfce4' 'xfce4-terminal' | ||
} | ||
|
||
function remove_shortcut() { | ||
echo "Removing Shortcuts" | ||
local dest_path | ||
dest_path="$(wslpath "$(wslvar -l Programs)")"/"${SHORTCUTS_FOLDER}" | ||
sudo_rem_file "${dest_path}"/Xfce\ desktop\ -\ Full\ Screen.lnk | ||
sudo_rem_file "${dest_path}"/Xfce\ desktop\ -\ 1024x768.lnk | ||
sudo_rem_file "${dest_path}"/Xfce\ desktop\ -\ 1366x768.lnk | ||
sudo_rem_file "${dest_path}"/Xfce\ desktop\ -\ 1920x1080.lnk | ||
} | ||
|
||
function main() { | ||
uninstall_xrdp | ||
uninstall_xfce | ||
remove_shortcut | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters