首页 > 其他分享 >统信UOS桌面操作系统1060上配置鼠标右键打开方式

统信UOS桌面操作系统1060上配置鼠标右键打开方式

时间:2023-08-17 13:32:12浏览次数:80  
标签:UOS uos vnd PC 1060 desktop application 右键 root

原文链接:统信UOS桌面操作系统1060上配置鼠标右键打开方式

hello,大家好啊,今天给大家带来一篇在统信UOS桌面操作系统1060上配置鼠标右键打开方式的内容,有时候我们会发现鼠标右键选择一个文件,在打开方式中会有很多的软件供我们选择,比如要打开一个TXT文件,里面却有wps等选项,这些有时候看起来并不友好,下面就给大家介绍一种方法,能够设置里面的软件是否显示。

1、查看系统信息


uos@uos-PC:~/Desktop$ uname -a
Linux uos-PC 4.19.0-arm64-desktop #6030 SMP Tue Jun 27 15:28:10 CST 2023 aarch64 GNU/Linux
uos@uos-PC:~/Desktop$ cat /etc/os-version 
[Version] 
SystemName=UOS Desktop
SystemName[zh_CN]=统信桌面操作系统
ProductType=Desktop
ProductType[zh_CN]=桌面
EditionName=Professional
EditionName[zh_CN]=专业版
MajorVersion=20
MinorVersion=1060
OsBuild=11014.100.100
uos@uos-PC:~/Desktop$


 


统信UOS桌面操作系统1060上配置鼠标右键打开方式_桌面


2、系统目前已经安装了LibreOffice


统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_02


3、右键点击txt文件,点击打开方式会发现有LibreOffice Writer的软件,需要将它取消掉


统信UOS桌面操作系统1060上配置鼠标右键打开方式_desktop_03


4、使用root用户进入到/usr/share/applications/


uos@uos-PC:~/Desktop$ sudo -i
请输入密码:
验证成功
root@uos-PC:~# cd /usr/share/applications/
root@uos-PC:/usr/share/applications# ls -ltr |grep lib
-rw-r--r-- 1 root root  4660 4月  10  2021 libreoffice-xsltfilter.desktop
-rw-r--r-- 1 root root 21151 4月  10  2021 libreoffice-writer.desktop
-rw-r--r-- 1 root root 21166 4月  10  2021 libreoffice-startcenter.desktop
-rw-r--r-- 1 root root 18380 4月  10  2021 libreoffice-math.desktop
-rw-r--r-- 1 root root 22560 4月  10  2021 libreoffice-impress.desktop
-rw-r--r-- 1 root root 19487 4月  10  2021 libreoffice-draw.desktop
-rw-r--r-- 1 root root 22461 4月  10  2021 libreoffice-calc.desktop
-rw-r--r-- 1 root root 24731 4月  10  2021 libreoffice-base.desktop
root@uos-PC:/usr/share/applications#


统信UOS桌面操作系统1060上配置鼠标右键打开方式_uos_04

5、编辑
libreoffice-writer.desktop


root@uos-PC:/usr/share/applications# vi libreoffice-writer.desktop 
root@uos-PC:/usr/share/applications# cat  libreoffice-writer.desktop  |grep  MimeType
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-master-template;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroEnabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroEnabled.12;application/vnd.ms-works;application/vnd.stardivision.writer-global;application/x-extension-txt;application/x-t602;application/vnd.oasis.opendocument.text-flat-xml;application/x-fictionbook+xml;application/macwriteii;application/x-aportisdoc;application/prs.plucker;application/vnd.palm;application/clarisworks;application/x-sony-bbeb;application/x-abiword;application/x-iwork-pages-sffpages;application/x-mswrite;application/x-starwriter;
root@uos-PC:/usr/share/applications#

统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_05


6、将MimeType一行中的text/plain取消掉,保存退出


统信UOS桌面操作系统1060上配置鼠标右键打开方式_打开方式_06


7、注销登录


统信UOS桌面操作系统1060上配置鼠标右键打开方式_桌面_07


8、重新登录系统


统信UOS桌面操作系统1060上配置鼠标右键打开方式_打开方式_08


9、鼠标右键选择打开方式会发现已经没有了LibreOffice Writer


统信UOS桌面操作系统1060上配置鼠标右键打开方式_打开方式_09


10、同样的,如果需要在打开方式中添加一种软件,可以使用同样的方法,在
libreoffice-writer.desktop添加text/plain


uos@uos-PC:~/Desktop$ sudo -i
请输入密码:
验证成功
root@uos-PC:~# cd /usr/share/applications/
root@uos-PC:/usr/share/applications# vi libreoffice-writer.desktop 
root@uos-PC:/usr/share/applications# cat libreoffice-writer.desktop  | grep MimeType
MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template;application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master;application/vnd.oasis.opendocument.text-master-template;application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template;application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word;application/x-doc;application/x-hwp;application/rtf;text/rtf;application/vnd.wordperfect;application/wordperfect;application/vnd.lotus-wordpro;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.ms-word.document.macroEnabled.12;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.template.macroEnabled.12;application/vnd.ms-works;application/vnd.stardivision.writer-global;application/x-extension-txt;application/x-t602;text/plain;application/vnd.oasis.opendocument.text-flat-xml;application/x-fictionbook+xml;application/macwriteii;application/x-aportisdoc;application/prs.plucker;application/vnd.palm;application/clarisworks;application/x-sony-bbeb;application/x-abiword;application/x-iwork-pages-sffpages;application/x-mswrite;application/x-starwriter;
root@uos-PC:/usr/share/applications#

统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_10


11、将MimeType一行中的text/plain添加,保存退出


统信UOS桌面操作系统1060上配置鼠标右键打开方式_桌面_11


12、注销登录


统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_12


13、重新登录系统


统信UOS桌面操作系统1060上配置鼠标右键打开方式_uos_13


14、在打开方式中会显示LibreOffice Writer


统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_14


15、使用浏览器进行测试

root@uos-PC:/usr/share/applications# vi org.deepin.browser.desktop 
root@uos-PC:/usr/share/applications# cat org.deepin.browser.desktop  |grep MimeType
MimeType=text/plain;text/html;text/xml;application/xhtml_xml;application/x-mimearchive;x-scheme-handler/http;x-scheme-handler/https;
root@uos-PC:/usr/share/applications#

统信UOS桌面操作系统1060上配置鼠标右键打开方式_桌面_15


16、将MimeType一行中的text/plain添加,保存退出


统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_16


17、注销登录


统信UOS桌面操作系统1060上配置鼠标右键打开方式_uos_17


18、重新登录系统


统信UOS桌面操作系统1060上配置鼠标右键打开方式_desktop_18


19、在打开方式中会显示浏览器


统信UOS桌面操作系统1060上配置鼠标右键打开方式_desktop_19


20、当然,如果你使用如下方式添加了一个程序,应该采用下列的方法取消


20.1、当你创建了一个shell脚本,并且赋予了可执行权限


统信UOS桌面操作系统1060上配置鼠标右键打开方式_打开方式_20


20.2、鼠标右键一个文件,打开方式选择默认程序


统信UOS桌面操作系统1060上配置鼠标右键打开方式_desktop_21


20.3、选择添加其他程序


统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_22


20.4、选择刚刚编写的shell脚本


统信UOS桌面操作系统1060上配置鼠标右键打开方式_desktop_23


20.5、点击确定


统信UOS桌面操作系统1060上配置鼠标右键打开方式_打开方式_24


20.6、打开方式中已经存在刚才的shell脚本


统信UOS桌面操作系统1060上配置鼠标右键打开方式_打开方式_25


20.7、那么该如何取消掉呢?进入到
~/.local/share/applications,删除掉
dde-desktop-custom-open-application-msword.desktop


uos@uos-PC:~/Desktop$ cd ~/.local/share/applications/
uos@uos-PC:~/.local/share/applications$ pwd
/home/uos/.local/share/applications
uos@uos-PC:~/.local/share/applications$ ls -ltr
总用量 4
-rw-r--r-- 1 uos uos 184 8月  14 11:30 dde-desktop-custom-open-application-msword.desktop
uos@uos-PC:~/.local/share/applications$ cat dde-desktop-custom-open-application-msword.desktop 
[Desktop Entry]
Exec=/home/uos/Desktop/nihao.sh
Icnotallow=application-x-desktop
MimeType=*/*
Name=nihao.sh
NoDisplay=true
Type=Application
X-DDE-File-Manager-Custom-Open=application/msword
uos@uos-PC:~/.local/share/applications$ rm -rf dde-desktop-custom-open-application-msword.desktop 
uos@uos-PC:~/.local/share/applications$

统信UOS桌面操作系统1060上配置鼠标右键打开方式_linux_26


20.8、打开方式中已经不存在shell脚本了


统信UOS桌面操作系统1060上配置鼠标右键打开方式_uos_27



标签:UOS,uos,vnd,PC,1060,desktop,application,右键,root
From: https://blog.51cto.com/pengds/7121647

相关文章

  • xshell 右键粘贴
    打开xshell,选择【工具】-【选项】-【键盘和鼠标】,[向右按钮]改为[粘贴剪贴板内容],下面勾选将选定的文本自动复制的剪贴板即可。......
  • CF1060E Sergey and Subway 题解
    题面由题意可知,在原图中经过边数为\(2\)的一对点,在新图中经过边数为\(1\)。所以每对点在新图中的距离为:\[\begin{aligned}\lceil\frac{dis(i,j)}{2}\rceil=\frac{dis(i,j)+dis(i,j)\;mod\;2}{2}\end{aligned}\]那么我们只需在原图上求出任意两点距离之和并加上\(dis......
  • Win11一键修改右键菜单大法 仅需3行命令
    1.打开终端或者CMD,输入以下命令:reg.exeadd"HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32"/f/ve2.重启资源管理器taskkill/f/imexplorer.exestartexplorer.exe3.搞定原创作者:Minerval-知乎链接:https://www.......
  • IMXRT 1060 LPI2C总结
    1. However,theLPI2CwillnolongerstalltheI2CbuswaitingforthetransmitorreceiveFIFO,andafterthetransmitFIFOisempty,theLPI2CgeneratesaSTOPconditionautomatically.LPI2C不会因为等待发送/接收FIFO而让I2C总线搁置,并且当发送FIFO为空......
  • 注册表编辑器 桌面右键新建word
    注册表编辑器是什么,如何使用注册表编辑器是Windows操作系统中的一个工具,用于修改Windows注册表的内容。注册表是Windows操作系统中存储配置信息的数据库,包含了系统设置、用户配置、安装程序信息等。要使用注册表编辑器,请按照以下步骤操作:打开注册表编辑器:按下Win+R键,输入"reged......
  • Win11程序卸载(更新)后右键-打开方式仍然存在,如何清除
    清除方法:1、打开注册表Win+r打开运行窗口,输入【regedit】回车后就打开了注册表。2、在注册表输入下面的内容。计算机\HKEY_CLASSES_ROOT\Applications3、找到你已删除应用的名字,点删除即可。 ......
  • 转载 | win11右键改为win10的bat命令(以及恢复方法bat)
    原文来自这里:https://blog.51cto.com/knifeedge/5340751 版权归:IT利刃出鞘  本质上就是写入注册表。 一、右键菜单改回Win10(展开)1.新建文件:win11右键展开.bat2.填写脚本内容regadd"HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\Inproc......
  • JSP----jQuery插件ContextMenu生成右键菜单
    讲述三个内容:一:简介二:使用示例三:在jsp中动态生成的代码记录一:简介ContextMenu 译自:http://www.trendskitchens.co.nz/jquery/contextmenu/ ContextMenu是一个轻量级jQuery插件,用于选择性地用自己创建的菜单代替浏览器的默认右键菜单。 特点 1.可以在一个页面中使用多个右......
  • 解决方案 | PPT右键复制文本时右键粘贴选项按钮为空白
    1、问题 2、解决方法随便复制一些文字,不要采用CRTL+V,而是采用右键粘贴方法到ppt中,选择纯文本的“A”符号。 之后再使用CTRL+C复制,CTRL+V即正常。(好像只能本次解决) 3、参考链接 https://answers.microsoft.com/zh-hans/msoffice/forum/all/ppt%E7%B2%98%E8%B4%B4%......
  • 如何将cmd命令框添加到win10右键菜单
    win+r  输入regedit进入注册表编辑器找到路径:(可以直接输入)``计算机\HKEY_CLASSES_ROOT\Directory\Background\shell\``"C:\Windows\System32\cmd.exe""--working-dir""%v."......