文件在:/home/anatomy/.local/share/applications

 1 总计 288
 2 -rw------- 1 anatomy anatomy  684 10月13日 20:42 0ad.desktop
 3 -rw------- 1 anatomy anatomy  427 10月21日 17:00 仿真程序.desktop
 4 -rw------- 1 anatomy anatomy  455 10月13日 20:07 anki.desktop
 5 -rw-r--r-- 1 anatomy anatomy    0 10月26日 15:44 applications.txt
 6 -rw------- 1 anatomy anatomy  306 10月13日 20:07 assistant.desktop
 7 -rw------- 1 anatomy anatomy  373 10月13日 20:12 avahi-discover.desktop
 8 -rw------- 1 anatomy anatomy  341 10月13日 20:01 cajviewer.desktop
 9 -rw------- 1 anatomy anatomy  315 10月13日 20:42 chromium-bsu.desktop
10 -rw------- 1 anatomy anatomy  354 10月13日 20:07 cmake-gui.desktop
11 -rw------- 1 anatomy anatomy  343 10月13日 20:14 com.teamviewer.TeamViewer.desktop
12 -rw------- 1 anatomy anatomy  322 10月13日 20:14 com.xunlei.download.desktop
13 -rw------- 1 anatomy anatomy  331 10月13日 20:07 designer.desktop
14 -rw------- 1 anatomy anatomy  332 10月13日 20:07 fcitx-configtool.desktop
15 -rw------- 1 anatomy anatomy  387 10月13日 20:12 fcitx.desktop
16 -rw------- 1 anatomy anatomy  949 10月13日 20:14 firefox.desktop
17 -rw------- 1 anatomy anatomy  669 10月13日 20:01 focuswriter.desktop
18 -rw------- 1 anatomy anatomy 1095 10月13日 20:12 gimp.desktop
19 -rw------- 1 anatomy anatomy  920 10月13日 20:14 google-chrome.desktop
20 -rw------- 1 anatomy anatomy  309 10月13日 20:12 htop.desktop
21 -rw------- 1 anatomy anatomy  353 10月13日 20:07 linguist.desktop
22 -rw------- 1 anatomy anatomy  336 10月13日 20:07 manjaro-documentation.desktop
23 -rw------- 1 anatomy anatomy  347 10月13日 20:12 manjaro-hello.desktop
24 -rw------- 1 anatomy anatomy 2273 10月13日 20:12 mpv.desktop
25 -rw------- 1 anatomy anatomy  316 10月13日 20:12 octopi-cachecleaner.desktop
26 -rw------- 1 anatomy anatomy  375 10月13日 20:12 octopi.desktop
27 -rw------- 1 anatomy anatomy  313 10月13日 20:01 org.goldendict.GoldenDict.desktop
28 -rw------- 1 anatomy anatomy  806 10月13日 20:12 org.kde.amarok.desktop
29 -rw------- 1 anatomy anatomy 1369 10月13日 20:07 org.kde.ark.desktop
30 -rw------- 1 anatomy anatomy  363 10月13日 20:42 org.kde.bovo.desktop
31 -rw------- 1 anatomy anatomy  730 10月13日 20:12 org.kde.dolphin.desktop
32 -rw------- 1 anatomy anatomy  661 10月13日 20:12 org.kde.elisa.desktop
33 -rw------- 1 anatomy anatomy  881 10月13日 20:14 org.kde.falkon.desktop
34 -rw------- 1 anatomy anatomy  591 10月13日 20:07 org.kde.filelight.desktop
35 -rw------- 1 anatomy anatomy  366 10月13日 20:42 org.kde.gcompris.desktop
36 -rw------- 1 anatomy anatomy 1068 10月13日 20:12 org.kde.gwenview.desktop
37 -rw------- 1 anatomy anatomy  739 10月13日 20:07 org.kde.kate.desktop
38 -rw------- 1 anatomy anatomy  480 10月13日 20:07 org.kde.kcalc.desktop
39 -rw------- 1 anatomy anatomy  383 10月13日 20:07 org.kde.kfind.desktop
40 -rwxr-xr-x 1 anatomy anatomy 7842 10月15日 08:56 org.kde.kget.desktop
41 -rw------- 1 anatomy anatomy  484 10月13日 20:12 org.kde.kinfocenter.desktop
42 -rwxr-xr-x 1 anatomy anatomy 9982 10月15日 08:55 org.kde.kmail2.desktop
43 -rw------- 1 anatomy anatomy  475 10月13日 20:12 org.kde.kmenuedit.desktop
44 -rw------- 1 anatomy anatomy 1045 10月13日 20:12 org.kde.konsole.desktop
45 -rw------- 1 anatomy anatomy  478 10月13日 20:12 org.kde.ksysguard.desktop
46 -rw------- 1 anatomy anatomy  819 10月13日 20:12 org.kde.ksystemlog.desktop
47 -rw------- 1 anatomy anatomy  376 10月13日 20:07 org.kde.kuserfeedback-console.desktop
48 -rw------- 1 anatomy anatomy  525 10月13日 20:12 org.kde.kwalletmanager5.desktop
49 -rw------- 1 anatomy anatomy  583 10月13日 20:07 org.kde.kwrite.desktop
50 -rw------- 1 anatomy anatomy  468 10月13日 20:12 org.kde.okular.desktop
51 -rw------- 1 anatomy anatomy  476 10月13日 20:12 org.kde.partitionmanager.desktop
52 -rw------- 1 anatomy anatomy  334 10月13日 20:12 org.kde.plasma-systemmonitor.desktop
53 -rw------- 1 anatomy anatomy  414 10月13日 20:12 org.kde.skanlite.desktop
54 -rw------- 1 anatomy anatomy 1968 10月13日 20:07 org.kde.spectacle.desktop
55 -rw------- 1 anatomy anatomy  453 10月13日 20:12 org.kde.yakuake.desktop
56 -rw------- 1 anatomy anatomy  974 10月13日 20:12 org.manjaro.pamac.manager.desktop
57 -rw------- 1 anatomy anatomy 2888 10月13日 20:01 org.onlyoffice.desktopeditors.desktop
58 -rw------- 1 anatomy anatomy  510 10月13日 20:42 org.wesnoth.Wesnoth.desktop
59 -rw------- 1 anatomy anatomy  275 10月13日 20:12 pacmanlogviewer.desktop
60 -rw------- 1 anatomy anatomy  308 10月13日 20:07 qstardict.desktop
61 -rw------- 1 anatomy anatomy  814 10月13日 20:12 smplayer.desktop
62 -rw------- 1 anatomy anatomy  351 10月13日 20:42 supertux2.desktop
63 -rw------- 1 anatomy anatomy  411 10月13日 20:01 texworks.desktop
64 -rw------- 1 anatomy anatomy  345 10月13日 20:12 timeshift-gtk.desktop
65 -rw------- 1 anatomy anatomy  294 10月13日 20:01 typora.desktop
66 -rw------- 1 anatomy anatomy  565 10月13日 20:07 vim.desktop
67 -rw------- 1 anatomy anatomy 2966 10月13日 20:12 vlc.desktop
68 -rw------- 1 anatomy anatomy  394 10月13日 20:01 xmind.desktop
69 -rw------- 1 anatomy anatomy  324 10月13日 20:42 xonotic-glx.desktop
70 -rw------- 1 anatomy anatomy  324 10月13日 20:42 xonotic-sdl.desktop
71 -rw------- 1 anatomy anatomy  286 10月13日 20:01 zotero.desktop

以上每个都是一个文件名,每个文件的格式基本都一样,例如:

[Desktop Entry]
Comment[zh_CN]=
Comment=
Exec=/usr/local/MATLAB/R2022a/bin/matlab -softwareopengl
GenericName[zh_CN]=
GenericName=
Icon=/usr/local/MATLAB/R2022a/bin/glnxa64/cef_resources/matlab_icon.png
MimeType=
Name[zh_CN]=仿真程序
Name=仿真程序
NoDisplay=false
Path=
StartupNotify=true
Terminal=true
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

接着:

[Desktop Entry]
Categories=Network
Comment=迅雷下载
Exec=xunlei %U
GenericName=迅雷下载
Icon=com.xunlei.download
MimeType=application/x-bittorrent
Name=迅雷
NoDisplay=false
Path=
StartupNotify=true
StartupWMClass=thunder
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

有了这个备份,即便重装了系统也可以快速恢复菜单的设置了。

原文地址:http://www.cnblogs.com/guochaoxxl/p/16828695.html

1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长! 2. 分享目的仅供大家学习和交流,请务用于商业用途! 3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入! 4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解! 5. 如有链接无法下载、失效或广告,请联系管理员处理! 6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需! 7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员! 8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载 声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性