Page 2 of 2

Re: Crazy - Stretch with Plasma 5.12

Posted: Sat May 05, 2018 1:53 pm
by Stevo
How about adding LX-QT to that script? It and KDE are the only two desktops that I can think of offhand that are Qt-based. We should also send the fix up to dolphin_oracle for so all MX 17 can benefit.

Does NeptuneOS use a newer Qt 5? If so, that would break programs that use the private Qt 5 libs, since they are tied to a specific version of Qt 5 and would have to be rebuilt. The only one of those I can think of offhand is Calibre--most Qt 5 programs don't use the private libs.

Re: Crazy - Stretch with Plasma 5.12

Posted: Sat May 05, 2018 2:09 pm
by baldyeti
wrt the script: Hi Stevo, sure, but i know nothing about those X11 session scripts, nor the lifecycle of these XDG variables. I *think* I noticed that the one i test is actually not set when choosing the "default" session, which is why i ended up testing for KDE rather than XFCE (which corresponds both to the default choice and an explicit one). I suppose this would be worth reviewing to make it more robust, but it is an improvement over the current unconditional setting of the QT_xyz vars.

wrt qt5: how can i check whether neptune overrode my QT libs ? I also do not know what you mean by "private" lib. Anyway I wouldn't jump the gun and start recompiling stuff to be compatible with the newer KDE. Keeping MX as compatible as possible with debian stable seems more important to me (and KDE 5.8 isn't bad or that old, either)

Re: Crazy - Stretch with Plasma 5.12

Posted: Sat May 05, 2018 3:20 pm
by Stevo
baldyeti wrote:wrt the script: Hi Stevo, sure, but i know nothing about those X11 session scripts, nor the lifecycle of these XDG variables. I *think* I noticed that the one i test is actually not set when choosing the "default" session, which is why i ended up testing for KDE rather than XFCE (which corresponds both to the default choice and an explicit one). I suppose this would be worth reviewing to make it more robust, but it is an improvement over the current unconditional setting of the QT_xyz vars.

wrt qt5: how can i check whether neptune overrode my QT libs ? I also do not know what you mean by "private" lib. Anyway I wouldn't jump the gun and start recompiling stuff to be compatible with the newer KDE. Keeping MX as compatible as possible with debian stable seems more important to me (and KDE 5.8 isn't bad or that old, either)
You can just check in the terminal with

Code: Select all

apt policy qt5-default
In standard MX 17, it's 5.7.1+dfsg-3+b1.

Calibre depends on calibre-bin, and the Qt specific private library calibre-bin needs is qtbase-abi-5-7-1. This won't be available with other versions of Qt 5, so Calibre would need to be rebuilt. That package actually isn't in apt, but it is generated during the package build and I assume points to the private library.

Re: Crazy - Stretch with Plasma 5.12

Posted: Sat May 05, 2018 10:01 pm
by sunrat
@baldyeti - you can extract recommends from

Code: Select all

apt depends plasma-desktop
Stevo wrote:Does NeptuneOS use a newer Qt 5?
Surprise!

Code: Select all

$ apt policy qt5-default
qt5-default:
  Installed: (none)
  Candidate: 5.7.1+dfsg-3+b1
  Version table:
     5.7.1+dfsg-3+b1 500
        500 http://ftp.au.debian.org/debian stretch/main amd64 Packages
I did apt depends for calibre-bin and it included this:

Code: Select all

Depends: <qtbase-abi-5-7-1>
    libqt5core5a
so:

Code: Select all

$ apt policy libqt5core5a
libqt5core5a:
  Installed: 5.7.1+dfsg-3+b1
  Candidate: 5.7.1+dfsg-3+b1
  Version table:
 *** 5.7.1+dfsg-3+b1 500
        500 http://ftp.au.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status
I installed Calibre to test and it runs fine and opens the Quick Start guide properly.

Looks like Neptune dosn't use a newer Qt5.

Colours are looking good now too. Using ArcDark with Breeze Dark icons and a bit of tweaking in System Settings > Application Style > GNOME Application Style (GTK) and qt5ct.

Re: Crazy - Stretch with Plasma 5.12

Posted: Sun May 06, 2018 3:03 am
by baldyeti
Thanks folks.

I do not want to actually download and install neptune, but i perused their site a bit. They simply mention being based on debian stretch (like all debian-based distros, to which extent it is customised and prone to break compatibility is anyone's guess). Here is a list of included packages.

There is also this reddit discussion (not really conclusive, though, and based on a release candidate)

Find in attachment the output of "dpkg -l" on my system. It looks to me like all libqt5* packages are at 5.7.1-1, and all *neptune* packages seem kde/plasma-related, but what do i know...

I propose the following script instead of the previous version:

Code: Select all

case "$XDG_CURRENT_DESKTOP" in 
        KDE|LXQt)       ;;      # no-op
        *)
                export QT_QPA_PLATFORMTHEME=gtk2
                export QT_PLATFORMTHEME=gtk2
                export QT_PLATFORM_PLUGIN=gtk2
                ;;
esac
note i am unsure about the LXQT literal (could be some variant like LX_QT or LXQt)

Re: Crazy - Stretch with Plasma 5.12

Posted: Sun May 06, 2018 8:33 am
by mithrandir
a respin of mx linux with kde would be the top :P

Re: Crazy - Stretch with Plasma 5.12

Posted: Sat May 12, 2018 4:14 am
by baldyeti
I have done a quick check with an older porteus LXQT live ISO i had and it seems XDG_CURRENT_DESKTOP takes the LXQt (mixed-case) value in that environment...