We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0afff63 commit b22a215Copy full SHA for b22a215
_posts/linux/2021-06-03-arch_file_default_application.md
@@ -0,0 +1,24 @@
1
+---
2
+title: Arch Linux 设置默认打开程序
3
+category: linux
4
+tags: linux arch mime
5
6
+
7
+## 所有桌面程序的.desktop文件位置
8
9
+> /usr/share/applications
10
11
+[arch wiki](!https://wiki.archlinux.org/title/XDG_MIME_Applications)
12
13
+## 设置默认打开程序
14
15
+```bash
16
+# 查询文件类型
17
+$ xdg-mime query filetype some.xlsx
18
19
+# 查询当前打开该种类型的文件所使用的应用程序
20
+$ xdg-mime query default application/octet-stream
21
22
+# 设置默认应用程序
23
+$ xdg-mime default .wps-office-et.desktop application/octet-stream
24
+```
tools.md
@@ -46,4 +46,5 @@
46
* `pulseaudio` 解决声音问题
47
* `neofetch` 命令行艺术显示系统信息
48
* `multilockscreen` i3wm 支持双显示器锁屏
49
+* `pass` 密码管理工具
50
0 commit comments