More Openbox / minimal DE notes
Mounting Part II #
A couple more notes on USB mounting in a minimal environment (no polkit etc).
What I’ve ended up with is even more simple than the previous post described. A friend came round with a USB stick to copy some data off. Of course, my settings didn’t recognise his UUID, so a few lines of good old terminal typing was required to safely mount / unmount it. Hmmm. Not very elegant. So…
In the end I’ve gone for just pmount on it’s own. I keep just the UUID entry for my mp3player in fstab because that keeps Clementine happy. If I stick a USB device in, I’ve set up desktop hotkeys to summon pmount-gui. A stupidly simple mounting widget.
So for me now it’s Ctrl+Alt+m to call up pmount-gui in mount mode, and the highly original Ctrl+Alt+u to call up pmount-gui in unmount mode. A vastly more elegant solution. As fate would have it. I’ve not had to mount a single USB device ever since setting this up.
PCManFM tips #
Some notes to aid pcmanfm users (on Gentoo):
You want thumbnails with that? #
If ffmpegthumbnailer and imagemagick are installed, you can have ultra smooth thumbnails for images and video. In /usr/share/thumbnailers you’ll probably already find a couple of x.thumbnailer files depending on what you’ve installed. PCManFM uses these, so I’ve just added a couple:
For video file thumbnails: /usr/share/thumbnailers/ffmpeg.thumbnailer
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -i %i -o %o -s %s -f
MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;
For still image thumbnails: /usr/share/thumbnailers/imagemagick.thumbnailer
[Thumbnailer Entry]
TryExec=convert
Exec=convert %i -auto-orient -thumbnail %s %o
MimeType=image/jpeg;image/pjpeg;image/x-portable-bitmap;image/x-tiff;image/tiff;image/png;image/bmp;image/x-windows-bmp;image/x-pcx;image/gif;image/x-icon;image/x-portable-anymap;image/vnd.wap.wbmp;image/x-xbitmap;
The LXDE trick #
If you’re missing the applications icons or file associations aren’t playing nicely, the least cludgy way of fixing it is to install: lxmenu-data which shouldn’t pull in half a desktop environment with it.
This gives you /etc/xdg/menus/lxde-applications.menu
Now just add a couple of exports to your .xinitrc:
export XDG_MENU_PREFIX=lxde-
export XDG_CURRENT_DESKTOP=LXDE
Once you restart pcmanfm you should find applications populated and a sane list of applications to choose from when picking a default file opener.u