【问题标题】:Creating a Desktop shortcut Eclipse on Linux Mint在 Linux Mint 上创建桌面快捷方式 Eclipse
【发布时间】:2013-07-26 09:27:45
【问题描述】:

我在 Linux Mint 15 上使用软件管理器 (mintInstall) 安装了 Eclipse。我正在尝试通过终端在我的桌面上创建 Eclipse 快捷方式。我查了一下,发现了 mkshct 命令。但是,我有以下问题:

软件管理器在哪里安装 Eclipse? (其他应用程序也在讨论这个主题)

我是否在使用 mkshct 的正确轨道上?

【问题讨论】:

    标签: terminal filesystems linux-mint


    【解决方案1】:

    也许它在 /opt/eclipse/ 中。
    附言从 eclipse.org 下载新版本,无需从文件夹安装即可运行 eclipse。

    【讨论】:

    • 我刚才在网上找到了这个解决方案。但是,我的 opt 文件夹中没有 Eclipse。 mintInstall 可能是从 eclipse.org 下载并安装的,但我仍然无法以这种方式创建快捷方式。
    【解决方案2】:

    如果您打开右下角的开始菜单选项,请搜索 Eclipse。

    一旦你找到它(通常在“开发”下找到),只需将图标拖到桌面上,就会为其创建一个快捷方式。

    【讨论】:

      【解决方案3】:

      我是如何解决这个问题的:

      1. 打开下载的文件(会有eclipseeclipse.iniepl-v10.html等)
      2. 右键单击 eclipse 文件(与启动 Eclipse 相同的文件)并单击 制作链接,然后将链接拖到桌面。

      如果您想更改链接/桌面图标,Eclipse 包还包含icon.xpm

      【讨论】:

        【解决方案4】:

        CLI 方法:

        % which eclipse

        % /xxxxxx/xxxxx/xxxxx/xxxx/eclipse

        % ln -s /xxxxxx/xxxxx/xxxxx/xxxx/eclipse /yyyy/yyyy/yyyy

        /xxxxxx/xxxxx/xxxxx/xxxx/eclipse% which eclipse 的输出,/yyyy/yyyy/yyyy 是你想要的符号链接(快捷方式)

        我们输入“which eclipse”来了解你的 Eclipse 安装在哪里

        【讨论】:

          【解决方案5】:

          首先检查Eclipse路径$ which eclipse

          1. $ sudo apt install gedit
          2. $ cd Desktop
          3. $ touch eclipse.desktop
          4. $ gedit eclipse.desktop
          5. 
          

          语法:

              [Desktop Entry]
              Type=Application
              Name=Name of your application 
              Icon=/path/to/icon
              Exec=/path/to/application
          

          你必须编辑名称、图标和执行

          [Desktop Entry]
          Type=Application
          Name=eclipse
          Icon=/home/mypc/SOFTWARES/eclipse/icon.xpm
          Exec=/home/mypc/SOFTWARES/eclipse/eclipse
          
          1. 使其可执行

            chmod u+x eclipse.desktop

          【讨论】:

            猜你喜欢
            • 2011-06-21
            • 2013-03-14
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2014-01-21
            • 2012-08-05
            相关资源
            最近更新 更多