Instructions:
1. Create file named "xnview.sh" in same directory as program, containing this information:
Code: Select all
#!/bin/bash
export target=`winepath -w "$1"`
cd ~/wine_drive_d/xnview
wine xnview.exe "$target"
3. Substitute your actual program's location for the one listed in sample.
4. Open file manager.
5. Right mouse button upon image.
6. Choose "Open with other application".
7. Browse and select xnview.sh.
8. Image should launch in either fullscreen or windowed view according to settings.
Further details:
The "~" character means your home directory. The "winepath" function makes paths readable between Windows and Linux. An image must be at a discoverable location as shown on the "Drive mappings" section of wine's configuration dialog.