Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to secure Sublime Text 2 to the Ubuntu initiator

Shulou Source: shulou.com Published: 2022-06-01 16:58:18 11月15日 Update

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!

Tags: Files launchers configurations icons software code content that is folders more desktops knowledge categories paths management utility based on what you have learned and then the operating system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information MariaDB Docker Huawei