JakeSFR wrote: Thu Jan 12, 2023 11:56 pm
Or just hardcode the desired directory in the script itself.
Greetings!
Works great! I'll be using this scipt.
I just made an alteration to the script using @mikewalsh's present working directory line from his portable scripts, so that now you can navigate to the directory you want to open in a file manager, open a terminal in that directory (or maybe just use a "run" box) and run the script and it will open the pwd in icon view.
Actually it's great for terminal navigation to see image thumbnails using rox.
I named the script: rxvpwd for Rox view present working directory
Code: Select all
#!/bin/sh
HERE="$(dirname "$(readlink -f "$0")")"
filename=$HERE
style='Automatic' # Large, Small, Huge, Automatic
details='None' # None, ListView, Size, Type, Times, Permissions
sort='Name' # Name, Type, Date, Size, Owner, Group
hidden='false' # true, false
rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
<env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
<OpenDir>
<Filename>$HERE</Filename>
<Style>$style</Style>
<Details>$details</Details>
<Sort>$sort</Sort>
<Hidden>$hidden</Hidden>
</OpenDir>
</env:Body>
</env:Envelope>
EOF