Skip to content

Commit b73e4ff

Browse files
committed
feat: Set NoDisplay=true for vim.desktop
Hide vim from desktop application menu by setting NoDisplay=true This prevents vim from appearing in the desktop application launcher The desktop editor (gvim) should be used instead for GUI purposes Vim in terminal is still accessible through command line This change improves the user experience by avoiding confusion Log: Added NoDisplay=true to vim.desktop files Influence: 1. Test that vim no longer appears in desktop application launcher 2. Verify that gvim still appears in desktop launcher 3. Confirm that starting vim from terminal still works 4. Check that other desktop entries remain unaffected 5. Ensure no regression in desktop environment integration feat: 为 vim.desktop 设置 NoDisplay=true 通过设置 NoDisplay=true 隐藏 vim 桌面应用 这防止 vim 出现在桌面应用启动器中 应该使用桌面编辑器 (gvim) 进行图形界面操作 终端中的 vim 仍然可以通过命令行访问 此更改改进用户体验,避免混淆 Log: 为 vim.desktop 文件添加 NoDisplay=true Influence: 1. 测试 vim 不再出现在桌面应用启动器中 2. 验证 gvim 仍然出现在桌面启动器中 3. 确认从终端启动 vim 仍然正常工作 4. 检查其他桌面条目不受影响 5. 确保桌面环境集成无回归 repo: vim #debian/9.2.0218
1 parent 4e00a66 commit b73e4ff

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
vim (2:9.2.0218-1deepin1) unstable; urgency=medium
2+
3+
* Set NoDisplay=true for vim.desktop
4+
5+
-- lichenggang <lichenggang@uniontech.com> Mon, 23 Mar 2026 10:45:09 +0800
6+
17
vim (2:9.2.0218-1) unstable; urgency=medium
28

39
* New upstream tag
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From: Tianyu Chen <sweetyfish@deepin.org>
2+
Date: Thu, 15 Jan 2026 10:17:18 +0800
3+
Subject: Set NoDisplay=true for vim.desktop
4+
5+
Origin: vendor
6+
Bug-deepin: https://pms.uniontech.com/bug-view-285241.html
7+
Forwarded: not-needed
8+
---
9+
runtime/vim.desktop | 1 +
10+
src/po/vim.desktop.in | 1 +
11+
2 files changed, 2 insertions(+)
12+
13+
diff --git a/runtime/vim.desktop b/runtime/vim.desktop
14+
index a8672cb..715d071 100644
15+
--- a/runtime/vim.desktop
16+
+++ b/runtime/vim.desktop
17+
@@ -111,6 +111,7 @@ Comment[zh_TW]=編輯文字檔
18+
TryExec=vim
19+
Exec=vim %F
20+
Terminal=true
21+
+NoDisplay=true
22+
Type=Application
23+
# Translators: Search terms to find this application. Do NOT change the semicolons! The list MUST also end with a semicolon!
24+
Keywords[ca]=Text;editor;
25+
diff --git a/src/po/vim.desktop.in b/src/po/vim.desktop.in
26+
index 874fa6a..958f66e 100644
27+
--- a/src/po/vim.desktop.in
28+
+++ b/src/po/vim.desktop.in
29+
@@ -69,6 +69,7 @@ Comment[zh_TW]=編輯文字檔
30+
TryExec=vim
31+
Exec=vim %F
32+
Terminal=true
33+
+NoDisplay=true
34+
Type=Application
35+
# Translators: Search terms to find this application. Do NOT change the semicolons! The list MUST also end with a semicolon!
36+
Keywords=Text;editor;

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ debian/Detect-the-rst-filetype-using-the-contents-of-the-file.patch
33
debian/Add-recognition-of-more-LaTeX-commands-for-tex-filetype-d.patch
44
debian/Document-Debian-s-decision-to-disable-modelines-by-defaul.patch
55
Revert-patch-9.1.0949-popups-inconsistently-shifted-to-th.patch
6+
Set-NoDisplay-true-for-vim-desktop.patch

0 commit comments

Comments
 (0)