Terminal 在Linux Mint上创建桌面快捷方式Eclipse

Terminal 在Linux Mint上创建桌面快捷方式Eclipse,terminal,filesystems,linux-mint,Terminal,Filesystems,Linux Mint,我在LinuxMint15上使用软件管理器(mintInstall)安装了Eclipse。我正试图通过终端在我的桌面上创建一个Eclipse快捷方式。我查了一下,发现了mkshct命令。但是,我有以下问题: 软件管理员在哪里安装了Eclipse?(关于此主题的其他应用程序) 我使用mkshct正确吗?可能是在/opt/eclipse/ 另请从eclipse.org下载新版本,您可以运行eclipse而无需从文件夹中安装。如果您打开右下角的“开始”菜单选项,请搜索eclipse 一旦找到它(通常在

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

软件管理员在哪里安装了Eclipse?(关于此主题的其他应用程序)


我使用mkshct正确吗?

可能是在/opt/eclipse/

另请从eclipse.org下载新版本,您可以运行eclipse而无需从文件夹中安装。

如果您打开右下角的“开始”菜单选项,请搜索eclipse


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

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

  • 打开下载的文件(它将有
    eclipse
    eclipse.ini
    epl-v10.html
    ,等等)
  • 右键单击eclipse文件(启动eclipse的同一文件)并单击创建链接,然后将链接拖动到桌面
  • 如果要更改链接/桌面图标,Eclipse包还包含
    icon.xpm

    CLI方法:

    %哪个eclipse

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

    1. $ sudo apt install gedit
    2. $ cd Desktop
    3. $ touch eclipse.desktop
    4. $ gedit eclipse.desktop
    5. 
    
    %ln-s/xxxxxx/xxxxx/xxxxx/eclipse/yyyy/yyyy/yyyy

    其中,
    /xxxxxx/xxxxx/xxxxx/xxxxx/eclipse
    是哪个eclipse的输出,
    /yyyy/yyyy
    是您想要符号链接的地方(快捷方式)

    我们键入“whicheclipse”以了解您的eclipse安装在哪里


    首先检查Eclipse路径
    $哪个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
    
    您必须编辑名称、图标和Exec

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

    chmodu+xeclipse.desktop


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