http://forum.porteus.org/viewtopic.php? ... 511#p23511
1.0 Having a given set of programs and windows opened at bootup. The problem is that with lxqt by contrast to kde or xfce changes cheatcode in grub instructions will not save changes to windows in the desktop environment. There is two options here.
1.01 Use the hibernate function to shutdown, that will replace the effect of changes cheatcode. You have to use the resume cheatcode instructing where to save the state of the system and instruct the computer to save the information in a swapfile:
http://unix.stackexchange.com/questions ... t-settings
where sdxy=the identity of the swap file (to find swap file use fdisk -l command)
Example (the resume cheatcode as to be added to the appropriate location in the /boot/syslinux/porteus.cfg file:
Code: Select all
LABEL gui
MENU LABEL Graphics mode (LXQT)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus resume=/dev/sda8
1.02 Starting programs or windows automatically at bootup with guiexec cheatcode or by placing program files package.desktop into the autostart folder. 1.021 As there is no way to save the changes of the desktop environment at shutdown for the next session(with changes cheatcode in grub loading instructons), the guiexec cheatcode which will start programs once the graphic environment at bootup is really handy:
http://www.porteus.org/tutorials/26-gen ... -them.html
guiexec=my_script
guiexec=firefox;pidgin
... Execute specified command(s) in runlevel 4, when the graphical
interface is loaded; unlike 'cliexec' this cheatcode can be
used to start graphical applications.
Use semicolons (;) as command separators with no spaces.
... If you need to use spaces in the command line, replace them
with '~'.
Example: 'guiexec=firefox~kernel.org' will open the firefox
browser on the 'kernel.org' website.
Here is my menu.lst entry (grub legacy bootloader) with guiexec to have on the desktop my xrandr script for dual display, and opened windows for google-chrome and pcmanfm-qt. Example:
Code: Select all
title porteus on sda5 64bit_v31 LXQT
root (hd0,4)
kernel /64bit_v31/boot/syslinux/vmlinuz from=/dev/sda5/64bit_v31 extramod=/mnt/sda5/64bit_v31/lxqt login=root changes=EXIT:/64bit_v31/lxqt [b]guiexec=pcmanfm-qt;dual_display_script.sh;/opt/google/chrome/google-chrome[/b]
initrd /64bit_v31/boot/syslinux/initrd.xz
boot
http://forum.porteus.org/viewtopic.php? ... 805#p30805
1.1 Command line for more frequently used applications (could be used with the guiexec cheatcode):
pcmanfm-qt command line:
http://askubuntu.com/questions/258254/h ... -directory
leafpad command line:
google-chrome command line:
Adding applications to the lxqt menu:
3.0 Scripts:
- dual_display_script.sh: xrandr (straightening up your screen(s), dual display, changing screen resolution, etc.)
http://forum.porteus.org/viewtopic.php?f=61&t=3203
4.0 gui front end written in java called lxmed that will change the lxqt menu items:
http://sourceforge.net/projects/lxmed/
[url]task.http://ubuntuforums.org/showthread.php?t=896355[/url]
Unpack the lxmed and use the install script. lxmed will be installed in opt.
You need openjava to get it running. Java will install itself in /usr/lib64/java/jre/bin/java. To start the lxmed menu editor:
Code: Select all
root@porteus: /usr/lib64/java/jre/bin/java -jar /opt/lxmed/LXMenuEditor.jar
lxde panel > preferences > main menu editor > properties
The command in properties should be:
/usr/lib64/java/jre/bin/java -jar /opt/lxmed/LXMenuEditor.jar
or
modify the /usr/share/applications/Main Menu Editor or lxmed.destop file changing lxmed for /usr/lib64/java/jre/bin/java -jar /opt/lxmed/LXMenuEditor.jar command (as this is a java program).
5.0 Other:
- pcmanfm-qt detailed list view:
pcmanfm window > edit > preference > behavior > detailed view mode
- suspend on lid close:
lxqt panel menu > preferences > lxqt system settings > power management > lid > action when lid close > suspend (for every choices, the four of them)
- dual diplay to get the wallpaper extended to the whole desktop:
lxqt panel menu > preferences > lxqt system settings > monitor settings > quick options > extended view (this will spread the wallpaper to both screens)
But this will cause a problem if your standalone display is on the right of the laptop, then:
lxqt panel menu > preferences > lxqt system settings > monitor settings > settings > monitor 2 (standalone display) > position right of (was left of monitor 1)
- associating a script to an icon:
***to come***