Leafpad with access to system files
By Mikael Ståldal
As I have explained earlier, I am using Leafpad instead of gedit in my Ubuntu system.
However, recent versions of Ubuntu does not have Leafpad available through APT any longer, you have to install it with
Snap instead. This is quite annoying, since the Snap packaging of Leafpad is too restrictive, it cannot access hidden
files in your home directory, nor anything in ~/bin/
. This is not good, since I often want to use Leafpad to edit
such files.
I did not find any way to fix this with Snap, so I uninstalled the Leafpad snap, and built it from source instead:
- sudo apt install build-essential libgtk2.0-dev intltool libcanberra-gtk-module
- wget https://savannah.nongnu.org/download/leafpad/leafpad-0.8.19.tar.gz
- tar -xzf leafpad-0.8.19.tar.gz
- cd leafpad-0.8.19
- ./configure
- make
- sudo make install-strip