DSH Default Application Selection Plugin

Introduction

When using DeepSeek Harness (DSH) to handle documents, code, and other files, a common issue arises: DSH internally always opens files of a certain extension with a fixed application. Users want to switch the default app based on file type without modifying Windows system file associations. The DSH plugin ht65/dsh-open-with-default was designed to solve exactly this problem.

What Is It

ht65/dsh-open-with-default is a DSH client plugin maintained by developer ht65. It allows users to choose the default opening application for each file type within DSH. All settings are confined to DSH internals and will not be written to Windows UserChoice or any other system association configuration.

Installation & Activation

This repository is a local DSH plugin package. You need to install the environment dependencies first. Requirements: DSH Desktop 0.2.2-rc.5 or later on Windows, Git, and pnpm.

git clone https://github.com/ht65/dsh-open-with-default.git
cd dsh-open-with-default
pnpm install --prod --ignore-scripts

After installation, go to Plugins → Add Plugin in DSH and select the directory. If the entry doesn’t appear on the left side after the first installation, simply restart DSH.

Core Features

Click Open With in the left navigation to open the settings page. The page lists DSH-supported file extensions grouped by images, documents, code, archives, and audio/video, and displays the current DSH default application. Each row allows you to select an app, remove the setting, or follow the system default; the Add Other Extensions button at the bottom lets you add other DSH-supported file types.

File Preview & Right-Click Menu

  1. Preview any file in DSH, and a Set Default button will appear next to the native Open button in the title bar. After the first read, it will display the current DSH default, e.g., Default: WorkBuddy or Default: System.
  2. Click it, select an application, and save. The title bar button updates immediately and shows a save confirmation; the native Open button next to it will refresh its label and icon in the background. From then on, when DSH opens a file with that extension in any workspace, it will preferentially use the selected application.
  3. You can also right-click a workspace file and select Set DSH Default Open With….

Scope & Limitations

  • Applies by file extension; files without an extension are matched by their full filename.
  • Only affects DSH’s own open controls, file right-click menu, and the Open With settings page; it does not write to Windows UserChoice or any other system association.
  • If the selected application is later uninstalled, DSH will fall back to the system default and mark the invalid application in the selection dialog.
  • Available applications come from the Windows Shell file handler list, so they are consistent with the system Open With menu.
  • File cards in conversations cache their labels upon mounting; re-entering the conversation or reopening the card will read the new settings. The default button in the file preview title bar refreshes immediately.
  • Verified on Windows with DSH Desktop 0.2.2-rc.5. The plugin relies on DSH’s existing Session workspace path query API; if DSH modifies this internal API in the future, adaptation may be required.

Use Cases

This plugin is suitable for the following scenarios:

  • You need to switch between different default opening applications for different file types in DSH without changing Windows system-level file associations.
  • You need to standardize the default opening behavior for a particular file type within a team in DSH.
  • You need to configure different processing tools for different types of files.

Note: The plugin runs with the current DSH process permissions. It is recommended to review the source code and license before installation.

Summary

ht65/dsh-open-with-default provides in-DSH file type default application configuration, allowing users to flexibly control how different file types are opened within DSH without affecting Windows system associations. If you need to configure different default applications for different file types in DSH, this plugin can meet your needs.

Plugin Directory Page | GitHub Repository

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye