Skip to content

Commit b22a215

Browse files
committed
arch default application
1 parent 0afff63 commit b22a215

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@
4646
* `pulseaudio` 解决声音问题
4747
* `neofetch` 命令行艺术显示系统信息
4848
* `multilockscreen` i3wm 支持双显示器锁屏
49+
* `pass` 密码管理工具
4950

0 commit comments

Comments
 (0)