Re: Let's add more DESKTOP_ENTRIES to our ports
* Anonymous (swel...@gmail.com) wrote: Don't you need to run update-desktop-database during post-install? It's not like using DESKTOPDIR or DESKTOP_ENTRIES adds appropriate @exec/@unexec in plist for you. Yes I had that in mind. That may be done automatically for DESKTOP_ENTRIES, and for software-installed .desktop files we may introduce something like INSTALLS_DESKTOP=yes (anologue to INSTALLS_ICONS). Am I right that update-desktop-database just updates an index of .desktop files which menu applicatino should monitor with gamin/fam so they're updated on the fly? I've tried to run it once, but at least xfce4-menu which I use for testing was not updated. - Change icon path (some ports install icons into ${DATADIR}, I think such ports should be fixed to install icons into share/pixmaps. Is there a good reason to duplicate some files there? some (this likely only applies to games) have graphic sprites useable as icons, for others just list leave = no icon. Can I use icons from dependency ports for ports that don't have icons themselves, e.g. icons from audio/xmms2 for audio/gx2osd? share/pixmaps/xmms2-128.png share/pixmaps/xmms2-16.png share/pixmaps/xmms2-32.png share/pixmaps/xmms2-48.png share/pixmaps/xmms2-black-on-white.svg share/pixmaps/xmms2-white-on-black.svg share/pixmaps/xmms2.svg Hm, interesting one. If there's run-dependency on port with these icons I believe yes, you can. If there is only build dependency, you can just copy an icon in post-install (actually you can copy in in the first case too, just to be sure). -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amd...@amdmi3.ru ..: jabber: amd...@jabber.ruhttp://www.amdmi3.ru ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Let's add more DESKTOP_ENTRIES to our ports
On Wed, 19 Aug 2009 19:34:05 +0400, Dmitry Marakasov wrote I'd like to receive patch review and feedback. Also, I don't really understand what StartupNotification really is (true/false in the end of DESKTOP_ENTRY) and how to determine which is suitable for this or that port - could anyone explain? StartupNotification is telling the desktop env, that an app whose launcher was clicked by user, is currently being started up, but not ready yet, there is no window yet or so, so the desktop env could report back to the user. See here: http://library.gnome.org/devel/integration-guide/stable/startup- notification.html.en http://standards.freedesktop.org/startup-notification-spec/startup- notification-latest.txt -- Piotr Smyrak piotr.smy...@heron.pl ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Let's add more DESKTOP_ENTRIES to our ports
On 19/08/2009, Dmitry Marakasov amd...@amdmi3.ru wrote: Here's the list of ports that depend on libX11 (based on INDEX-8) and do not either have DESKTOP_ENTRIES in Makefile or share/applications/*.desktop in pkg-plist: http://people.freebsd.org/~amdmi3/desktop-needed.txt Should interactive console applications have desktop entries? For example we have console games (e.g. games/tornado), interpreters, shells; there's also irc/irssi, www/elinks and similar. How do others (e.g. pkgsrc, debian/ubuntu) handle this? ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Let's add more DESKTOP_ENTRIES to our ports
Dmitry Marakasov amd...@amdmi3.ru writes: To make adding DESKTOP_ENTRIES simple and fun, here's a script called de which outputs a template for desktop entry when run from port's directory: --- de begins here --- #!/bin/sh echo DESKTOP_ENTRIES=\`make -V PORTNAME`\ \\ echo \`make -V COMMENT`\ \\ echo \\${DATADIR}/\ \\ echo \`make -V PORTNAME`\ \\ echo \`make -V CATEGORIES | tr ' ' ';' | sed 's|$|;|' | sed 's|games|game|'`\ \\ echo false --- de ends here --- Don't you need to run update-desktop-database during post-install? It's not like using DESKTOPDIR or DESKTOP_ENTRIES adds appropriate @exec/@unexec in plist for you. if you use vim, just type !!de while editing port's makefile, and it'll add template for you, which will require only a little editing: - change app name in the first line for proper spacing and case (i.e. brainworkshop - Brain Workshop) - possibly simplify description in the second line (while leaving it equal to COMMENT is generally good enough) - Change icon path (some ports install icons into ${DATADIR}, I think such ports should be fixed to install icons into share/pixmaps. some (this likely only applies to games) have graphic sprites useable as icons, for others just list leave = no icon. Can I use icons from dependency ports for ports that don't have icons themselves, e.g. icons from audio/xmms2 for audio/gx2osd? share/pixmaps/xmms2-128.png share/pixmaps/xmms2-16.png share/pixmaps/xmms2-32.png share/pixmaps/xmms2-48.png share/pixmaps/xmms2-black-on-white.svg share/pixmaps/xmms2-white-on-black.svg share/pixmaps/xmms2.svg DESKTOP_ENTRIES=gx2osd \ On-screen display of current playing song for XMMS2 \ xmms2 \ gx2osd \ Audio;Player; \ false - Fix categories. Full list here: http://standards.freedesktop.org/menu-spec/latest/apa.html ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Let's add more DESKTOP_ENTRIES to our ports
Hi! There have been much effort in improving ports collection lately (MAKE_JOBS, custom PREFIX/LOCALBASE support and many more) and I'd like to suggest another one. While many of us prefer functional and lightweight window managers and terminals to fancy desktop environements, number of users who use FreeBSD as a desktop certainly grows. Taking that into account, is a shame that most of ports for GUI applications do not install .desktop files - thus they don't appear in users' start menus. I think we should improve this situation. Here's the list of ports that depend on libX11 (based on INDEX-8) and do not either have DESKTOP_ENTRIES in Makefile or share/applications/*.desktop in pkg-plist: http://people.freebsd.org/~amdmi3/desktop-needed.txt That is as many as 6201 ports, and that's 88% of our 7007 ports that depend on libX11 :/ There are many false positives though (that is, ports that do not install binaries; ports that use libX11 but are not really GUI programs; ports that do not require menu entry (such as window managers, desktop managers etc.), but I'm pretty sure all ports that require attention are there. Starting from my ports, here's a patch which adds 21 desktop entries for some of games maintainer by me: http://people.freebsd.org/~amdmi3/desktop.patch There will be many more, but here it is now for review and for use as an exaple (if I'm not doin' it wrong, of course). To make adding DESKTOP_ENTRIES simple and fun, here's a script called de which outputs a template for desktop entry when run from port's directory: --- de begins here --- #!/bin/sh echo DESKTOP_ENTRIES=\`make -V PORTNAME`\ \\ echo \`make -V COMMENT`\ \\ echo \\${DATADIR}/\ \\ echo \`make -V PORTNAME`\ \\ echo \`make -V CATEGORIES | tr ' ' ';' | sed 's|$|;|' | sed 's|games|game|'`\ \\ echo false --- de ends here --- if you use vim, just type !!de while editing port's makefile, and it'll add template for you, which will require only a little editing: - change app name in the first line for proper spacing and case (i.e. brainworkshop - Brain Workshop) - possibly simplify description in the second line (while leaving it equal to COMMENT is generally good enough) - Change icon path (some ports install icons into ${DATADIR}, some (this likely only applies to games) have graphic sprites useable as icons, for others just list leave = no icon. - Fix categories. Full list here: http://standards.freedesktop.org/menu-spec/latest/apa.html I'd like to receive patch review and feedback. Also, I don't really understand what StartupNotification really is (true/false in the end of DESKTOP_ENTRY) and how to determine which is suitable for this or that port - could anyone explain? -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amd...@amdmi3.ru ..: jabber: amd...@jabber.ruhttp://www.amdmi3.ru ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Let's add more DESKTOP_ENTRIES to our ports
On Wed, 19 Aug 2009 19:34:05 +0400, Dmitry Marakasov wrote: I'd like to receive patch review and feedback. Also, I don't really understand what StartupNotification really is (true/false in the end of DESKTOP_ENTRY) and how to determine which is suitable for this or that port - could anyone explain? If StartupNotification is true KDE will change cursor when starting application, e.g. adding apps icon near cursor (I believe other DE have something similar). It can be globally disabled in kde settings anytime. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Let's add more DESKTOP_ENTRIES to our ports
* Max Brazhnikov (m...@issp.ac.ru) wrote: I'd like to receive patch review and feedback. Also, I don't really understand what StartupNotification really is (true/false in the end of DESKTOP_ENTRY) and how to determine which is suitable for this or that port - could anyone explain? If StartupNotification is true KDE will change cursor when starting application, e.g. adding apps icon near cursor (I believe other DE have something similar). It can be globally disabled in kde settings anytime. According to http://standards.freedesktop.org/desktop-entry-spec/1.1/ar01s05.html it's something more complicated: ``If true, it is KNOWN that the application will send a remove message when started with the DESKTOP_STARTUP_ID environment variable set. If false, it is KNOWN that the application does not work with startup notification at all (does not shown any window, breaks even when using StartupWMClass, etc.). If absent, a reasonable handling is up to implementations (assuming false, using StartupWMClass, etc.).'' and I assume it requires some support from the application. Actually it looks like this shouldn't be mandatory in DESKTOP_ENTRIES. -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amd...@amdmi3.ru ..: jabber: amd...@jabber.ruhttp://www.amdmi3.ru ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org