
Originally Posted by
cmcanulty
Can you explain more fully. Where to save that file and what part of it to copy to file and how to run it. You seem to have all the output in the file so it is hard to see where the script ends. Thank you
Hi!
I didn't really attach any files, just the link to my github repository, which is:
https://github.com/tavinus/xap.sh
The CODE I posted above is an EXAMPLE RUN of xap.sh.
So if you run it successfully, it should look like that.
And it ends where it says Ciao 
There is a quite extensive README.md file at github, explaining in detail most stuff with examples.
So, first of all, do you use XFCE4?
This is irrelevant for other Desktop environments.
I have actually implemented a check to see if xfce4 is running or abort and tell people they should install XFCE4 manually before running xap.sh.
What system are you trying to run xap.sh?
Xubuntu? Ubuntu + XFCE4? Other?
Just by running xap.sh you will be already installing stuff with apt-get install.
There are many requisites to be able to recompile XFCE4 Thunar, this is the main reason we have xap.sh in the first place.
Installing all the requisites with apt-get is fine and safe, but you should at least know that you WANT to install the final patch before running this.
All that said, the final patched .deb installed has about 250 Kb only, thats libthunarx for ya.
The patch is also a very simple change to the libthunarx package, enabling custom actions anywhere (or disabling the check that was disabling custom actions at these places, to be more precise).
I would really recommend reading the README.md at github,
but if you just want a quick installation guide, here it goes.
Steps
- Enable source-repositories on your system (screenshots below)
- Download xap.sh and make it executable (could be on your $HOME folder)
- Run: ./xap.sh and confirm the patch install with Y when asked
- You may keep the generated files by not using Y at the end, when it asks to delete the work folder
- Reboot and test thunar actions on a network folder to make sure it worked
The location of the work folder is $HOME/xap_patch_temp.
$HOME is a shortcut to your home folder.
Eg. $ echo $HOME # will print /home/tavinus in my computer
As you can see in my first post in the example run, to run xap.sh and apply the patch you just need to run it, like this:
Downloading
Note: Any line that starts with a $, denotes a shell command line. Remove the $ if you copy-paste it. It also tells you where each command starts.
Using git
If you have git, you can use it to clone xap.sh like this:
Code:
$ git clone https://github.com/tavinus/xap.sh.git
$ cd xap.sh
$ ./xap.sh --help
Manual download
You can download the full xap.sh zip file by clicking here.
Then extract the zip and open a terminal inside the xap.sh folder.
To make sure xap.sh is executable:
Code:
$ chmod +x ./xap.sh
$ ./xap.sh --help
Or you can use these quick and dirty oneliners that will download only xap.sh and make it executable.
In this case, the patch will be downloaded during the script run.
wget oneliner
Code:
$ wget 'https://raw.githubusercontent.com/tavinus/xap.sh/master/xap.sh' -O ./xap.sh && chmod +x ./xap.sh
$ ./xap.sh --help
curl oneliner
Code:
$ curl -L 'https://raw.githubusercontent.com/tavinus/xap.sh/master/xap.sh' -o ./xap.sh && chmod +x ./xap.sh
$ ./xap.sh --help
Enabling source-code repos
If you don't know how to enable source-code repositories, here are the screenshots for Xubuntu16:


Most of this info came from the README.md file, but there is a lot more there.
Any problems, you can ask here or open an issue at github.
Cheers!
Gus
Bookmarks