From owner-freebsd-x11@freebsd.org Sat Jan 26 18:37:42 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6C7014A9CD5 for ; Sat, 26 Jan 2019 18:37:42 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 89FDD8F01D for ; Sat, 26 Jan 2019 18:37:41 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x0QIbY54038961 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 26 Jan 2019 18:37:34 GMT (envelope-from list1@gjunka.com) Subject: Re: Lumina and env variables To: freebsd-x11@freebsd.org References: <4c339ec6-b03b-dfe4-f694-af403dc5d89a@gjunka.com> <54013c32-3b8e-4911-bc53-faca7d255c7a@ixsystems.com> From: Grzegorz Junka Message-ID: <138c2530-22bd-85ec-da4d-0d033fba926c@gjunka.com> Date: Sat, 26 Jan 2019 18:37:34 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <54013c32-3b8e-4911-bc53-faca7d255c7a@ixsystems.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB-large X-Rspamd-Queue-Id: 89FDD8F01D X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.90 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gjunka.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[gjunka.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.953,0]; IP_SCORE(-3.64)[ip: (-9.53), ipnet: 88.98.192.0/18(-4.77), asn: 56478(-3.81), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2019 18:37:43 -0000 On 21/01/2019 15:41, Ken Moore wrote: > On Saturday, January 19, 2019 9:33:41 AM EST, Grzegorz Junka wrote: >> Hello, >> Does anyone know how to set an environment variable so that it's >> visible when running Lumina applications? Currently I have >> QT_QPA_PLATFORMTHEME set in .profile and .cshrc but these are not >> visible when I run qt5ct from the Lumina launch menu. They only take >> effect when I run qt5ct from the command line (Konsole). >> >> This is quite strange because I start Lumina with startx and my >> .xinitrc looks like this >> >> exec /usr/local/bin/start-lumina-desktop >> >> I would have hoped that these environment variables should be >> inherited by the Lumina process and subsequently by all applications >> launched from the menu. Unless something overwrites them later? >> >> Thanks >> GrzegorzJ >> > > The QT_QPA_PLATFORMTHEME environment variable is special to Lumina and > will automatically get overwritten when the desktop starts up. > > Lumina will automatically change that variable to "lthemeengine" > (Lumina theme engine), which is a custom fork of the qt5ct theme > engine with additional support/features specifically for > desktop/application theming (such as more color palette support, > ability to scan system-installed palette and theme files for > availability, things of that nature). > > TLDR: Don't use qt5ct with Lumina. Just make your changes in the > Lumina theme engine utility instead (nearly identical to qt5ct and > behaves the same way). > Thank you Ken, that's a great tip. Does it mean that all Lumina apps are qt5-based? I am a bit lost with all those customization applications. I have QT 4 Configuration, which is using Desktop Settings, and I have Customise Look and Feel, which seems to be changing GTK settings. Then I have Desktop Configuration, which seems to be running a yet different version of the Lumina Theme Engine, i.e. Theme Engine run from the menu currently shows a window with a dark theme and proper icons on buttons, but when running from Desktop Configuration shows a light theme with no icons on buttons, even though all settings seems to be the same. The same lack of icons on buttons is visible in other QT-based applications, i.e. Kate but not KWrite. Also the Desktop Configuration seems to have a different set of icons then selected in the Theme Engine (material design instead of Oxygen). It's really weird. Imagine Lumina Theme Engine run from the menu (LTH1) and from Desktop Configuration (LTH2). Changing Style and Color scheme in LHT1 is visible in its preview window, and when applied also changes LTH1 window (and KWrite). But LHT2 (and Kate) remain unaffected. Changing Style and Color scheme in LHT2 is visible in its preview window, but when applied again changes only LHT1 window (and KWrite) - LHT2 window (and Kate) remain with the same (probably generic) theme and no icons on buttons. I have been using Lumina from an early version and possibly some configuration files have been screwed up throughout the iterations. I also tried to overwrite QT_QPA_PLATFORM_THEME in various places, including .config/lumina-desktop/envsettings.conf, and deleting some configuration files in .config and .kde/4 folders. Would you know which configuration folders should I delete to restore default settings? I understand I should not try to set QT_QPA_PLATFORM_THEME/QP_QPA_PLATFORM_THEME anywhere? GrzegorzJ