Just switched from windows to linux system, generally you need to make the transition through the graphical interface. As the number of installed software increases, especially some programming IDEs, such as JB's software, you have to cd xx/xx/xx/bin every time and then run the script, so it is very troublesome. So I was thinking about whether I could start the application quickly without so much trouble? Programmers who are not lazy are not easy to attack. The following is my idea of solving the problem. Let’s go and see it together!
environment
Any installation tutorial that does not mention the version is just a rogue TT
System: CentOS 7
Desktop system version: gnome 3.14
Method 1: Shortcut
First of all, I will definitely think of desktop shortcuts similar to Windows, and then I will start to google a lot of tutorials
Create Launcher
Right-click Desktop and click "Create Launcher".
Tutorial link
However, any installation tutorial that does not mention the version is just a rogue TT
Yes, the "Create Launcher" option does not appear for the elderly.
So, this road will not work.
Modify .desktop file
1. Terminal input: sudo vim /usr/share/applications/datagrip.desktop
Edit .desktop file
Exec, Icon should be changed to the installation path of datagrip
2. Then give the file authority and run the "chmod u x eclipse.desktop" command.
This is also very important! ! ! Must be an executable file.
Explain that I installed it by decompression. If it is installed with deb package (/usr/share/applications/ has datagrip.desktop, I have not installed it, I don’t know if it is this name), steps 1 and 2 are both
can be omitted3. Copy the file to the desktop directory.
Method 2: Start directly in the terminal
The most recommended method: simple, fast and convenient
Method steps
Enter the command directly in the terminal:
Enter the command again
rehash
If the hash table is not updated, the current terminal saves the previous hash table, and the soft connection will not take effect on the current terminal.
The official explanation is as follows,
Typically, compinit will not automatically find new executables in the $PATH. For example, after you install a new package, the files in /usr/bin would not be immediately or automatically included in the completion. Thus, to have these new exectuables included, one would run: rehash
You will find that the soft link was successfully established
From now on, you can directly enter datagrip in the terminal to start datagrip.
Principle explanation
/usr/bin places some executable files, such as sh files, which are executable files.
In fact, it is similar to turning datagrip into commands like ls and cat. Then when you enter the datagrip command, the execution process is as follows: first search in the path of the environment variable (via the command $PATH) to see if there is an executable file for datagrip. If not, continue to search in the folder of the path. Here we are It is in the /usr/bin folder.
Summary
Method 1 actually took many attempts before I succeeded, but method 2 is very fast, so method 2 is highly recommended.
The above is the detailed content of How to quickly launch applications on CentOS 7?. For more information, please follow other related articles on the PHP Chinese website!

随着Web应用程序的快速发展,越来越多的开发者将目光投向了各种新兴的Web开发框架和架构设计模式。其中一个备受瞩目的设计模式就是MVVM(ModelViewViewModel)架构模式。MVVM采用了一种现代化的设计模式,通过将UI和业务逻辑相分离,使得开发人员能够更好地管理和维护应用程序。此外,MVVM减少了不必要的耦合,提高了代码的可重用性和灵活性,

“msedge.exe”指的是“Microsoft Edge”网页浏览器软件;“Microsoft Edge”是由Microsoft开发的网页浏览器,该浏览器在2015年被正式命名,并且内置在了Windows10版本中;该浏览器与IE浏览器相比,Edge将支持现代浏览器功能,比如扩展。

卸载程序的文件名是“uninstall.exe”或“uninst.exe”,是用以协助使用者将软件自电脑中删除的一种电脑软件。使用方法:1、在文件资源管理器中挖掘并导航到应用程序EXE文件所在的文件路径;2、通过文件路径打开应用程序的安装目录,找到“uninstall.exe”文件;3、双击卸载文件“uninstall.exe”即可开始程序删除过程。
![如何修复 Windows 11 上的应用程序无法打开问题 [已解决]](https://img.php.cn/upload/article/000/465/014/168300240866363.png)
微软最新发布的Windows11,已经证明是Windows10的更好版本,其结构变化、更人性化、重新排列的任务栏等。尽管Windows11是其中一个优秀的版本。许多Windows用户注意到他们的Windows11PC上存在一个不寻常的问题,他们无法启动大多数Windows11应用程序。无论他们尝试启动应用程序多少次,它只是简单地崩溃并且无法在系统上打开。突然发生这种情况可能有很多原因,下面列出了一些原因。Windows更新服务已停止。对系统的病毒攻击。系统上的用户帐户存

explorer.exe应用程序错误的解决办法:1、按下键盘上的“win”+“R”组合键,再打开的运行窗口中输入命“inetcpl.cpl”;2、在上方选择“高级”选项卡,在下方点击“重置”;3、在弹出来的窗口中,勾选“删除个人设置”,勾选后点击下面的“重置”。如果以上操作无法解决问题,请检查电脑是否有木马,这个时候建议重装系统,安装一个原版或者纯净版的系统。

随着Internet的发展,越来越多的应用程序需要实现地图可视化展示。本文将介绍如何使用PHP和OpenLayers创建地图应用程序。一、OpenLayers介绍OpenLayers是一个JavaScript开源库,可以展示动态地图。除了展示标准的WMS、WFS和GoogleMaps,OpenLayers还可以展示自定义的地图,可以展示矢量数据,支持地图放

<p><strong>邮件应用程序</strong>是Windows11内置的一个非常有用的电子邮件客户端。它允许您从一个位置管理所有邮件帐户。虽然Mail应用程序非常有用,但有时可能需要重置,有时也需要重新安装,原因有多种。在本文中,我们将通过一些简单的步骤说明如何从Windows11轻松卸载Mail应用程序,以及如何轻松地从MicrosoftStore将其取回。</p>&l

随着全球定位系统(GPS)和卫星影像技术的飞速发展,地理信息系统(GIS)已经成为了一个重要的应用领域。GIS不仅限于地图制作和分析,也被广泛应用于环境管理、土地管理、城市规划等领域。而WebGIS应用程序的开发,可以使得用户在任何地点、任何时间、通过任何设备进行GIS数据的查询、分析和管理,具有极大的应用前景。Django是一个基于Python语言的We


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Chinese version
Chinese version, very easy to use

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
