(This guide is for Linux users. I'm sure it's possible to do this in Windows and Mac but I don't use either)
What this does:
When you open a file with Aseprite, this will switch Aseprite's directory in the Open dialog to the directory that file lives. This keeps you from having to search for your working directory within Aseprite's file browser after you already opened a file. (I made this script because I stream my drawings and I didn't like having to show everyone my entire computer directory structure during streaming)
We'll make this into an executable script:
Make a bin directory in your home directory if you don't have one
Make a script with a text editor of your choice, call the script whatever you want (example)
Paste this into the file:
If Aseprite is installed directly to your system:
sed -i "s:^.*CurrentDirectory.*$:CurrentDirectory = $(dirname $1):" $HOME/.config/aseprite/aseprite.ini && aseprite "$@"
If Aseprite is installed via Steam:
sed -i "s:^.*CurrentDirectory.*$:CurrentDirectory = $(dirname $1):" $HOME/.config/aseprite/aseprite.ini && $HOME/.steam/steam/steamapps/common/Aseprite/aseprite "$@"
Make the script executable
sudo chmod +x aseprite-open
Optional: Make an alias for the script by adding this line to .bashrc
Thunar and PCManFM:
Set up this custom action in Thunar
Add file associations you want to ~/.config/ranger/rifle.conf:
ext ase, flag f = aseprite-open "$@"
ext png, flag f = aseprite-open "$@"
Thanks for reading.