spotsnel / AltRPMS-KasmVNC

AltRPMS; Modern VNC Server and client, web based and secure that does not conflict with installed base packages on Fedora/RHEL
GNU General Public License v2.0
0 stars 0 forks source link

Issue with `Xvnc` being specific to kasmvncserver #2

Closed gbraad closed 3 hours ago

gbraad commented 4 hours ago

For now it depends on the Xvnc binary that, so this has to be symlinked or fixed:

$ sudo mv /usr/bin/Xvnc /usr/bin/orgXvnc
$ sudo ln -s /usr/bin/kasmXvnc /usr/bin/Xvnc

In the file vncserver the Xvnc is 'hardcoded':

From L479

  if($exedir eq "") {
    cmd2:
    foreach $cmd ("Xvnc","vncpasswd") {
      for (split(/:/,$ENV{PATH})) {
        if (-x "$_/$cmd") {
          next cmd2;
        }
      }
      die "$prog: couldn't find \"$cmd\" on your PATH.\n";
    }
  }
  else {
    cmd3:
    foreach $cmd ($exedir."Xvnc",$exedir."vncpasswd") {
      for (split(/:/,$ENV{PATH})) {
        if (-x "$cmd") {
          next cmd3;
        }
      }
      die "$prog: couldn't find \"$cmd\".\n";
    }
  }

Suggest to replace "Xvnc" and "vncpasswd" with the kasm-specfic as "kasmXvnc" and "kasmvncpasswd".

gbraad commented 3 hours ago
sed -i 's/Xvnc/kasmXvnc/g' $SRC/bin/vncserver
sed -i 's/vncpasswd/kasmvncpasswd/g' $SRC/bin/vncserver