欢迎光临散文网 会员登陆 & 注册

3.14. 更改默认程序(OLEX2使用手册)

2021-02-27 21:06 作者:DJ_Tokyo  | 我要投稿

原文如下:


Change default programs


To change default text editor, html editor or folder browser, you need to set the Olex2 variables associated with these programs. To keep the changes permanent, create the file 'custom.xld' in the Olex2 installation directory. For example the following construct placed in that file sets programs for KDE:


<user_onstartup help="Executes on program start"

<body <args> 

<cmd 

<cmd1 "setvar(defeditor,'kate')"> 

<cmd2 "setvar(defexplorer,'konqueror')"> 

<cmd3 "setvar(defbrowser,'konqueror')"> 

>


This defines a function which is called when Olex2 starts up, please note if there are several functions with the same name are found in the files - the last one will be used. Please avoid overriding any functions in the macro.xld file as that may cause Olex2 to function incorrectly.


译文如下:


3.14. 更改默认程序


要更改默认文本编辑器、html编辑器或文件夹浏览器,需要设置与这些程序关联的Olex2变量。要使更改保持永久性,请在Olex2安装目录中创建'custom.xld'文件。例如,放置在该文件中的以下构造为KDE设置程序:


<user_onstartup help="Executes on program start"

 <body

  <args

  > 

  <cmd

   <cmd1"setvar(defeditor,'kate')">

   <cmd2"setvar(defexplorer,'konqueror')">

   <cmd3"setvar(defbrowser,'konqueror')">

  > 


这定义了一个在Olex2启动时调用的函数,请注意,如果在文件中找到多个同名函数,将使用最后一个函数。请避免重写macro.xld文件中的任何函数,因为这可能导致Olex2无法正常工作。


公众号文章链接:

https://mp.weixin.qq.com/s?__biz=MzU0NjkzMTM1MQ==&mid=2247485364&idx=1&sn=66c0d9124a322775183a96b29dc80b08&chksm=fb57504ccc20d95abd6d2705569088557b893692c544d37ef085add201ab41efef37264d126a&token=1126004319&lang=zh_CN#rd



3.14. 更改默认程序(OLEX2使用手册)的评论 (共 条)

分享到微博请遵守国家法律