From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: QT install and search paths Date: Fri, 25 Aug 2017 09:32:32 +0200 Message-ID: <5af4a60b-b096-84cb-c72f-256051c2e6fe@crazy-compilers.com> References: <42cac0e9-d948-3ea1-7312-d003751fd6a8@crazy-compilers.com> <20170824.133749.1478354122253631402.post@thomasdanckaert.be> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dl96e-0003Ty-2A for guix-devel@gnu.org; Fri, 25 Aug 2017 03:32:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dl96Z-00024I-Tn for guix-devel@gnu.org; Fri, 25 Aug 2017 03:32:40 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33728) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dl96Z-00023f-Nz for guix-devel@gnu.org; Fri, 25 Aug 2017 03:32:35 -0400 In-Reply-To: <20170824.133749.1478354122253631402.post@thomasdanckaert.be> Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Thomas Danckaert Cc: guix-devel@gnu.org, iyzsong@gmail.com Am 24.08.2017 um 13:37 schrieb Thomas Danckaert: > Either way, I think qtbase's QT_PLUGIN_PATH setting only has an effect > if a user installs qtbase directly in their profile [=E2=80=A6] so > applications using these plugins will still need to set the correct > environment variable themselves somehow? Do my understanding, "search-paths" will make the the listed paths of all installed packages to be added to the named variable. Thus in this case the package would "just" need to ensure all it's dependencies are installed. The rest is done automatically. Which leads to another, different problem: For this to work AFAIU the package needs to propagate all the plugins, etc. it is using. Which is not nice, and which I assume is the resume from > https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00776.html > > For the kdevelop package, I wrapped the executable, setting a bunch of > Qt-related environment variables. This works as a stop-gap, but it > will break down when a user uses multiple Qt/KDE applications with > different plugin requirements (some KDE daemons, such as kdeinit, need > to find all their plugins at the moment they are started). Nice idea! But unfortunately this is not a solution in the long term =E2=80= =93 since it would require this to be done for each and every KDE and even QT application. > Ludo suggested using a profile hook to set the required environment > variables depending on the installed applications, but I never looked > into it further because wrapping the executable was =E2=80=9Cgood enoug= h=E2=80=9D > for. For a KDE desktop, I think you'll need a better solution.=20 I'd appreciate if you could have a look at this. I have some other todos on my lit with higher priority, but this problems are a show-stopper for my efforts on the plasma-desktop (which are much more time-consuming than I thought). --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |