Fix $_display in x11vnc service
This commit is contained in:
@@ -1143,6 +1143,8 @@ EOF"
|
|||||||
|
|
||||||
_setX11VNCPass
|
_setX11VNCPass
|
||||||
|
|
||||||
|
[[ -z $_display ]] && _display="${DISPLAY:-":0"}"
|
||||||
|
|
||||||
# Get current desktop resolution
|
# Get current desktop resolution
|
||||||
# TODO: may need to break this out into its own function and get smarter at identifying multi-monitors
|
# TODO: may need to break this out into its own function and get smarter at identifying multi-monitors
|
||||||
local _res
|
local _res
|
||||||
@@ -1216,6 +1218,10 @@ EOF"
|
|||||||
:
|
:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_containerMC() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
_uninstall() {
|
_uninstall() {
|
||||||
|
|
||||||
@@ -1348,6 +1354,9 @@ EOF"
|
|||||||
mediacenter-vncserver)
|
mediacenter-vncserver)
|
||||||
_containerVNC
|
_containerVNC
|
||||||
;;
|
;;
|
||||||
|
mediacenter)
|
||||||
|
_containerMC
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user