Skip to content

Commit

Permalink
disable mount for openBSD
Browse files Browse the repository at this point in the history
mount is not supported by rclone for openBSD, see: winfsp/cgofuse#18
  • Loading branch information
kapitainsky committed Nov 23, 2019
1 parent e832bed commit eeebfd1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/preferences_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,16 @@ PreferencesDialog::PreferencesDialog(QWidget *parent) : QDialog(parent) {
ui.rcloneConf->setText(QDir::toNativeSeparators(
settings->value("Settings/rcloneConf").toString()));
ui.stream->setText(settings->value("Settings/stream").toString());

#if defined(Q_OS_OPENBSD)
ui.mount->setText(
settings->value("Settings/mount", "*** rclone does not support mount on openBSD ***").toString());
ui.mount->setDisabled(true);
#else
ui.mount->setText(
settings->value("Settings/mount", "--vfs-cache-mode writes").toString());
#endif

ui.defaultDownloadDir->setText(QDir::toNativeSeparators(
settings->value("Settings/defaultDownloadDir").toString()));
ui.defaultUploadDir->setText(QDir::toNativeSeparators(
Expand Down
4 changes: 4 additions & 0 deletions src/remote_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ RemoteWidget::RemoteWidget(IconCache *iconCache, const QString &remote,
ui.mount->setDisabled(!isFolder);
};
#else
#if defined(Q_OS_OPENBSD)
ui.mount->setDisabled(true);
#else
ui.mount->setDisabled(!isFolder);
#endif
#endif

ui.stream->setDisabled(isFolder);
Expand Down

0 comments on commit eeebfd1

Please sign in to comment.