Ubuntu – Can Wine and its programs be set to use Ubuntu file manager instead of Wine Explorer

default-programsfilemanagerwine

When browsing directories in a Windows program installed in Wine – like when opening a folder in Foobar2000 – Wine always opens the Wine explorer:

Open containing folder option in Foobar2000


The wine file manager

Is it possible to set Wine to open an Ubuntu file manager (e.g Nautilus) instead?

Best Answer

In Ubuntu 14.04 and 16.04 A quick review of the code in /usr/bin/winefile indicates that the answer is no. after checking to see if it's called with a directory name it clearly is using wine to launch the file manager regardless.

Excerpt:

if [ -x "$appdir/wine" ]; then exec "$appdir/wine" "$appname" "$@"; fi

# finally look in PATH
exec wine "$appname" "$@"

Since wine is designed to launch Windows executables It won't launch native apps. I would assume that using wine to launch the file selection routine is necessary in order to insure that the proper parameter is passed after file selection. This opinion is purely based on logic (and the content of /usr/bin/winefile). If you have information to the contrary please comment and share.