mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
tigervnc: add icon, port setting
This commit is contained in:
parent
71b29a5ba8
commit
d037b97efc
BIN
packages/addons/service/tigervnc/icon/icon.png
Normal file
BIN
packages/addons/service/tigervnc/icon/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
@ -15,8 +15,10 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="tigervnc"
|
PKG_NAME="tigervnc"
|
||||||
PKG_VERSION="1.7.0"
|
PKG_VERSION="1.7.0"
|
||||||
|
PKG_REV="100"
|
||||||
PKG_ARCH="x86_64"
|
PKG_ARCH="x86_64"
|
||||||
PKG_LICENSE="GPLv2"
|
PKG_LICENSE="GPLv2"
|
||||||
PKG_SITE="http://www.tigervnc.org"
|
PKG_SITE="http://www.tigervnc.org"
|
||||||
@ -27,7 +29,6 @@ PKG_SECTION="service"
|
|||||||
PKG_IS_ADDON="yes"
|
PKG_IS_ADDON="yes"
|
||||||
PKG_ADDON_NAME="TigerVNC"
|
PKG_ADDON_NAME="TigerVNC"
|
||||||
PKG_ADDON_TYPE="xbmc.service"
|
PKG_ADDON_TYPE="xbmc.service"
|
||||||
PKG_REV="100"
|
|
||||||
PKG_SHORTDESC="$PKG_ADDON_NAME server"
|
PKG_SHORTDESC="$PKG_ADDON_NAME server"
|
||||||
PKG_LONGDESC="$PKG_ADDON_NAME ($PKG_VERSION) is a high-performance, platform-neutral implementation of Virtual Network Computing, a client/server application that allows users to launch and interact with graphical applications on remote machines"
|
PKG_LONGDESC="$PKG_ADDON_NAME ($PKG_VERSION) is a high-performance, platform-neutral implementation of Virtual Network Computing, a client/server application that allows users to launch and interact with graphical applications on remote machines"
|
||||||
|
|
||||||
|
28
packages/addons/service/tigervnc/source/bin/tigervnc.start
Normal file
28
packages/addons/service/tigervnc/source/bin/tigervnc.start
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
################################################################################
|
||||||
|
# This file is part of LibreELEC - https://libreelec.tv
|
||||||
|
# Copyright (C) 2016 Team LibreELEC
|
||||||
|
#
|
||||||
|
# LibreELEC is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LibreELEC is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
. /etc/profile
|
||||||
|
oe_setup_addon service.tigervnc
|
||||||
|
|
||||||
|
if [ ! -f "$ADDON_HOME/passwd" ]
|
||||||
|
then
|
||||||
|
cp "$ADDON_DIR/config/passwd" "$ADDON_HOME/passwd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
x0vncserver -PasswordFile="$ADDON_HOME/passwd" -rfbport="$vnc_port"
|
@ -4,7 +4,7 @@ After=graphical.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=DISPLAY=:0.0
|
Environment=DISPLAY=:0.0
|
||||||
ExecStart=/storage/.kodi/addons/service.tigervnc/bin/x0vncserver -PasswordFile=/storage/.kodi/addons/service.tigervnc/config/passwd
|
ExecStart=/bin/sh /storage/.kodi/addons/service.tigervnc/bin/tigervnc.start
|
||||||
TimeoutStopSec=1
|
TimeoutStopSec=1
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user