- vector<pair<string, string> > mounts = get_mounts (drive);
- for (vector<pair<string, string> >::const_iterator i = mounts.begin(); i != mounts.end(); ++i) {
- int const r = umount(i->second.c_str());
- LOG_DISK("Tried to unmount %1 and got %2 and %3", i->second, r, errno);
- if (r == -1) {
- return false;
+ int r = system ("which nautilus");
+ if (WEXITSTATUS(r) == 0) {
+ r = system (String::compose("nautilus \"%1\"", dir.string()).c_str());
+ return static_cast<bool>(WEXITSTATUS(r));
+ } else {
+ int r = system ("which konqueror");
+ if (WEXITSTATUS(r) == 0) {
+ r = system (String::compose("konqueror \"%1\"", dir.string()).c_str());
+ return static_cast<bool>(WEXITSTATUS(r));