tigervnc: add icon, port setting

This commit is contained in:
awiouy 2016-10-08 12:23:44 +02:00
parent 71b29a5ba8
commit d037b97efc
4 changed files with 31 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -15,8 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="tigervnc"
PKG_VERSION="1.7.0"
PKG_REV="100"
PKG_ARCH="x86_64"
PKG_LICENSE="GPLv2"
PKG_SITE="http://www.tigervnc.org"
@ -27,7 +29,6 @@ PKG_SECTION="service"
PKG_IS_ADDON="yes"
PKG_ADDON_NAME="TigerVNC"
PKG_ADDON_TYPE="xbmc.service"
PKG_REV="100"
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"

View 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"

View File

@ -4,7 +4,7 @@ After=graphical.target
[Service]
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
Restart=always
RestartSec=2