Debian adds a Start menu for the program, and debian adds a sublime start menu.
Source: Internet
Author: User
Debian adds a Start menu for the program. debian adds a program named & amp; #39; Green & amp; #39; under the sublime Start menu to add it to the Start menu. how can this problem be solved? Here I will use sublime2 as an example http://www.sublimetext.com/2 Download linux64-bit, decompress it... debian adds a Start menu for the program, and debian adds a 'green' program under the sublime Start menu to add it to the Start menu. how can this problem be solved? Here I will use sublime2 as an example http://www.sublimetext.com/2 Download 64-bit linux and decompress it to the following folder:/home/tools/software/1. you can put all programs under a directory, after I put it 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! Some registration codes for sublime text2 [python] -- begin license -- China Unlimited User License EA7E-2861 BE67D2175D3569FDAB9EB5340FAD2822 invalid -- end license -- begin license -- USA Unlimited U Ser License EA7E-1640 763D05839CA08BDA7B0103B5BABF0150 too many other available -- end license -- begin license -- A Unlimited User License EA7E-20708 limit DF60119B9D2 7D4CBDA75FA63D633A671 too many users LICENSE -- end license -- BEGIN License -- B Unlimited User LICENSE EA7E-13207 limit 684f7a000014d278abe2731f0270034e2 limit D76CE81501A 247F3E03F57D6EC1E76AE commandid LICENSE -- end license -- BEGIN License -- Love Unlimited User LICENSE EA7E-8441 918381aca844a0?ccac729059720a4 commandid limit 361CD9624 A56C21F54F8DD51F5BDF799 LICENSE -- END License -- begin license -- NightM Unlimited User LICENSE EA7E-5177 License LICENSE limit 402866afc08e000015336d86108b60fb limit 8e0000 83A4F0F9CAC3CC0621F2D48292F -- end license -- 2: 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 when there are too many threads, there are too many threads, too many threads Required parameter Comment [bs] = Izmijeni tekstualne datoteke Comment [ca] = Edita fitxers de text Comment [cs] = úprava textov limit ch soubor limit Comment [cy] = Golygu ffeiliau testun Comment [da] = Redig é r tekstfiler Comment [de] = Textdateien bearbeiten Comment [el] = 109π ε α σ α βε ε ω ε ι μ έ ν υ Comment [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] = {ی ر ا ش پ و ن د ه tektektektektek= Muokkaa tekstitiedostoja Comment [fr] = É dite des fichiers texte Comment [ga] = Eagar comhad téacs Comment [gu] = too many too many Comment [he] = too many Comment has been made too many Comment [hi] = too many Comment has been made too many please submit your own documents Comment [hr] = Ure your ivanje tekstualne datoteke Comment [hu] = Sz övegf ájlok szerkeszt é se Comment [id] = Edit file teks Comment [it] = Modifica fil E di testo Comment [ja] = too many bytes have been written? Set Comment [kn] = Comment [ko] = Comment zookeeper was wrongly formed into Comment [lt] = Redaguoti tekstines bylas Comment [lv] = Redi was taken into consideration t teksta failus Comment [mk] = zookeeper was wrongly formed into zookeeper too many requests have been sent too many times before Please Comment out Comment [ml] = too many requests have been sent too many times when there are too many requests without Comment [mn] = too many threads have been written into our tables too many threads have been written into our Comment [mr] = too many threads have been written into our tables too many threads too many Comment [MS] = Edit fail teks Comment [nb] = Rediger tekstfiler Comment [ne] = too many threads please refer to [nl] = Tekstbesta Nden bewerken Comment [nn] = Rediger tekstfiler Comment [no] = Rediger tekstfiler Comment [or] = too many bytes have been written too many times please refer to the following link for more information: [pa] = please refer to the following link for more information: [pl] = Edytor plik ów tekstowych comment [pt] = Editar ficheiros de texto Comment [pt_BR] = Edite arquivos de texto Comment [ro] = Editare fi ~iere text Comment [ru] = {{{{{}}.pdf please refer to the following link for more information: [sk] = úprava textov ~ch s úborov Comment [sl] = Urejanje datote K z besedili Comment [sq] = P? rpuno files teksti Comment [sr] = too many bytes have been written too many times too many Comment [sr @ Latn] = Izmeni tekstualne datoteke Comment [sv] = Redigera textfiler Comment [ta] = too many rows have been written too many too many threads have been written into Comment [th] = too many threads have been written into too many threads when too many threads have been written into Comment [tk] = Metin fa has llary editle Comment [tr] = Metin dosyalar limit n limit d U zenle Comment [uk] = too many Comment [vi] = So far n th won o t lead p tin v limit n B limit n Comment [wa] = Asspougn limit des Fitch s tecses Comment [zh_CN] = edit the text file Comment [zh_TW] = ?? Text? N TryExec = gvim Exec = gvim-f % F Terminal = false Type = Application Icon = vim Categories = Utility; Development; TextEditor; StartupNotify = true MimeType = text/plain; now we can change the Name to sublime, and the following will all be the same. here we will leave only en and Chinese for comment, and TryExec will use the created sublime here, tryExec = sublimeExec = sublime and go to the Icon of sublime text2 under us, 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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service