Subject: Bug#1505: Fix sftp-server path for opensuse tumbleweed

From: balasr <[email-masked]>
Date: Sun, 15 Nov 2020 16:24:59 +0100

Package: x2goclient
Version: 4.1.2.2
Tag: patch

Recently Opensuse Tumbleweed moved the location of where they put the sftp-server binary. See this bug report on the opensuse bugtracker: https://bugzilla.opensuse.org/show_bug.cgi?id=1175964

This patch adds this path to the search path

diff -rub x2goclient-4.1.2.2/src/onmainwindow.cpp x2goclient-4.1.2.2-patched/src/onmainwindow.cpp
--- x2goclient-4.1.2.2/src/onmainwindow.cpp	2020-02-13 11:36:07.000000000 +0100
+++ x2goclient-4.1.2.2-patched/src/onmainwindow.cpp	2020-11-15 15:34:45.454199647 +0100
@@ -10870,6 +10870,7 @@
     QString sftp_binary;
     QStringList common_sftp_dirs;
     common_sftp_dirs << "/usr/lib/openssh" /* Debian and Ubuntu */
+                     << "/usr/libexec/ssh" /* Opensuse Tumbleweed */
                      << "/usr/libexec/openssh" /* Fedora, CentOS, hopefully also RHEL */
                      << "/usr/lib/ssh" /* Mageia, OpenSUSE, SLE{S,D} < 12 x86, SLE{S,D} 12, Arch */
                      << "/usr/lib64/ssh" /* SLE{S,D} < 12 x86_64 */