LXQt 0.11 for Porteus 3.2 x64

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

LXQt 0.11 for Porteus 3.2 x64

Post#1 by fulalas » 26 Nov 2016, 16:12

Here's a build from scratch of LXQt 0.11 for Porteus 3.2 x64. It includes:

.SMPlayer 17.2.0 (video player front-end)
.Mpv 0.21.0 (video engine-player)
.Qmmp 1.1.8 (audio player)
.Engrampa 1.18.1 (zip compressor/decompressor)
.Leafpad 0.8.18.1 (simple text editor)
.QTransmission 2.92 (torrent client -- custom build that allows users to add multiple trackers at once)
.Lxtask 0.1.7 (task manager)
.ePDFViewer 0.1.8 (simple pdf viewer)
.Libgphoto2 2.5.11 (to get files inside smartphones/cameras)

I've managed to squeeze everything to the point that the module has just 33mb, including Qt 5.7 basics. And it consumes less than 200mb RAM booting on 'Always Fresh' mode. So this module comes to prove that Qt isn't so heavy as people usually think.

Some screeshots:
http://smg.photobucket.com/user/Delerue ... c.jpg.html
http://smg.photobucket.com/user/Delerue ... b.jpg.html
http://smg.photobucket.com/user/Delerue ... x.jpg.html

LXQt global hotkeys:
Open file explorer -> win + e
Open terminal -> win + t
Maximize/restore -> win + up
Minimize -> win + down
Show desktop -> win + d
Open runner -> win + r (soon)
Open task manager -> ctrl + alt + del
Open calculator -> ctrl + alt + c
Open Leafpad -> ctrl + alt + n

Qmmp global hotkeys:
Play -> ctrl + alt + insert
Stop -> ctrl + alt + end
Pause/play -> ctrl + alt + home
Next song -> ctrl + alt + pagedown
Previous song -> ctrl + alt + pageup
Increase volume -> ctrl + alt + up
Decrease volume -> ctrl + alt + down
Forward 5s -> ctrl + alt + right
Rewind 5s -> ctrl + alt + left

Any help/suggestion is welcomed. :good:

Known issues:
-Can't drag 'n drop files from Engrampa to any folder except Desktop -- already reported;
-When plugging a camera/smartphone there's an error message ('Could not claim the USB device'), although you can still access the files -- already reported;
-PARTIALLY FIXED Some file/protocols associations don't work, like for example .m3u and magnet links -- already reported;
-FIXED Lacks some icons running apps as root (it seems that using lxqt-sudo fixes it);
-FIXED Inputs don't respond when using Xorg version since 1.19.0;
-FIXED Porteus Modules doesn't open;
-FIXED Gtk programs throw a warning because of a missing lib;
-FIXED by ncmprhnsbl Some folders have wrong permissions;
-FIXED Can't ALT+SHIFT+TAB (to cycle backwards) through running apps (you should avoid 'kmap=' cheatcode);
-FIXED Wifi not working;
-FIXED 7zFM doesn't work (dependencies missing);
-FIXED Engrama opens but doesn't work;
-FIXED by ncmprhnsbl Panel doesn't refresh after activating a new module
-FIXED Doesn't come with NetworkManager, although network/internet works out of the box;
-FIXED Lacks some Porteus default file associations/context menu (create/extract xzm, etc);
-FIXED Start menu isn't attached to task bar (reseting inside settings fixes it, but I don't know how to save/persist);
-FIXED Task bar doesn't show running apps (really odd);
-FIXED Show desktop icon on task bar doesn't work, but you can still use key shortcut WIN + D;

http://www.mediafire.com/file/de38wwlhw ... 3-lxqt.xzm
Last edited by fulalas on 27 Apr 2017, 05:28, edited 33 times in total.

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Portes 3.2 x64

Post#2 by fulalas » 28 Nov 2016, 17:45

brokenman, can you help me finishing this GUI module? I think we're almost there :)

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 879
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: LXQt 0.11 for Portes 3.2 x64

Post#3 by ncmprhnsbl » 28 Nov 2016, 21:30

nice work :)
-Lacks some Porteus default file associations/context menu (create/extract xzm, etc);
i use these: https://github.com/ncmprhnsbl/openbox-p ... plications
they work with lxqt too (after you run update-desktop-database)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Porteus 3.2 x64

Post#4 by fulalas » 28 Nov 2016, 22:11

Great! It worked, thanks. :good:

I'll wait a little bit to enhance some other things and then I'll upload a new version.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5503
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: LXQt 0.11 for Porteus 3.2 x64

Post#5 by brokenman » 29 Nov 2016, 01:52

I started creating lxqt a while back but the lack of a networking icon was a deal breaker and I abandoned it. Let me know if I can help in any way.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 879
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: LXQt 0.11 for Porteus 3.2 x64

Post#6 by ncmprhnsbl » 29 Nov 2016, 03:12

you might want to edit those .desktop files to use qt-sudo

nm-applet:
you seem to have removed network-manager-applet package(the binary is in bin)

Code: Select all

nm-applet: error while loading shared libraries: libnma.so.0: cannot open shared object file: No such file or directory
also it really has a problem without adwaita icons & theme present (gnome thing :evil: )
added these and /usr/share/libnma and libmn-gtk manually to get it to work
also /etc/xdg/autostart/nm-applet.desktop is missing (maybe gnome-keyring stuff too...policy-kit?)

pcmanfm segfaults when opening >applications>internet (after activating firefox)
menu isnt updating after activating a module

need ~/.config/gtk-3.0/settings.ini and ~/.gtkrc-2.0 (and maybe lxappearance to set gtk themes)

compton missing
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Porteus 3.2 x64

Post#7 by fulalas » 29 Nov 2016, 03:53

brokenman wrote:I started creating lxqt a while back but the lack of a networking icon was a deal breaker and I abandoned it. Let me know if I can help in any way.
Challenge accepted! NetworkManager 1.4.2 is working :D Now we basically have to fix some missing icons and Engrampa/7zFM not working properly. BTW, doing this module I've noticed that although p7zip doesn't come with 003, it depends on libs included only on 003. I think this is not the best approach. What you think?

ncmprhnsbl, thank you very much for your suggestions. Regarding NetworkManager I haven't try too much to put it working, but now it's working. :good: Turns out that I had to mix some packages (basically because of missing ui files and icons) in order to get the last version working.

1- Regarding using qt-sudo, I did this with USM, but the problem is that all Porteus apps (center, system info, module creation, etc) are executed through scripts that aren't located inside 003 :(
2- I'll try your icon fix suggestion.
3- I've noticed that menu isn't updating after activating a module. What you suggest?
4- I can't reproduce your pcmanfm-qt segmentation fault. I'm using Firefox 49.0b10. :(
5- Compton doesn't come out of the box, as long as I know. And between us: it's heavy an unnecessary, although I still didn't manage to get rid of tearing outside fullscreen :wall:

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 879
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: LXQt 0.11 for Porteus 3.2 x64

Post#8 by ncmprhnsbl » 29 Nov 2016, 04:02

permissions on /etc/xdg & /etc/X11 are drwxrwxrwx > should be drwxr-x-x .... hmm, yeah, others too
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Porteus 3.2 x64

Post#9 by fulalas » 29 Nov 2016, 04:20

Yeah, Adwaita fixed all missing icons, but... My god, I'm having Win95 feelings with this visual :crazy:
I really can't understand why Linux apps work this way. In my opinion an icon package is overkill/non-sense. Each app should come with their own icons.

EDITED: I've tried to merge both icon packages (Paper and Adwaita), but it's not that simple. I really don't like Adwaita icons, but Paper doesn't come with all necessary icons. Oh, god...
ncmprhnsbl wrote:permissions on /etc/xdg & /etc/X11 are drwxrwxrwx > should be drwxr-x-x .... hmm, yeah, others too
Can you fix that for me?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 879
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: LXQt 0.11 for Porteus 3.2 x64

Post#10 by ncmprhnsbl » 29 Nov 2016, 05:06

fulalas wrote: all Porteus apps (center, system info, module creation, etc) are executed through scripts that aren't located inside 003
have a look at /opt/porteus -scripts/xorg/psu ..its a link to gksu at the moment... tho using gksu is o really since gtk is there anyway
fulalas wrote: it's heavy an unnecessary
certainly not in size.. performance wise maybe..
fulalas wrote:I'll try your icon fix suggestion
scrub that adwaita icons arent needed ...was mistaken(edit> or not?).. adwaita gtk theme tho
fulalas wrote: I've noticed that menu isn't updating after activating a module. What you suggest?
in /opt/porteus-scripts/xorg/update-menus change to something like this:

Code: Select all

#!/bin/sh
# Update Lxqt menu:

echo "Updating Lxqt menu: update-desktop-database"
for x in `ps -C lxqt -o user=`; do su --login $x -c "rm ~/.cache/menus/* >/dev/null 2>&1; /usr/libexec/menu-cache/menu-cached >/dev/null 2>&1"; done
killall lxqt-panel &
lxqt-panel &
update-desktop-database
this is a bit dirty though, there got to be a better way of restarting lxqt-panel

EDITED:
Can you fix that for me?

Code: Select all

chmod -R 755  /etc

no thats wrong :p ... need to look that up :oops:thats better , i think..
i'm lazy and use spacefms properties>root menu
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 879
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: LXQt 0.11 for Porteus 3.2 x64

Post#11 by ncmprhnsbl » 29 Nov 2016, 10:36

heres the update-menu from 3.1 lxqt, which should be more correct than my effort:

Code: Select all

#!/bin/sh
# Update LXQt menu:

echo "Updating LXQt menu: update-desktop-database"
target=/mnt/live/tmp/caches/desktop-$1
dest=`cut -d/ -f7- $target`
for desktop in $dest; do touch /$desktop; rm /mnt/live/memory/changes/$desktop; done
panel=`rev $target | cut -d/ -f1 | rev | tr "\n" "|" | sed s/.$//`
owner=`ps -C lxqt-session -o user= | sort -u`
for user in $owner; do
    [ $user = root ] && hd=/root || hd=/home/$user
    su $user -c "egrep -q '$panel' $hd/.config/lxqt/panel.conf && killall lxqt-panel && nohup lxqt-panel &"
done
update-desktop-database
and these can be removed from /usr/share/applications:
qt5-assistant.desktop
qt5-designer.desktop
qt5-linguist.desktop
qt5-qdbusviewer.desktop
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 879
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: LXQt 0.11 for Porteus 3.2 x64

Post#12 by ncmprhnsbl » 29 Nov 2016, 11:41

ok.. now i see gtk3 isnt even there :P.. i just assumed it must be for nm-applet, but, it is in fact using Qt5..
the thing with adwaita icon set is probly to strip everything out except what nm-applet complains about...
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Porteus 3.2 x64

Post#13 by fulalas » 29 Nov 2016, 15:25

Man, your script to reaload lxqt-panel works beautifully -- and, contrary to what happens with XFCE, it doesn't even flash! Now Lxqt is talking :)
ncmprhnsbl wrote:ok.. now i see gtk3 isnt even there :P.. i just assumed it must be for nm-applet, but, it is in fact using Qt5..
the thing with adwaita icon set is probly to strip everything out except what nm-applet complains about...
I think nm-applet is not the problem -- in fact Paper is enough for all NetworkManager. What I'm noticing is that mostly missing icon happens when booting on 'Always Fresh' or if you don't use lxqt-sudo (ex.: 'sudo pcmanfm-qt' or 'sudo qterminal' and you'll notice that it loads with no icon). The only exceptions (missing icons even of 'Graphics' mode) I can remember: File-Roller 3 (massive icon lacking), USM (tools and help), pcmanfm-qt (new tab).

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Porteus 3.2 x64

Post#14 by fulalas » 29 Nov 2016, 16:54

Missing icons on AF was a cache problem. Solved :) But there're some missing icons on USM, File-roller or using sudo. :wall:

And I still didn't manage to make Engrampa and 7zFM to work.

EDITED: Engrampa is working and almost all icons are working too. I've given up and include Adwaita icon package. I'll try to merge with Paper sometime.The total Lxqt package is now around 45mb :good:

It seems that Lxqt has some limitation regarding drag 'n drop. For example: try to drag a file from a zip using Engrampa; you'll notice that you're only allowed to drop it over desktop, but not to any other folder. Can someone reproduce this?

fulalas
DEV Team
DEV Team
Posts: 638
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: LXQt 0.11 for Porteus 3.2 x64

Post#15 by fulalas » 29 Nov 2016, 22:16

Icons merged. I also changed Paper muted audio volume icon to include some more obvious feedback.

Up to this moment the only thing not working is 7zFM (7z GUI), although it's not necessary as Engrampa does the job. ;)

Post Reply