[Fedora-packaging] How packaging desktop integration and service menus ?

Sérgio Basto sergio at serjux.com
Sat Jun 20 21:42:49 UTC 2015


On Qua, 2015-06-10 at 00:10 +0100, Sérgio Basto wrote:
> On Seg, 2015-05-25 at 22:26 +0100, Sérgio Basto wrote:
> > Hi, 
> > peazip (peazip.sf.net) got :
> > 
> > ./peazip.desktop
> > ./kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus/peazipexthere.desktop
> > ./kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus/peazipextfolder.desktop
> > ./kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus/peazipext.desktop
> > ./kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus/peazipadd.desktop
> > ./kde3-konqueror/opt/kde3/share/apps/konqueror/servicemenus/peazipopen.desktop
> > ./kde4-dolphin/usr/share/kde4/services/ServiceMenus/peazipexthere.desktop
> > ./kde4-dolphin/usr/share/kde4/services/ServiceMenus/peazipextfolder.desktop
> > ./kde4-dolphin/usr/share/kde4/services/ServiceMenus/peazipext.desktop
> > ./kde4-dolphin/usr/share/kde4/services/ServiceMenus/peazipadd.desktop
> > ./kde4-dolphin/usr/share/kde4/services/ServiceMenus/peazipopen.desktop
> > ./peazip-alt(multilingual).desktop
> > ./nautilus-scripts/Archiving/PeaZip/Extract Archive
> > ./nautilus-scripts/Archiving/PeaZip/Add to Archive
> > ./nautilus-scripts/Archiving/PeaZip/Open Archive
> > ./nautilus-scripts/Archiving/PeaZip/Extract Here
> > ./nautilus-scripts/Archiving/PeaZip/Extract to Folder
> > ./readme_Linux2.txt
> > ./peazip-alt(all_mimetypes).desktop
> > 
> > 
> > How I should package this ? 
> 
> Today finally I found the topic of "Desktop files" in section 1.36 of
> Packaging:Guidelines  [1] 
> 
> I think desktop files deserve a page like others ( Packaging:Systemd or
> ackaging:AppData  ) also we already got one draft page [2] and we should
> add something about desktop integration, when upstream know what is
> doing, like k3b [3], we got files in write place : 
> 
> %{_kde4_appsdir}/konqsidebartng/virtual_folders/services/*.desktop
> %{_kde4_appsdir}/solid/actions/k3b*.desktop
> %{_kde4_datadir}/applications/kde4/k3b.desktop
> %{_kde4_datadir}/kde4/services/*.desktop
> %{_kde4_datadir}/kde4/services/*.protocol
> %{_kde4_datadir}/kde4/services/ServiceMenus/k3b*.desktop
> %{_kde4_datadir}/kde4/servicetypes/k3b*.desktop 
> 
> ark is also a good example [4]
> 
> %{_kde4_datadir}/kde4/services/ark*.desktop
> %{_kde4_datadir}/kde4/services/ServiceMenus/ark*.desktop
> 
> 
> but p7zip have many files of desktop integration [5] but aren't
> packaged. I read somewhere this change from version to version on window
> manager and change in each different window managers .
> So IMHO we need a page with some help and guidelines on this subject.  
> 
> 
> [1] 
> https://fedoraproject.org/wiki/Packaging:Guidelines#Desktop_files
> 
> [2]
> http://fedoraproject.org/wiki/Archive:PackagingDrafts/DesktopFiles#.desktop_file_creation 
> 
> [3]
> http://pkgs.fedoraproject.org/cgit/k3b.git/tree/k3b.spec
> 
> 
> [4] 
> http://pkgs.fedoraproject.org/cgit/ark.git/tree/ark.spec
> 
> [5]
> ./GUI/kde3/p7zip_compress.desktop
> ./GUI/kde3/p7zip_compress2.desktop
> ./GUI/kde3/p7zip_test.desktop
> ./GUI/kde3/p7zip_extract_to.desktop
> ./GUI/kde3/p7zip_extract_subdir.desktop
> ./GUI/kde3/p7zip_extract.desktop
> ./GUI/kde4/p7zip_compress.desktop
> ./GUI/kde4/p7zip_compress2.desktop
> ./GUI/kde4/p7zip_test.desktop
> ./GUI/kde4/p7zip_extract_to.desktop
> ./GUI/kde4/p7zip_extract_subdir.desktop
> ./GUI/kde4/p7zip_extract.desktop

Another lost page [6] about this subject: 

[6] https://fedoraproject.org/wiki/Extras/FedoraDesktopEntryGuidelines

-- 
Sérgio M. B.



More information about the packaging mailing list