From: Igor Vlasenko <vlasenko@imath.kiev.ua> To: devel@lists.altlinux.org Subject: [devel] NMU: desktop categories Date: Mon, 16 May 2011 15:37:09 +0300 Message-ID: <20110516123709.GA8480@dad.imath.kiev.ua> (raw) Уважаемые коллеги, Хочу радикально разгрести авгиевы конюшни в наших .desktop файлах, на которые repocop ругается уже почти три года, с самого рождения. Поскольку многие жаловались, что не царское это дело, то исправление механических проблем я встроил в rpm, в brp-fixup/fixup-desktop: 1. убирать Encoding=UTF-8 2. Icon= .png/svg/xpm cleanup if not absolute 3. trailing ; in MimeType=, Category= 4. Category: subst Foo -> X-Foo and so on kill Application; in category Это коммит http://git.altlinux.org/people/viy/packages/?p=rpm.git;a=commit;h=d3e3c1425960b2a3f8602c09dfe4b23b7d295a62 прошу смотреть и рецензировать для включения в наш rpm. Замечу, что, в частности, на 3. отсутствующий на конце ; в MimeType=, Category=, ругается kbuildsycoca4 --noincremental ... kbuildsycoca4(1632) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/wine-uninstaller.desktop" is not compliant with XDG standard (missing trailing semicolon). отчего KDE4 так долго и грузится (шутка). Что касается расстановки отсутствующих вторичных категорий, из-за чего приложения не попадают куда нужно в nested menu и меню IceWM/... то я провел большую работу по подбору нужных категорий и написал патч-генератор для репокопа. Уважаемые коллеги! Хочу провести mass NMU от репокопа с помощью нового патчгенератора, для чего официально подаю заявку в devel@. Замечу, что патч очень хорош, когда в апстриме уже есть desktop файл, но в ситуации, когда desktop файл создается в спеке или есть в исходниках, выглядит тяжеловесно, но корректно работает. В особом случае stk (надо было точку с запятой вместо запятой) патч выглядит просто эпично и поднимает настроение: @@ -120,6 +121,12 @@ Type=Application Categories=AudioVideo,Sequencer; EOF +desktop-file-install --dir %buildroot%_desktopdir \ + --add-category=AudioVideo \ + --add-category=Sequencer \ + --add-category=Audio \ + --remove-category=AudioVideo,Sequencer \ + %buildroot%_desktopdir/stk.desktop Тем не менее, патч вполне корректный, и стоит его наложить сейчас (чтобы появилась функциональность) а красоту в спеке можно навести и позже. Если же кто хочет красоту сразу, прошу вносить изменения самим заранее, минздрав уже три года как предупреджал. Список пакетов, попадающих под nmu с категориями. --------------------------------- <имена бинарных пакетов> 191 шт. aeskulap aiksaurus-gtk airsnort almanah ananas ario arista artha AutoScan avahi-ui avant-window-navigator axkb bouml cairo-clock cairo-compmgr cairo-dock canorus cdcollect cfdg-fe checkgmail cheese chmsee cog coriander cube3d cutecom dangerdeep deluge devhelp dia dreampie drpython drwright dvdisaster eagleeye edgar epiphany etherape exe exfalso faces-xface fatrat fbreader flpsed fmit foobnix fvkbd gcompris gconf-editor gdb gitg gjots2 gksu glsof gmerlin-alsamixer gmerlin-camelot gmerlin-player gmerlin-recorder gmerlin-transcoder gmerlin-visualizer gnochm gnome-alsamixer gnome-applets-extra-hamster gnome-disk-utility gnome-media-gmix gnome-phone-manager gnomeradio gnome-screenshot gnome-terminal gorilla gpodder gpsim gquilt gresistor gringotts gsopcast gtkevemon gtknetcat gtkperf gtkpod guake gucharmap guvcview gwine gxneur hot-babe hotssh hugin hydrogen imule jamin jokosher keepassx kflickr kicad kino kodos krb5-ticket-watcher kuzya lcdtest lekhonee lekhonee-gnome libreoffice lightlang linscope linuxdcpp logjam lxde-lxterminal lyx mana meld miniAudicle-common monkey-bubble moto4lin muine multover mures mytetra ncmpc netherearth netwag nicotine-plus notecase nted nxclient oneko padevchooser paman patchage pavumeter pipenightdreams ponyprog2000 puddletag putty pybookreader PythonCAD qalculate-gtk qcad qdvdauthor qgis qgmailnotifier qmpdclient qsopcast qstardict qt3-assistant qt4-assistant qtemu qtm qtrainer qvkeyboard rakarrack-data remmina revelation rhythmbox rpminstall sakura seahorse setools-gui skype-call-recorder smile soundconverter sound-juicer sqliteman stk synaptic-usermode synce-kpm terminatorx termit Thunar tigervnc tilda tkffmpeg tomboy treeline trustme tuxguitar tuxpaint-config tuxtype varkon wally wavesurfer webhttrack wmsystray wmxmms wxdialer wxlua wxstedit xmms-cyr-setup xosview xpad xtrlock -- Dr. Igor Vlasenko -------------------- Topology Department Institute of Math Kiev, Ukraine
next reply other threads:[~2011-05-16 12:37 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-05-16 12:37 Igor Vlasenko [this message] 2011-05-16 13:08 ` Slava Semushin 2011-05-16 19:15 ` Igor Vlasenko 2011-05-16 19:22 ` Sergey Shilov 2011-05-16 20:14 ` Igor Vlasenko 2011-05-16 20:29 ` Sergey Shilov 2011-05-16 20:38 ` Igor Vlasenko 2011-05-22 19:54 ` Igor Vlasenko 2011-05-22 20:38 ` Alexey Shabalin 2011-05-23 10:44 ` Michael Shigorin 2011-05-23 10:50 ` REAL 2011-05-26 17:51 ` Igor Vlasenko 2011-05-26 18:06 ` Yuri N. Sedunov 2011-05-27 13:52 ` Igor Vlasenko 2011-05-27 10:22 ` Lenar Shakirov 2011-05-27 13:56 ` Igor Vlasenko 2011-05-30 8:51 ` Андрей Черепанов 2011-05-27 10:48 ` Sergey V Turchin 2011-05-27 13:52 ` Igor Vlasenko 2011-06-03 19:38 ` Igor Vlasenko 2011-06-03 22:25 ` Dmitry V. Levin 2011-06-06 18:49 ` Igor Vlasenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110516123709.GA8480@dad.imath.kiev.ua \ --to=vlasenko@imath.kiev.ua \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git