Author Topic: [Solved] Create menu/launcher to lock screen  (Read 1322 times)

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
[Solved] Create menu/launcher to lock screen
« on: July 21, 2011, 02:20:16 AM »
I have tried to create a menu item or a panel item to lock the screen by following the instructions at http://forum.lxde.org/viewtopic.php?f=8&t=380&start=0

The first problem is that the launch "Application Launch Bar" Settings only gives me the option of adding items that are already on the menu. I cannot browse to the lockscreen.desktop file.

The second problem is that even if I move the file (which works with a double click while on the desktop) to either ~/.local/share/applications or to /usr/share/applications (as File Manager Super User) the file does not appear in the Menu.

I have also added Categories=Utility;Configuration to the contents suggested above and NoDisplay=False.

I have tried to add it using lxmenu editor without success. I am guessing that there is some command to rebuild the menu that the above link has not mentioned.
« Last Edit: July 21, 2011, 04:09:32 AM by Ozdemon »
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Create menu/launcher to lock screen
« Reply #1 on: July 21, 2011, 02:46:34 AM »
From your link:
Quote
Make a new textfile in /usr/share/applications called lock_screen.dektop ...

This must be done as root; i.e. open menu > file tools > file manager super user. Navigate to (open) /usr/share/applications > right click in any open/blank space and choose Create New - Blank File. When the naming window opens, enter the name lock_screen.desktop (note the misspelling from your link). Click OK. Right click your newly created file and choose leafpad to open it.

Copy and paste this into it --
Code: [Select]
[Desktop Entry]
Encoding=UTF-8
Name=Lock Screen
Comment=Locks your screen
Icon=xscreensaver
Exec=xscreensaver-command -lock
Terminal=false
Type=Application
StartupNotify=false
Categories=Settings;GTK;X-MandrivaLinux-System-Configuration;
X-Desktop-File-Install-Version=0.11

Save and exit leafpad.

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2415
Re: Create menu/launcher to lock screen
« Reply #2 on: July 21, 2011, 03:16:11 AM »
From your link:
Quote
Make a new textfile in /usr/share/applications called lock_screen.dektop ...
lock_screen.desktop. One letter omitted there.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Create menu/launcher to lock screen
« Reply #3 on: July 21, 2011, 03:41:51 AM »
From your link:
Quote
Make a new textfile in /usr/share/applications called lock_screen.dektop ...
lock_screen.desktop. One letter omitted there.

From your link:
..... enter the name lock_screen.desktop (note the misspelling from your link). .....


 ;D

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: Create menu/launcher to lock screen
« Reply #4 on: July 21, 2011, 04:09:05 AM »
Yippee!  ;D All working now after a reboot, many thanks for the help. I did spend some time stumbling around but I figure that is the best way to learn of the differences with LXDE. I am very impressed with how sleek and fast PCLOS LXDE is on my netbook.  There are a couple of things I miss from Gnome such as 'make link' and F3 to split a window, but it is small beer compared to the speed of LXDE. I feel like LXDE is the little black dress and Gnome is the Ball Gown.
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline joepublic9

  • Jr. Member
  • **
  • Posts: 11
Re: [Solved] Create menu/launcher to lock screen
« Reply #5 on: August 08, 2011, 07:24:37 PM »
 I have this working as well but I would just like a blank screen instead of xscreensaver.
Is this possible?
    Thanks,
          Joe

Offline Ozdemon

  • Jr. Member
  • **
  • Posts: 38
Re: [Solved] Create menu/launcher to lock screen
« Reply #6 on: August 08, 2011, 07:27:47 PM »
Configuration/Configure XScreensaver change mode to blank screen.
(1) AMD Athlon(tm) 64 X2 Dual Core Processor 6000+,  2 x WD 500G SATA, 4G RAM (2x2G), GIGABYTE GA-MA770-DS3, Nvidia GForce 8600GT, PCLOS Gnome
(2) MSI U230 Netbook LXDE PCLOS

Offline joepublic9

  • Jr. Member
  • **
  • Posts: 11
Re: [Solved] Create menu/launcher to lock screen
« Reply #7 on: August 08, 2011, 07:45:02 PM »
 That worked, I think. I get this message in yellow at top left of screen

  xscreensaver: 21:41:47: authentication via pam timed out

 It eventually fades to blank screen though. Is that message important or should I just ignore it?
  Thanks again,
           Joe

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: [Solved] Create menu/launcher to lock screen
« Reply #8 on: August 08, 2011, 11:51:11 PM »
You can ignore it.