麒麟系统中修改 WPS 默认新建文件格式的方法 - 实践
<style>pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", monospace !important; font-size: 14px !important; line-height: 1.6 !important; padding: 16px !important; margin: 16px 0 !important; background-color: rgba(248, 248, 248, 1) !important; border: 1px solid rgba(225, 228, 232, 1) !important; border-radius: 6px !important; tab-size: 4 !important; -moz-tab-size: 4 !important; max-width: 100% !important; box-sizing: border-box !important }code { font-family: "Consolas", "Monaco", "Courier New", monospace !important; font-size: 14px !important; white-space: pre !important; word-wrap: normal !important; word-break: normal !important; overflow-wrap: normal !important; display: inline !important; background: rgba(0, 0, 0, 0) !important; border: none !important; padding: 0 !important; margin: 0 !important; line-height: inherit !important }
pre code { background: rgba(0, 0, 0, 0) !important; border: 0 !important; border-radius: 0 !important; display: block !important; line-height: 1.6 !important; margin: 0 !important; max-width: none !important; overflow: visible !important; padding: 0 !important; white-space: pre !important; word-wrap: normal !important; word-break: normal !important; color: inherit !important }
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: rgba(112, 128, 144, 1) !important; font-style: italic !important }
.token.punctuation { color: rgba(153, 153, 153, 1) !important }
.token.atrule, .token.attr-value, .token.keyword { color: rgba(0, 119, 170, 1) !important; font-weight: bold !important }
.token.function, .token.class-name { color: rgba(221, 74, 104, 1) !important; font-weight: bold !important }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: rgba(102, 153, 0, 1) !important }
.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: rgba(153, 0, 85, 1) !important }
.cnblogs-markdown pre, .cnblogs-post-body pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; background-color: rgba(248, 248, 248, 1) !important; border: 1px solid rgba(225, 228, 232, 1) !important; border-radius: 6px !important; padding: 16px !important; margin: 16px 0 !important }
pre, pre, pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important }</style>
<div class="htmledit_views github-gist" id="content_views"><p>原文链接:麒麟系统中修改 WPS 默认新建文件格式的方法</p><p>Hello,大家好啊,今天给大家带来一篇实用干货——在银河麒麟桌面操作系统V10 SP1上,如何把WPS办公软件右键菜单中新建文件的默认格式,从.wps/.dps/.et修改为更通用的.docx/.pptx/.xlsx。很多人都有这样的困惑:右键新建一个文档,发现后缀并不是我们日常最常用的Office格式。这样一来,在跨平台办公、文件共享或与同事协作时,总会遇到格式不兼容的问题。那么,有没有办法解决呢?答案是肯定的!接下来我们就一步步来操作。</p><p></p><p>1.查看系统版本</p><p>首先查看系统版本信息,确保是麒麟V10 SP1。</p>
<pre style="white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important"><code>pdsyw@pdsyw1024:~/桌面$ cat /etc/os-release
pdsyw@pdsyw1024:~/桌面$ uname -a</code></pre>
<p></p><p class="img-center"><img alt="img" height="518" src="https://i-blog.csdnimg.cn/img_convert/14166e3374162a1b859c6bf7f557471f.png" width="692"></p><p></p><p>2.安装WPS办公软件</p><p></p><p class="img-center"><img alt="img" height="506" src="https://i-blog.csdnimg.cn/img_convert/d9059abf303e885266fd85754a61b457.png" width="692"></p><p></p><p>3.鼠标右键新建查看</p><p></p><p class="img-center"><img alt="img" height="588" src="https://i-blog.csdnimg.cn/img_convert/9fe2c36a875e04c3c8cfc4e668794242.png" width="692"></p><p></p><p>4.新建文件查看格式</p><p>在默认情况下,右键新建文档时生成的文件格式是:</p><p>WPS文字文档:.wps</p><p>WPS表格:.et</p><p>WPS演示文稿:.dps</p><p>而我们想要的目标是:</p><p>Word文档:.docx</p><p>Excel表格:.xlsx</p><p>PowerPoint演示文稿:.pptx</p><p></p><p class="img-center"><img alt="img" height="388" src="https://i-blog.csdnimg.cn/img_convert/4491e75b4f36102066d8f32a037cd579.png" width="692"></p><p></p><p>5.进入模板目录</p><p>WPS新建文件的逻辑,其实依赖于模板目录。只要替换模板文件,就能改变新建文件的格式。</p><p></p><p class="img-center"><img alt="img" height="425" src="https://i-blog.csdnimg.cn/img_convert/b0c37873dd67cc98f7303b6fd74a24b7.png" width="692"></p><p></p><p>6.删除原有的WPS模板</p><p></p><p class="img-center"><img alt="img" height="428" src="https://i-blog.csdnimg.cn/img_convert/e850f2b75c823a39b123bd876504f1df.png" width="692"></p><p></p><p>7.新建Word模板</p><p>选择模板的保存位置为用户的模板文件夹,并且格式为.docx。</p><p></p><p class="img-center"><img alt="img" height="536" src="https://i-blog.csdnimg.cn/img_convert/300f26f397f89ff04390893dfc8d0d4e.png" width="692"></p><p></p><p>8.新建Excel模板</p><p>选择模板的保存位置为用户的模板文件夹,并且格式为.xlsx。</p><p></p><p class="img-center"><img alt="img" height="489" src="https://i-blog.csdnimg.cn/img_convert/0f487e7b7e0e735a16e591c3e7a99fa9.png" width="692"></p><p></p><p>9.新建PowerPoint模板</p><p>选择模板的保存位置为用户的模板文件夹,并且格式为.pptx。</p><p></p><p class="img-center"><img alt="img" height="446" src="https://i-blog.csdnimg.cn/img_convert/61c260515e574bf384a76cd3bddfdf60.png" width="691"></p><p></p><p>10.在模板文件夹中查看</p><p>文件格式分别为.docx、.pptx、.xlsx格式。</p><p></p><p class="img-center"><img alt="img" height="429" src="https://i-blog.csdnimg.cn/img_convert/e5f922ff21adeda6c58c16aa1adb7c33.png" width="692"></p><p></p><p>11.鼠标右键新建查看</p><p></p><p class="img-center"><img alt="img" height="608" src="https://i-blog.csdnimg.cn/img_convert/fd0090f919598afa5e88627755848e6f.png" width="693"></p><p></p><p>12.新建文件查看格式</p><p>文件格式分别为.docx、.pptx、.xlsx格式。</p><p></p><p class="img-center"><img alt="img" height="418" src="https://i-blog.csdnimg.cn/img_convert/1d4653c4e7038c1216220536895600e2.png" width="610"></p><p></p><p>13.替换系统用户模板中的内容</p>
<pre style="white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important"><code>pdsyw@pdsyw1024:~/桌面$ sudo -i
root@pdsyw1024:~# cd /etc/skel/
root@pdsyw1024:/etc/skel# cd 模板/
root@pdsyw1024:/etc/skel/模板# rm -rf WPS*
root@pdsyw1024:/etc/skel/模板# cp /home/pdsyw/模板/WPS* ./</code></pre>
<p></p><p class="img-center"><img alt="img" height="515" src="https://i-blog.csdnimg.cn/img_convert/f77456c5d9c03761c0067bdafffafc16.png" width="692"></p><p></p><p>14.点击添加</p><p></p><p class="img-center"><img alt="img" height="432" src="https://i-blog.csdnimg.cn/img_convert/17405fefa80ce2c5ceab591876cca31c.png" width="692"></p><p></p><p>15.新建用户</p><p></p><p class="img-center"><img alt="img" height="452" src="https://i-blog.csdnimg.cn/img_convert/e4b09649b2a2f66dadf13d63afa601c7.png" width="692"></p><p></p><p>16.切换新用户登录</p><p></p><p class="img-center"><img alt="img" height="479" src="https://i-blog.csdnimg.cn/img_convert/7cfdd5e67358ae29f0a1f9277b2aab5e.png" width="693"></p><p></p><p>17.查看新用户鼠标右键新建</p><p></p><p class="img-center"><img alt="img" height="617" src="https://i-blog.csdnimg.cn/img_convert/9363b7f141b985a5760439500e632032.png" width="692"></p><p></p><p>18.新用户鼠标右键新建查看文件格式</p><p>文件格式分别为.docx、.pptx、.xlsx格式。</p><p></p><p class="img-center"><img alt="img" height="467" src="https://i-blog.csdnimg.cn/img_convert/3ff67ba4bf6dfa5369fbe3696028bb8d.png" width="692"></p><p></p><p>通过替换系统模板文件,我们可以完美解决WPS默认新建文件格式的问题,让它一开始就生成最常用的.docx/.xlsx/.pptx文件。这样不仅能避免兼容性困扰,还能提升跨平台办公的效率。如果你也在麒麟系统上用WPS,不妨按照本文操作试一试,相信一定能帮你省下不少时间。今天的教程就分享到这里啦!如果你觉得有帮助,欢迎点赞、分享,点个在看支持一下!</p></div>
---
<div style="background: rgba(240, 253, 244, 1); padding: 15px 18px; border-bottom: 3px solid rgba(34, 197, 94, 1); margin-top: 30px">
<h3 style="color: rgba(21, 128, 61, 1); margin-top: 0; font-size: 16px"> 进阶学习</h3>
<p style="color: rgba(102, 102, 102, 1); font-size: 13px; margin-bottom: 12px">本文涉及的技术,这些课程讲得更深入:</p>
<ol style="line-height: 2; font-size: 14px; padding-left: 20px">
<li><strong>Vue开发实战</strong> — <span style="color: rgba(136, 136, 136, 1); font-size: 13px">Vue.js实战开发指南</span></li>
</ol>
</div><br><br>
来源:https://www.cnblogs.com/slgkaifa/p/19139168
頁:
[1]