Bugfix: Fixes #203, Failing to identify Linux Mint

This commit is contained in:
Rory Fewell
2023-07-26 18:22:06 +01:00
parent 70b665b037
commit e86783b6c0
3 changed files with 29 additions and 19 deletions

View File

@@ -1,3 +1,3 @@
# bootvid
This directory contains the source-code for the boot splash.
![Windows XP Splash](https://github.com/rozniak/xfce-winxp-tc/blob/feat-204/base/bootvid/res/splshclx.png?raw=true)
![Windows XP Splash](https://github.com/rozniak/xfce-winxp-tc/blob/master/base/bootvid/res/splshclx.png?raw=true)

View File

@@ -12,27 +12,32 @@
#
# MAIN SCRIPT
#
if [[ ! -f "/etc/os-release" ]]
# Probe for package managers to try and determine what distro we're
# on
#
# Check Debian
#
which dpkg >/dev/null 2>&1
if [[ $? -eq 0 ]]
then
echo "Unable to identify distribution."
exit 1
echo -n "deb"
exit 0
fi
# Retrieve distro ID
# Check Arch Linux
#
distro_in_use=`cat /etc/os-release | grep "^ID" | cut -d"=" -f2`
which pacman >/dev/null 2>&1
case "${distro_in_use}" in
arch)
if [[ $? -eq 0 ]]
then
echo -n "archpkg"
;;
exit 0
fi
debian)
echo -n "deb"
;;
*)
# Nothing else to probe, it's over!
#
echo "Unsupported distribution."
exit 1
;;
esac

View File

@@ -0,0 +1,5 @@
# libwintc-shelldpa
This directory contains the source-code for the Shell Display Protocol Abstraction library.
## Purpose
This library abstracts away differences in display protocols for APIs that require interacting with them. For instance, window management varies between X and Wayland - so this library attempts to use WNCK / xfce4windowing where it can.