Navigation

Contactez-nous

Kitpages
17 rue de la Frise
38000 Grenoble
tel : 04 58 00 33 81

Par Philippe Le Van (twitter accountplv) Dernière mise à jour : 04 October 2017

Ajouter une application dans le lanceur d'Ubuntu

Introduction

Souvent, on installe les application d'ubuntu avec des fichiers .deb ou avec apt-get install.

Cependant, certaines applications ne s'installent pas vraiment. On a juste un exécurable dans un coin à télécharger, à poser quelque part et quand on le lance, l'application démarre.

Le problème dans ce cas, c'est que l'application n'est pas disponible dans le lanceur d'ubuntu. Quand on veut le lancer avec la touche "Windows", le programme n'apparait pas.

Je vais prendre l'exemple de Master PDF Editor. Il y a bien une version linux, mais c'est juste un zip à télécharger et à dézipper quelque part.

Principe

Le principe est de

  • créer un fichier master-pdf.desktop
  • le copier dans /usr/share/applications
  • raffraichir la base d'applications avec update-desktop-database

Le fichier xxx.desktop

Le plus simple est de regarder comment sont fait les autres fichiers dans le répertoire /usr/share/applications/

On en copie un et on modifie ce qu'on veut.

Dans mon cas, j'ai décompressé le fichier dans /home/philippe/program/master-pdf-editor-4. Mon fichier master-pdf.desktop contient :

[Desktop Entry]
Encoding=UTF-8
Name=Master-Pdf-Editor-4
GenericName=Master-Pdf-Editor-4
Comment=Master Pdf Editor 4
Exec=/home/philippe/program/master-pdf-editor-4/masterpdfeditor4 %F
Icon=/home/philippe/program/master-pdf-editor-4/masterpdfeditor4.png
Terminal=false
Type=Application
Categories=PDF;Editor;
MimeType=application/pdf

Mettre à jour la base desktop

# dans un terminal
sudo update-desktop-database

Conclusion

N'hésitez pas à mettre en commentaires des remarques ou des précisions.

Commentaires

Ajouter un commentaire
Thăn bò có xương Tomahawk được Chef Ngọc Tâm xử lý 
tốt. Trong khi nhiều thực khách Việt Nam thích phần gân dai dai, giòn giòn trong lõi vai Oyster Blade thì khách 
nước ngoài lại e ngại điều đó.
Chính vì thế nên đầu bếp Đinh Sơn Trúc đã tìm cách chế biến sao cho cả người 
Việt Nam cũng như khách nước ngoài đều thưởng 
thức được món này. Bò áp chảo chín tới độ vừa phải, đem bọc trong lớp crumble (bánh vụn) gia vị và sẽ được làm nóng 
tại bàn khi phục vụ thực khách.

Thịt dùng cùng với muối bò khô, xốt nếp cẩm Tây Bắc.
Món ăn kèm là hoa thiên lý xốt hoa phượng cùng một chút nấm hương Hà Giang sấy giòn và phần cuốn làm từ thịt bò hầm với 
ớt gió Hà Giang, nước cốt dừa. Chef Sơn Trúc 
trình diễn phục vụ món 'Bò chớm đông' 
làm từ lõi nạc vai Oyster Blade.
Hi there to every body, it's my first go to see of this weblog; this weblog consists of remarkable and actually fine 
information in favor of readers.
You really make it seem so easy with your presentation but I find 
this matter to be really something which I think I would never understand.
It seems too complex and very broad for me. I'm looking forward for your next post, I 
will try to get the hang of it!