Linux上创建RStudio快捷方式

在Linux平台上经常会有一些软件需要通过命令行的方式启动,这没有图标启动方便,下面是在Linux平台为RStudio创建图标链接的方法:

下面以在桌面上创建RStudio快捷方式为例:

(1) 首先找到RStudio的位置及下载好相应图标的图片;

(2) 在桌面上新建一个文件,并将如下信息复制进去:

[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/home/linzhu/anaconda3/bin/rstudio
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/linzhu/anaconda3/Rstudio_icon.png
MimeType=
Name[zh_CN]=RStudio
Name=RStudio
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=linzhu

修改标红的三行即可,修改为你的RStudio的安装位置,图标图片的位置及你的用户名,最后保存文件;

(3) 修改文件名为RStudio.desktop;

(4) 右键该文件选择属性,将该文件添加上可执行 (Allow executing xxx) 权限:

(5) 双击运行即可;

Ref: https://blog.csdn.net/redy_hello/article/details/51345983

原文地址:https://www.cnblogs.com/pear-linzhu/p/12353959.html