Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to secure Sublime Text 2 to the Ubuntu initiator

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to fix Sublime Text 2 to the Ubuntu starter". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Sublime Text 2 is the best code editor I've ever used, UI and plug-in management are great, and now it's available for free trial indefinitely, and Ubuntu is my favorite Linux operating system. Because Sublime Text does not need to be installed, there is a lack of some basic configurations for running the Ubuntu desktop, such as not being able to add it to the initiator on the side of the desktop.

There are no shortcuts on Ubuntu, but software installed through the Software Center has icons and can be added to the launcher because they have a desktop configuration file. These configuration files are under the / usr/share/applications folder, so in that case, open any configuration file and write a desktop file for Sublime Text:

The code is as follows:

#! / usr/bin/env xdg-open

[Desktop Entry]

Name=Sublime Text 2

Comment=Sublime Text 2

Icon=/home/serho/tools/Sublime Text 2/Icon/48x48/sublime_text.png

Terminal=false

Type=Application

Categories=Application;Development

StartupNotify=true

There are only a few things that need to be changed:

The code is as follows:

Name: that's the name.

Comment: equivalent to comments

Exec: path to the executable file

Icon: icon path. Sublime Text has various models of icons by default.

The other settings are mainly categories, etc. If you put this configuration file under the / usr/share/applications folder, you can find the software under the corresponding category through Ubuntu's software management. Save the above file, such as sublime-text.desktop, and give executable permission, then double-click to open Sublime Text, and the icon on the launcher can be fixed.

That's all for "how to fasten Sublime Text 2 to the Ubuntu launcher". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report