Saturday, May 30, 2015

xdg-su not decorated with theme

LXDE on OpenSuse 13.2 uses xdg-su ass the GUI frontend to run applications using sudo. If it can't load gnomesu or kdesu then it presents a bland undecorated xterm window. This can be neatened by simply installing libgnomesu which is small with only 1 dependancy (it doesn't need a full gnome desktop!).

Install Screengrab for screenshots on OpenSuse

LXDE doesn't have a default screenshot grabber. Here's how to install Screengrab from source on OpenSuse 13.2:

Download the source code from:
  • http://screengrab.doomer.org/download/
Install dependencies to make the binaries:
  • libqt4-devel
  • gcc
  • gcc-c++
  • cmake
 Compile and install:
  • cd ~/Downloads/Source/screengrab*
  • mkdir build
  • cd build
  • cmake ../
  • make
  • sudo make install
The binaries are installed to /usr/local. 
A bug puts the libraries in the wrong location, we need to correct it:
  • sudo mv /screengrab /usr/local/
The source package does not create a start menu shortcut, we need to create it manually:
  •  leafpad ~/.local/share/applications/screengrab.desktop
[Desktop Entry]
Name=Screengrab
Comment=Capture screenshots
GenericName=Screengrab
Exec=screengrab
Icon=screengrab
Terminal=false
StartupNotify=true
Type=Application
Categories=Graphics;


Enjoy!