Configuration for Auto-hiding Panel in Meilix with LXQt desktop

In the new LXQt desktop, we can intelligently hide the panel. For that purpose, we’ll just need to patch a new file in a location under the meilix-default-settings metapackage. Originally the file lies in the lxqt folder of the .config of the OS with the name panel.conf like .config/lxqt/panel.conf but since we have to make changes in the metapackage, we need to patch it here meilix-default-settings/etc/skel/.config/lxqt/panel.conf. Files in etc/skel/ will be put in each users’ new home folder, a folder which does not exist yet when we build the ISO. panel.conf 1. [panel1] 2. alignment=-1 3. animation-duration=0 4. background-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0) 5. background-image= 6. desktop=0 7. font-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0) 8. hidable=true 9. iconSize=22 10. lineCount=1 11. lockPanel=false 12. opacity=100 13.panelSize=32 14. plugins=mainmenu, desktopswitch, quicklaunch, taskbar, tray, statusnotifier, mount, volume, clock, showdesktop 15. position=Bottom 16. show-delay=0 17. width=100 18. width-percent=true In the line number 8 , hidable=true is doing all the jobs. It is the only line which hides the panel by default. How we find this approach? Originally LXQt panel is not hidden, they are shown by default. I first try to locate panel.conf file which will carry out the configuration for the panel. I try to find the code responsible for hiding the panel, but I can’t find that. Then I copied the panel.conf in a file and then by GUI I hide the panel and reopen the config file. Then I compare the changes between this file and the old config.panel file in which I found that the new file has a new line hidable=true. We introduced the changes in this PR. How this approach actually work? We are using meilix-default-settings metapackage to make the things work. We made an .config file which contains the configuration file. And the .config file is present under skel folder which gets copied under the home folder of the user. Thus ultimately we get a configuration file which will overwrite the original one to get the desired changes. Other Uses of panel.conf The file panel.conf could be used to customize all related settings to the LXQT panel, like its alignment, volume bar, quick launch, show desktop, etc. References: LXQt panel hiding Customize LXQt desktop

Continue ReadingConfiguration for Auto-hiding Panel in Meilix with LXQt desktop

Migration of LXDE Desktop of Meilix to LXQt

Meilix is originally based on LXDE and our task is to migrate Meilix desktop to LXQt. Originally LXQt is a fusion of LXDE and the Razor-Qt desktop. What is LXDE and LXQt ? Both are desktop environment. They are light weight with a beautiful GUI and a user-friendly touch. Older code to install a LXDE desktop in a Debian-based environment is (source): apt-get -q -y --purge install --no-install-recommends \ lxsession lightdm lightdm-gtk-greeter lxterminal gvfs-backends seahorse \ network-manager-gnome xorg dbus-x11 openbox ubiquity-frontend-gtk vlc \ xfce4-mixer gstreamer0.10-alsa pulseaudio pavucontrol lxpanel \ mozilla-plugin-vlc lubuntu-core jockey-gtk In the chroot environment, the maintainer has pick up the it’s dependencies and recommend packages and listed all packages which required to install a LXDE desktop. He keeps the size as small as possible. The maintainer had hand-picked only the required packages which can run the desktop. What we did: We tried with several approaches. Few worked and few did not. We removed all the packages related to desktop like gnome-games, gdm and gnome-language-en since we don’t want any sort of problem conflicts in the new desktop. We had also remove all the lines mentioned above which install LXDE. Then I simply typed the line: apt-get -q -y install lxqt This way we only reach to the CLI version of the OS, and we actually don’t know whether we actually have the desktop install or not. We tried to install lighdm their by sudo apt-get install xinit but that was also giving errors. We changes the line to: apt-get -q -y install xorg sddm lxqt And suddenly the same approach which brought to a black screen and that was a desktop and the window manager was openbox. Then we tried to add sddm.conf to get the desktop and realized that sddm starts plasma instead of LXQt. Then we added a config file for sddm to start up LXQt by default. This file is present in the location `/etc/sddm.conf` in the meilix-default-settings metapackage with the code as: [Autologin] User=hotelos Session=lxqt.desktop But due to a bug reported here, it still starts plasma instead of LXQt. So now I have to patch a script in the location /usr/share/initramfs-tools/scripts/casper-bottom/15autologin In last paragraph of the script it will first detect the presence of sddm, if that exists, it will assume that plasma will be default desktop and try to detect Lubuntu.desktop and QLubuntu.desktop . So, change plasma.desktop to lxqt.desktop. In the 15autologin changes line 84: if [ -f /root/usr/bin/sddm ]; then sddm_session=lxqt.desktop if [ -f /root/usr/share/xsessions/Lubuntu.desktop ]; then sddm_session=Lubuntu.desktop fi if [ -f /root/usr/share/xsessions/QLubuntu.desktop ]; then sddm_session=QLubuntu.desktop fi fi Here, sddm is made to configure it must use lxqt desktop. And this worked. Finally we get the LXQt desktop for Meilix. Since this script along with other scripts will be packed into a small filesystem called initramfs, therefore we have to write `update-initramfs -u ` after the installation of the meilix-default-settings package. I had made a table of the things that worked and that didn't. Things which do not work Things which work…

Continue ReadingMigration of LXDE Desktop of Meilix to LXQt