From owner-freebsd-x11@freebsd.org Tue Jan 29 18:25:01 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 989D314C6C3A for ; Tue, 29 Jan 2019 18:25:01 +0000 (UTC) (envelope-from ken@ixsystems.com) Received: from mail-yw1-xc31.google.com (mail-yw1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3AD193964 for ; Tue, 29 Jan 2019 18:25:00 +0000 (UTC) (envelope-from ken@ixsystems.com) Received: by mail-yw1-xc31.google.com with SMTP id h193so8576934ywc.4 for ; Tue, 29 Jan 2019 10:25:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixsystems-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:mime-version:message-id:in-reply-to :references:organization:user-agent:content-transfer-encoding; bh=A2n3yvNHc5SeR902hZ9sP3fW6GekFxHsEqXJWnSeo08=; b=oTEX9k7CLvF7bFov/aVlYj9G9hVsuvyINrcnrqo5LA1vBWJERQa+FSo+N//InLcPb4 6JTkRVQXR8/F0SUvbKVBmull837z6wyKCwB08naWiP0ZEb3rZGGa1nKn3gCYajCNr81j 5tA3v/TpxAH3yDRRDBGtwGvpEXg+cggph4gcovBv4Zkigci4rhIWWH3fMmbx5TL/uFWb sVsPumpiRv2R+Rh87Jtmk0y2G2gn8DRmPOYWwZYln5OQwjYqjXlkBO2AHhKTQvMZXjiU gSo5zDQlpNQcgNThjTf7y9THII7P9B/le7xRrK6zekGh9DTt+GGfT4ipkORZ7F5XP1jn JPhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:mime-version:message-id :in-reply-to:references:organization:user-agent :content-transfer-encoding; bh=A2n3yvNHc5SeR902hZ9sP3fW6GekFxHsEqXJWnSeo08=; b=i8jQvGdl+1/Ie0Y53qhvHX8RywB9QOzHTWoYJXjM9xzpIXxVjhHVsaSLZ6NC2TW+ab vjyiOUmghNAW0iW2111hzWec/hVhBp9LnYNmw7D81EhW9tEUclkIzjHviq4geb3SGyI3 52Ld3zXa9gZpt/tTZzVMjnlpajDFwSSlUAMoKC4aISXQxTdKjhyG7TmAfAN3Q6Mryygg 0MZPokQv2SGgS5/vF6tkTIxo+ahqJJSQORy+WM1ECpAuHlq1K36OD+1/QSRQnyXG6OZ3 dHDH3WStbEGrVb3LtXdgc6wwIQFCseU3QoosIzZKd6bLfKpgKgIH7WGuHmCtMr0m9yz6 6IcA== X-Gm-Message-State: AJcUukcQv8eskJhDGz68wD4JM13STfTOYfW8XF4HLFQAh0CN/6pXdn9i JWHjTTyrHMS75bwz3NdiiUHvRNXn3cuMVw== X-Google-Smtp-Source: ALg8bN6rlphLMX4K/06e7xcgaPXMvSDq55s1j8fBFeE2FXOOgcR57TXWG9dN/9ViXLcYTfPNzuQtUw== X-Received: by 2002:a81:b653:: with SMTP id h19mr25902431ywk.170.1548786299962; Tue, 29 Jan 2019 10:24:59 -0800 (PST) Received: from localhost (c-73-121-104-129.hsd1.tn.comcast.net. [73.121.104.129]) by smtp.gmail.com with ESMTPSA id u4sm27018559ywu.92.2019.01.29.10.24.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Jan 2019 10:24:59 -0800 (PST) From: Ken Moore To: Grzegorz Junka Cc: Subject: Re: Lumina and env variables Date: Tue, 29 Jan 2019 13:24:57 -0500 MIME-Version: 1.0 Message-ID: <1d8ba96e-f404-4fc3-b2ec-8ce2716d21dd@ixsystems.com> In-Reply-To: <626cbca8-c249-ad26-f53b-b88e489261ce@gjunka.com> References: <4c339ec6-b03b-dfe4-f694-af403dc5d89a@gjunka.com> <54013c32-3b8e-4911-bc53-faca7d255c7a@ixsystems.com> <138c2530-22bd-85ec-da4d-0d033fba926c@gjunka.com> <99cd58ec-ba66-4076-883f-9f8a0d1101d7@ixsystems.com> <626cbca8-c249-ad26-f53b-b88e489261ce@gjunka.com> Organization: TrueOS/iXsystems User-Agent: Trojita/0.7; Qt/5.12.0; xcb; AnyBSD4.4FreeBSD; Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: B3AD193964 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ixsystems-com.20150623.gappssmtp.com header.s=20150623 header.b=oTEX9k7C; dmarc=pass (policy=none) header.from=ixsystems.com; spf=pass (mx1.freebsd.org: domain of ken@ixsystems.com designates 2607:f8b0:4864:20::c31 as permitted sender) smtp.mailfrom=ken@ixsystems.com X-Spamd-Result: default: False [-6.79 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[ixsystems-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ixsystems-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT3.ASPMX.L.GOOGLE.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.3.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[ixsystems.com,none]; IP_SCORE(-2.80)[ip: (-9.48), ipnet: 2607:f8b0::/32(-2.52), asn: 15169(-1.95), country: US(-0.08)]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[] 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: Tue, 29 Jan 2019 18:25:01 -0000 On Monday, January 28, 2019 6:33:37 PM EST, Grzegorz Junka wrote: >> Now for the lumina side of things. >> 1. Lumina is completely Qt5-based, so the Lumina theme engine=20 >> is *only* used for theming Qt5-base applications. This means=20 >> that KDE4 applications will not use it (Qt4), Firefox/Chromium=20 >> will not use it (GTK2/3), but the Falkon browser *will* use it=20 >> (Qt5), and many of the KDE/Plasma5 applications will also use=20 >> it (Qt5). >>=20 >> 2. Instead of going for the one-size-fits-all approach to=20 >> themes that most engines use, the Lumina theme engine is a=20 >> fork/update of qt5ct which is designed around the concept of a=20 >> single theme engine being itself configurable. For example, I=20 >> mentioned the QtCurve engine previously and it follows the=20 >> "engine=3Dlook" model where if you don't like it you have to find=20 >> another engine. qt5ct and lthemeengine take the approach that=20 >> we stick to a single toolkit, but expose all of the=20 >> configuration options via the engine itself - so a single=20 >> engine can have an infinite number of appearance outputs. The=20 >> only thing the engine needs to stay in-sync with is the toolkit=20 >> it is allowing access to modify. > > Hi Ken, > > Many thanks for this comprehensive introduction to theme=20 > engines. How does this approach "Lumina theme engine is a=20 > fork/update of qt5ct which is designed around the concept of a=20 > single theme engine being itself configurable" translates to=20 > configuration files? When I change a theme in Lumina Theme=20 > Engine does it update only files in .config/lumina-desktop or=20 > also in some other folders related to other theme engines? > > And crucially for my problem, why Lumina Theme Engine behaves=20 > differently when it's run from the menu and from the Desktop=20 > Configuration tool? I guess it's something to do with=20 > environment variables being set differently in those two cases? > > Thanks > GrzegorzJ > So the Lumina theme engine has it's own configuration directory at=20 ${XDG_CONFIG_HOME}/lthemeengine (typically ~/.config/lthemeengine). That is the same style/format as the qt5ct config directory, and has a=20 single *.conf file and directories for user-defined colors and qss files. Also: lthemeengine can be used *without* the lumina desktop by setting the=20= QT_QPA_PLATFORMTHEME=3Dlthemeengine environment variable, but you cannot use=20= the lumina desktop without the lthemeengine (it expects particular=20 functionality from the theme engine for it's own styling). With regards to the different appearance when it is launched, I only have a=20= couple options: 1. If the QT_QPA_PLATFORMTHEME environment variable is getting stripped out=20= or changed, then that will change the appearance. 2. If the user running the app changes (such as switching from user ->=20 root), that will cause the theme engine to load a different config file=20 with different user settings. (/root/.config/lthemeengine vs=20 /home/myuser/.config/lthemeengine). 3. If something is changing the XDG_CONFIG_HOME environment variable (which=20= is commonly used for providing different "profiles" of settings by some=20 users), then lthemeengine will be looking in a different directory for it's=20= configuration file (${XDG_CONFIG_HOME}/lthemeengine). Nothing within the lumina apps (or lumina-config) will make those changes=20 automatically, and I am unable to reproduce the issue here, so you might=20 want to check any settings you have which are modifying the environment and=20= just disable/remove those. --=20 ~~ Ken Moore ~~ TrueOS/iXsystems