Configure Android studio application icon under Ubuntu system (Ubuntu 18.04.5 LTS)

According to the needs of the project, the Ubuntu 18.04.5 LTS version system is used . To be honest, I was used to Windows and Mac systems before, so switching to Ubuntu was a bit uncomfortable. For me, who is doing Android development, some configurations require a lot of searching on Baidu! Alas, Ubuntu does not directly display even an application startup item . Well, based on my previous experience, the summary is as follows.

Step 1:
Open the terminal and execute under root permissions: gedit /usr/share/applications/Studio.desktop

The opened Studio.desktop document is as shown in the figure:

Step two:

We need to configure the following information in the Studio.desktop document:

[Desktop Entry]
Type=Application
Name=Android Studio
Exec="配置你的Andriod sudio路径,直到bin目录下/studio.sh" %f
Icon=配置你的Andriod sudio路径,直到bin目录下/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop

For the two options Exec and Icon, write the installation path corresponding to your own Android studio. Other options and corresponding content can be copied directly, then save and exit.

Step 3:
Open the file manager under Ubuntu , enter the /usr/share/applications/ directory, and you can see the Android studio application icon. (Everyone’s file storage path is different. I configured a Windows+Ubuntu dual system , so I will show my relevant information as follows)

(1) In the file manager under Ubuntu , click "Other Locations" at the bottom:

(2) Find "Computer" and click to enter:

(3) According to the /usr/share/applications/ path, find the usr directory and click to enter:

(4) According to the /usr/share/applications/ path, find the share directory and click to enter:

 (5) According to the /usr/share/applications/ path, find the applications directory and click to enter:

(6) At this time, you can see the application icon of Android studio, which means that the configuration of the above two steps is successful.

 the fourth step:

Drag the icon to the desktop or launcher, and you can see the Android studio application icon on the desktop.

My phenomenon is: after the above configuration is successful, you can click to enter  the lower left corner of the desktop of the Ubuntu system.

Find the Android studio application icon, then right-click and "Add to Favorites" to display it on the favorites bar on the desktop.

 At this point, double-click to start the application, and you can enjoy the code interface~

Content reference:

Ubuntu16.4 configure AndroidStudio desktop icon_coyc_csdn's blog-CSDN blog_android studio desktop icon

Ubuntu creates android studio desktop icon_I am Xiao Lu's blog-CSDN blog_android studio creates desktop icon

Guess you like

Origin blog.csdn.net/IT666DHW/article/details/124092367