晨语 發表於 2023-12-23 00:00:00

ubuntu创建桌面快捷方式具体步骤

<p>
        <span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>默认情况下,ubuntu会将自动安装的软件快捷方式保存在/usr/share/applications目录下,如果我们要创建桌面快捷方式,只需要右键-复制-桌面 就Ok,如图: </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>上面的方法是通过系统自动安装软件后实现的,有时候我们自己会从网上下载一些软件手动安装,那么,又该怎样创建软件的桌面快捷方式呢?这里以Eclipse 为例,首先到官网下载Eclipse软件包,直接解压在某个目录下,双击其中的eclipse文件,就可以启动eclipse了,不过如果每次要打开eclipse,都要从安装目录启动,是不是有些麻烦?依照下面的操作,来创建一个桌面快捷方式吧。</span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>1、创建一个文件,将下面的代码拷贝进去</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>这里我们只需要关注3个地方,分别为Exec=软件执行文件的路径,Icon=快捷方式图标(如果有的话),Name=快捷方式名称。根据自己软件按转的位置修改代码,保存之后关闭文件。 </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <p class="right">
                <span><u>复制代码</u></span></p>
        <p>
                代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
         <br>
        Categories=Development; <br>
        Comment= <br>
        Comment= <br>
        Exec=/home/owen/Software/eclipse/eclipse <br>
        GenericName=IDE <br>
        GenericName=IDE <br>
        Icon=/home/owen/Software/eclipse/icon.xpm <br>
        MimeType= <br>
        Name=eclipse <br>
        Name=eclipse <br>
        Path= <br>
        StartupNotify=true <br>
        Terminal=false <br>
        Type=Application <br>
        X-DBUS-ServiceName= <br>
        X-DBUS-StartupType= <br>
        X-KDE-SubstituteUID=false <br>
        X-KDE-Username=owen </p>
<p>
        <br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>2、将文件名修改为eclipse.desktop <br><br>
        3、给文件添加可执行权限</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>可以通过chmod +x desktop文件 或者 直接右键权限里面修改。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>4、将该文件复制到桌面</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>注:在ubuntu11.04之前的版本中,似乎有更简单的方法来创建桌面快捷方式:右键点击桌面-创建启动器,</span></p>
頁: [1]
查看完整版本: ubuntu创建桌面快捷方式具体步骤