[Mono-list] Opening a file and directory in the system's default viewer

Indrid Cold indrid.warm at gmail.com
Sun Aug 22 07:27:02 EDT 2010

I'd like some more information on this one.

I found out that the problem was a bug in the current ubuntu version of
xdg-open. To work around this bug, I did the following trick: Created an
alias to kde-open, placed it in my ~/bin directory and named it xdg-open.
That way when xdg-open is called, kde-open runs instead.

Within the C# program, this works as expected when the argument is a
directory: My file manager (Dolphin) opens in that directory. However,
calling it with a file still doesn't work and there's no application output
either. If I try xdg-open from the terminal with a file, it works.

So my question is: Does Mono handle opening directories differently than
opening files? For example, maybe when opening a directory it calls xdg-open
from the default location (in my case ~/bin) but when opening a file it
specifically calls it from /usr/bin?
View this message in context: http://mono.1490590.n4.nabble.com/Opening-a-file-and-directory-in-the-system-s-default-viewer-tp2325051p2334093.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list