-
-
Save M4he/3a8171a7f39d9ba9a0cf6bb387b08061 to your computer and use it in GitHub Desktop.
Hey mate I am a bit new to Linux and still learning how do I some things. how exactly would I use this patch on pcmanfm as I dont really like some of the other file managers.
Hey mate I am a bit new to Linux and still learning how do I some things. how exactly would I use this patch on pcmanfm as I dont really like some of the other file managers.
@pdachim the process will be specific to the distribution and package manager you are using.
I can show you the process for Ubuntu 20.04 to get you started. It should be applicable to any Debian-based distribution as well.
Note that the patch
command might show errors and fail if the PCManFM version is too old or new and the patch doesn't match its code structure. I've only tested the patch with PCManFM 1.3.1 so your mileage may vary.
# download the source code package
# (this will also automatically extract it in a subfolder)
apt source pcmanfm
# install necessary packages to compile pcmanfm
sudo apt build-dep pcmanfm
# enter the extracted source code directory (version number may differ)
cd pcmanfm-1.3.1/
# create a file using any editor (e.g. nano) and paste the patch into it
nano pcmanfm_hide_menubar.patch
# apply the patch
patch -p1 < pcmanfm_hide_menubar.patch
# build the modified pcmanfm package
dpkg-buildpackage -rfakeroot -uc -b
The built package will be in the parent directory, e.g. you can install it like this:
sudo dpkg -i ../pcmanfm_1.3.1-1_amd64.deb
Thanks alot mate will give it ago... I am using raspian light with lxde as a environment and openbox as a window manager. So that is nice and light for a raspberry pi. And raspian is Debian based.
Thanks. It works fine in pcmanfm github, version 1.4.0.
git clone https://github.com/lxde/pcmanfm.git
cd pcmanfm
Add the patch
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
This is great, thank you!