Lxde

De Linuxmemo.


Sommaire

[modifier] Autostart Programs

[modifier] .desktop files

First you can link a program's .desktop in /usr/share/applications/ file to ~/.config/autostart/. For example, to execute lxterminal automatically at startup:

$ ln -s /usr/share/applications/lxterminal.desktop ~/.config/autostart/

Once .desktop files have been added you can manipulate them with the GUI configuration tool lxsession-edit.

[modifier] autostart file

The second method is to use a ~/.config/lxsession/LXDE/autostart file. This file is not a shell script, but each line represents a command to be executed, if a line begins with a @ symbol, the command following the @ will be automatically re-executed if it crashes. For example, to execute lxterminal and leafpad automatically at startup:

~/.config/lxsession/LXDE/autostart
@lxterminal
@leafpad

Note: The commands do not end with a & symbol.

There is also a global autostart file at /etc/xdg/lxsession/LXDE/autostart. If both files are present, all entries in both files will be executed.

[modifier] gestionnaire de fichiers par défaut

C'est "pcmanfm %s" par défaut. Mais cela peut être changé via les "Préférences du tableau de bord / Avancé".

[modifier] bug solutions

blank icon added on notification area after resume since ugrade Here is my work-around

In a terminal shell, type: Quote:

sudo mkdir -p /usr/local/bin
gksudo gedit /usr/local/bin/lxpanel-reset.sh

Now in that editor window, paste the following: Quote:

#!/bin/sh
# only kill panel on current X11 DISPLAY
kill `ps e -Clxpanel | grep "DISPLAY=$DISPLAY" | awk '{print $1}'`
# restart
cd ; nohup lxpanel -p LXDE &

Save the file end exit the editor. Back at the terminal shell prompt, type: Quote:

sudo chmod a+rx /usr/local/bin/lxpanel-reset.sh

Open a new shell, you should be able to type "lxpanel-reset.sh" and the lxpanel should restart on command.

Now, we want a button on the toolbar to do this for us, so it's jsut a single click. So in a terminal shell, type:

mkdir -p ~/.local/share/applications
gedit ~/.local/share/applications/lxpanel-reset.desktop
Now in that file, paste in the following
[Desktop Entry]
Categories=Utility;GTK;
Comment=Kill lxpanel and restart with LXDE profile
Exec=/usr/local/bin/lxpanel-reset.sh
Icon=reload
Name=LXPanel Restart
NoDisplay=false
StartupNotify=false
Terminal=false
Type=Application

Save that, and now the "lxpanel reset" program shows up in the main LXDE menu under "Accessories". Logout and login to be sure.

Now on the lxpanel, right click, goto "Panel Settings", click the "Panel Applets" tab, click "+ Add" , find and click "Application Launch Bar", click the "+ Add" button at the bottom, now back in "Panel Applets" the new Application Launch Bar is at the bottom of the list. Click on it, then click the "Edit" button on the side. A new window pops up (you might have to move the "panel preferences" window to the bottom of the screen to get at the new window).

In the new window (Application Launch Bar) click the small triangle to expand that submenu list. Scroll down to "LXPanel Restart" and click it, then in the middle of that window click the "+ Add" button. Then click "Close" at the bottom.

Now back in "panel preferences", you can click that "Application Launch Bar" (last entry in the "panel applets" list), and use the "Up" / "Down" buttons to position it.

Now, if your system tray goes wonky, just click that lxpanel reset icon and it will reset it.

I almost didn't use LXDE at all because of this issue, but I find clicking that button takes a fraction of a second, so doing that 10x a day is not a chore; i hardly notice it.


  • [SOLVED] - WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring pkcs11: No such file or directory

THIS FIX MAKES THE gnome-keyring-pkcs11.so LOAD AT STARTUP FOR THE LXDE SESSION

This is one of them, now fixed....Warning message, it's an error message cause it is not letting the command to run. "WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-<SOMEGENERATEDSTRING>/pkcs11: No such file or directory "This is caused because of a module: gnome-keyring-pkcs11.so that is not being loaded when you log into an LXDE session. (this problem is analog to other sessions too, in this case I am using LXDE but could be KDE, GNOME etc... see the solution to understand how).


Here is the FIX!!!:

add "LXDE;" (without the double quotes and plus the semicolon, didn't try without it) to this file "/etc/xdg/autostart/gnome-keyring-pkcs11.desktop" by editing it with whatever text editor you preffer, I'll use "nano"

1 - in a terminal type (as root or with sudo): nano /etc/xdg/autostart/gnome-keyring-pkcs11.desktop

[Desktop Entry]
Type=Application
Name=Certificate and Key Storage
Comment=GNOME Keyring: PKCS#11 Component
Exec=/usr/bin/gnome-keyring-daemon --start --components=pkcs11
OnlyShowIn=GNOME;Unity;LXDE;
X-GNOME-Autostart-Phase=Initialization
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-keyring
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.2.2
NoDisplay=true
X-Ubuntu-Gettext-Domain=gnome-keyring

2 - after editing, make sure you save the changes

3 - RESTART YOUR PC

Outils personnels