Skip to content

Commit 4db15e1

Browse files
authored
Merge pull request #342 from WhitewaterFoundry/development
Development
2 parents 5de7c47 + f59ff6a commit 4db15e1

File tree

6 files changed

+8
-49
lines changed

6 files changed

+8
-49
lines changed

pengwin-setup.d/hidpi.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# shellcheck source=./common.sh
44
source "$(dirname "$0")/common.sh" "$@"
55

6-
if (confirm --title "HiDPI" --yesno "Would you like to configure Qt and GDK for HiDPI displays?" 8 85) then
6+
if (confirm --title "HiDPI" --yesno "Would you like to configure Qt and GTK for HiDPI displays?" 8 85) then
77
echo "Installing HiDPI"
88
scale_factor=$(wslsys -S -s)
99

@@ -13,7 +13,9 @@ export QT_SCALE_FACTOR=${scale_factor}
1313
export GDK_SCALE=\$(echo "(\${QT_SCALE_FACTOR} + 0.49) / 1" | bc) #Round
1414
export GDK_DPI_SCALE=\$(echo "\${QT_SCALE_FACTOR} / \${GDK_SCALE}" | bc -l)
1515
16-
if [ "\$(echo "\${QT_SCALE_FACTOR} >= 1.5" | bc -l)" -eq 1 ]; then
16+
if [ "\$(echo "\${QT_SCALE_FACTOR} >= 2" | bc -l)" -eq 1 ]; then
17+
export XCURSOR_SIZE=64
18+
elif [ "\$(echo "\${QT_SCALE_FACTOR} >= 1.5" | bc -l)" -eq 1 ]; then
1719
export XCURSOR_SIZE=32
1820
else
1921
export XCURSOR_SIZE=16

pengwin-setup.d/uninstall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function main() {
2020
"C++" "Remove Linux C/C++ programming support in Visual Studio and CLion " off \
2121
"CASSANDRA" "Remove Cassandra NoSQL server" off \
2222
"COLORTOOL" "Remove ColorTool console color scheme setter" off \
23-
"DO" "Remove Digital Ocean CLI tools" off \
23+
"DIGITALOCEAN" "Remove Digital Ocean CLI tools" off \
2424
"DOCKER" "Remove secure bridge between Pengwin and Docker Desktop" off \
2525
"DOTNET" "Remove Microsoft's .NET Core SDK and NuGet (if installed)" off \
2626
"FCITX" "Remove all fcitx improved non-Latin input support" off \
@@ -94,8 +94,8 @@ function main() {
9494
bash "${UninstallDir}"/colortool.sh "$@"
9595
fi
9696

97-
if [[ ${menu_choice} == *"DO"* ]] ; then
98-
echo "DO"
97+
if [[ ${menu_choice} == *"DIGITALOCEAN"* ]] ; then
98+
echo "DIGITALOCEAN"
9999
bash "${UninstallDir}"/doctl.sh "$@"
100100
fi
101101

rpm/pengwin-setup.d/gui.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ function main() {
1212
local menu_choice=$(
1313
1414
menu --title "GUI Menu" --checklist --separate-output "Install an X server or various other GUI applications\n[SPACE to select, ENTER to confirm]:" 17 99 9 \
15-
#"NLI" "Install fcitx or iBus for improved non-Latin input support" off \
1615
"GUILIB" "Install a base set of libraries for GUI applications" off \
1716
"HIDPI" "Configure Qt and GTK for HiDPI displays" off \
18-
#"STARTMENU" "Generates Windows Start Menu shortcuts for GUI applications" off \
19-
#"TERMINAL" "Install Terminals on Windows or WSL for using WSL" off \
20-
#"SYNAPTIC" "Install the Synaptic package manager" off \
2117
"VCXSRV" "Install the VcXsrv open source X-server" off \
22-
#"WINTHEME" "Install a Windows 10 theme along with the LXAppearance theme switcher " off \
2318
"X410" "Configure X410 to start on Pengwin launch or view a link to install it" off \
2419
2520
3>&1 1>&2 2>&3)

rpm/pengwin-setup.d/services.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ function main() {
149149
local menu_choice=$(
150150
151151
menu --title "Services Menu" --checklist --separate-output "Enables various services\n[SPACE to select, ENTER to confirm]:" 12 70 5 \
152-
#"CASSANDRA" "Install the NoSQL server Cassandra from Apache " off \
153-
#"KEYCHAIN" "Install Keychain, the OpenSSH key manager" off \
154-
#"LAMP" "Install LAMP Stack" off \
155-
#"RCLOCAL" "Enable running scripts at startup from rc.local " off \
156152
"SSH" "Enable SSH server" off \
157153
158154
# shellcheck disable=SC2188

rpm/pengwin-setup.d/uninstall.sh

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,9 @@ function main() {
1313
local menu_choice=$(
1414
1515
menu --title "Uninstall Menu" --checklist --separate-output "Uninstall applications and packages installed by pengwin-setup\n[SPACE to select, ENTER to confirm]:" 20 95 12 \
16-
#"ANSIBLE" "Remove Ansible Playbook deployment tools" off \
17-
#"AWS" "Remove AWS CLI tools" off \
18-
#"AZURE" "Remove Azure CLI tools" off \
19-
#"BASH-RL" "Remove optimized Bash readline settings" off \
20-
#"C++" "Remove Linux C/C++ programming support in Visual Studio and CLion " off \
21-
#"CASSANDRA" "Remove Cassandra NoSQL server" off \
22-
#"COLORTOOL" "Remove ColorTool console color scheme setter" off \
23-
#"DO" "Remove Digital Ocean CLI tools" off \
24-
#"DOCKER" "Remove secure bridge between Pengwin and Docker Desktop" off \
25-
#"DOTNET" "Remove Microsoft's .NET Core SDK and NuGet (if installed)" off \
26-
#"FCITX" "Remove all fcitx improved non-Latin input support" off \
27-
#"FISH" "Remove FISH Shell" off \
28-
#"GO" "Remove Go language" off \
2916
"GUILIB" "Remove base GUI application libraries" off \
3017
"HIDPI" "Remove Qt and GTK HiDPI modifications" off \
31-
#"HOMEBREW" "Remove the Homebrew package manager" off \
32-
#"IBM" "Remove IBM Cloud CLI tools" off \
33-
#"IBUS" "Remove all ibus improved non-Latin input support" off \
34-
#"JAVA" "Remove SDKMan its installed Java SDKs" off \
35-
#"KEYCHAIN" "Remove Keychain OpenSSH key manager" off \
36-
#"KUBERNETES" "Remove Kubernetes tooling" off \
37-
#"LAMP" "Remove LAMP stack" off \
38-
#"NIM" "Remove choosenim and any installed Nim components" off \
39-
#"NODEJS" "Remove Node.js, npm and Yarn (if installed)" off \
40-
#"OPENSTACK" "Remove OpenStack CLI tools" off \
41-
#"POWERSHELL" "Remove Powershell for Linux" off \
42-
#"PYENV" "Remove pyenv, its Python version(s) and modules" off \
43-
#"RCLOCAL" "Remove rclocal support (the file /etc/rc.local) is kept" off \
44-
#"RUBY" "Remove rbenv, Ruby version(s) and Rails (if installed)" off \
45-
#"RUST" "Remove Rust and rustup toolchain installer" off \
46-
#"STARTMENU" "Remove all Pengwin generated Windows Start Menu shortcuts" off \
47-
#"SSH" "Remove SSH server" off \
48-
#"TERRAFORM" "Remove Terraform CLI tools" off \
4918
"VCXSRV" "Remove VcXsrv X-server" off \
50-
#"VSCODE" "Remove Visual Studio Code for Linux" off \
51-
#"WINTHEME" "Remove Windows 10 theme and LXAppearance" off \
52-
#"WSLTTY" "Remove WSLtty" off \
5319
"X410" "Remove the X410 X-server autostart" off \
5420
5521
# shellcheck disable=SC2188

tests/ansible.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function testMain() {
1313

1414
command -v /usr/bin/ansible
1515
assertEquals "Ansible was not installed" "0" "$?"
16-
assertEquals "Ansible was not installed" "1" "$(run_command_as_testuser /usr/bin/ansible --version | grep -c '2.9')"
16+
assertEquals "Ansible was not installed" "1" "$(run_command_as_testuser /usr/bin/ansible --version | grep -c '2.10')"
1717
}
1818

1919
function testUninstall() {

0 commit comments

Comments
 (0)