First, a word of caution.
If do:
Code:
export XDG_CURRENT_DESKTOP=KDE
all applications that have in their .desktop KDE among the NotShowIn list won't be easily accessible from other WM/DE. This includes nm-applet and nm-connection-editor.
In Slint, we set XDG_CURRENT_DESKTOP to LXDE by default, to avoid some duplicate and missing entries in the xdg menus of the WMs. This overcomes some faulty implementation (in my opinion) of the XDG specifications by some tools.
This is done in this file, installed in /usr/libexec/slint:
http://slackware.uk/slint/x86_64/sli...nel/lxpanel.sh
This wrapper script also starts fbautostart that allows to start an application at startup of any WM/DE that implement the autostart specification (all WM/DE shipped in Slackware do).
You could use that to autostart xflux, or more exactly the xflux-gui applet:
https://github.com/xflux-gui/xflux-gui if this is what you want.
But bear in mind that not all WM shiped in Slackware have a tray.
For those that do not have one like blackbox and twm you could use stalonetray.
To allow the user to change the value of XDG_CURRENT_DESKTOP we ship the script
http://slackware.uk/slint/x86_64/sli...mmy-desktop.sh that go in /etc/profile.d
If you do something like that you will also need to find a place to start the wrapper scripts.
In Slint we do that in /usr/bin/{startfluxbox,startfwm2,starttwm,startwmaker}.
We also create /usr/bin/starttwm, not shipped in Slackware.
Maybe this an overkill for what you need to do