Debian adds a start menu for the program. debian adds a 'green' program under the sublime Start Menu and wants to add it to the Start Menu. How can this problem be solved? Here I use sublime2 as an example to go to http://www.sublimetext.com/2 to download the linux 64-bit, decompress it into the following folder/home/tools/software/: first, you can put all programs under a directory. After I put the programs in/home/tools/software/sublime, [python] # vim sublime_text [php] converts sublime_text to hexadecimal format. Input: % in vim! Xxd search for Thanks. Enter search/Thanks and then search for/3342. It should look like 4333 3342 3032. Then change 3342 to 3242, and convert it back to %! Xxd-r save and exit: wq! Sublime text2 registration code [python] -- begin license -- China Unlimited User License EA7E-2861 LICENSE License LICENSE License LICENSE License LICENSE license EA7E-5177 8125006dcd9e513cd4f1c217cad1_1d e72d3130ca1f04cfedfda-6c0f68553d 108402866afc08e42415336d86108b60fb %%%%%%-- end license -- two: create a soft link pointing to sublime [python] # ln-s/home/tools/software/sublime/sublime_text/etc/alternatives/sublime # ln-s/etc/alternatives/sublime the/usr/bin/sublime link sublime_text from the/home/tools/software/sublime file. to the shortcut that can be directly recognized by the System Terminal 3: add the Start Menu [python] # cd/usr/share/applications to copy any one. desktop. I have gvim here. therefore, I copied gvim. desktop [python] # cp gvim. desktop sublime. desktop # vim sublime. desktop [python] [Desktop Entry] Name = GVim GenericName = Text Editor Gvim GenericName [de] = Texteditor Comment = Edit text files Comment [af] = Redigeer teksl referers Comment [am] = zookeeper has been written into zookeeper without prior written into zookeeper Comment [ar] = zookeeper has been written into zookeeper without prior written into Comment [az] = M supplied tn fayllar records n records redakt records edin Comment [be] = too many records have been reported when too many statistics have been reported. comment [bg] = Comment [bn] = Comment please refer to the following link for more information: [bs] = Izmijeni tekstualne datoteke Comment [ca] = Edita fitxers de text Comment [cs] = Ú prava textov Comment ch soubor Comment [cy] = Golygu ffeiliau testun Comment [da] = Redig é r tekstfiler Comment [de] = Textdateien bearbeiten Comment [el] = 109π ε P gamma α σ α P x ε ω U k ε μ ν ο commcomment [en_CA] = Edit text files Comment [en_GB] = Edit text files Comment [es] = Edita archivos de texto Comment [et] = Redigeeri tekstifaile Comment [eu] = Editatu testu-fitxategiak Comment [fa] = commandid without commandid too many commandid already exist too many requests sent too many Comment [fi] = Muokkaa tekstitiedostoja Comment [fr] = É dite des fichiers texte Comment [ga] = Eagar comhad T é acs Comment [gu] = Comment please refer to the following link for more information:] = zookeeper was wrongly formed when zookeeper Comment [hr] = Ure was ivanje tekstualne datoteke Comment [hu] = szö vegf ájlok szerkeszt é se Comment [id] = Edit file teks Comment [it] = Modifica file di testo Comment [ja] = too many other sets too many Comment [kn] = too many Comment has been made too many Comment has been written into Comment [ko] = too many Comment has been made zookeeper was wrongly formed Comment [lt] = Redaguoti tekstines bylas Comment [lv] = Redi was taken into consideration t teksta failus Comment [mk] = zookeeper was wrongly formed when zookeeper was wrongly formed too many requests have been sent too many times before please submit Comment [ml] = too many requests have been sent too many times when there are too many requests without Comment [mn] = please refer to the following link for more information: too many threads Comment [MS] = Edit fail teks Comment [nb] = Rediger tekstfiler Comment [ne] = too many threads too many bytes have been written into your own Comment [nl] = Tekstbestanden bewerken Comment [nn] = Rediger tekstfiler Comment [no] = Rediger tekstfiler Comment [or] = too many bytes have been written into your own please refer to the following link for more information: required parameter Comment [pl] = Edytor plik ów tekstowych Comment [pt] = Editar ficheiros de texto Comment [pt_BR] = Edite arquivos de texto Comment [ro] = Editare invalid iere text Comment [ru] = {%}%%%%%%%%%%%%%%%%%%%%%%%comment [sk] = úprava textov %ch s úborov Comment [sl] = Urejanje datotek z besedili Comment [sq] = P ?rpuno files teksti Comment [sr] = too many documents have been written into too many documents please refer to the following link for more information: Comment [sr @ Latn] = Izmeni tekstualne datoteke Comment [sv] = Redigera textfiler Comment [ta] = too many rows without any errors please refer to the following link for more information:] = Metin fa Comment llary editle Comment [tr] = Metin dosyalar Comment n Comment düzenle Comment [uk] = Comment please wait until there are too many other Comment [vi] = So far n th too o t too p tin v LIMIT n B Limit n Comment [wa] = Asspougn limit des fitch limit s tecses Comment [zh_CN] = edit the text file Comment [zh_TW] = compile plain text into TryExec = gvim Exec = gvim-f % F Terminal = false Type = Application Icon = vim Categories = Utility; development; TextEditor; StartupNotify = true MimeType = text/plain; now you can change the Name to sublime and the following will all be the same. comment here we will only leave the en and Chinese characters, tryExec use the created sublime, TryExec = sublimeExec = sublime and go to the Icon of sublime text2, copy 128x128 to/usr/share/icons # cp home/tools/software/sublime/icons/x/sublime_text.png/usr/share/icons/sublime_text.png the one that came in. in the desktop file, change the Icon to sublime_text Icon = sublime_text. desktop looks like this [python] [Desktop Entry] Name = Sublime GenericName = Text Editor Sublime GenericName [de] = Texteditor Comment = Edit text files Comment [en_CA] = Edit text files comment [en_GB] = Edit text files Comment [zh_CN] = Edit text file TryExec = sublime Exec = sublime Terminal = false Type = Application Icon = sublime_text Categories = Utility; development; TextEditor; startupdatey = true MimeType = text/plain; where categories is classification. now go to the debian Start Menu and check whether there is a Sublime called Text Editor sublime in the Editor. if the icon is still not displayed, # Right-click the sublime icon in gnome/usr/share/applications and choose "OK" from the context menu. Click it to customize it, enter sublime to check whether the copy is successful. in this way, we add a program menu option in the debian Start Menu.