mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Small linux fixes
This commit is contained in:
parent
5f7a37279f
commit
2bc508d448
3 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,7 @@ public class AppFontCheck {
|
||||||
try {
|
try {
|
||||||
Font.getDefault();
|
Font.getDefault();
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
throw new IllegalStateException("Unable to load any fonts. Check whether your system is properly configured with fontconfig", t);
|
throw new IllegalStateException("Unable to load any fonts. Check whether your system is properly configured with fontconfig and you have any fonts installed", t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,8 @@ public class TerminalErrorHandler extends GuiErrorHandlerBase implements ErrorHa
|
||||||
handleWithSecondaryException(event, throwable);
|
handleWithSecondaryException(event, throwable);
|
||||||
ErrorAction.ignore().handle(event);
|
ErrorAction.ignore().handle(event);
|
||||||
})) {
|
})) {
|
||||||
|
// Exit if we couldn't initialize the GUI
|
||||||
|
OperationMode.halt(1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -127,8 +127,10 @@ install() {
|
||||||
case "$uname_str" in
|
case "$uname_str" in
|
||||||
Linux)
|
Linux)
|
||||||
if [ -f "/etc/debian_version" ]; then
|
if [ -f "/etc/debian_version" ]; then
|
||||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -qy "$file"
|
info "Installing file $file with apt"
|
||||||
|
DEBIAN_FRONTEND=noninteractive sudo apt install -qy "$file"
|
||||||
else
|
else
|
||||||
|
info "Installing file $file with rpm"
|
||||||
sudo rpm -i "$file"
|
sudo rpm -i "$file"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue