[Python-Dev] Minor: Unix icons for 2.5?
There's an open PEP-356 issue for update the icons to the newer shinier ones for Unix. As far as I can see, there's the 14x15 GIF images used for Idle and the documentation. Note that for me at least, idle comes up without an icon _anyway_. Are there any others I missed? Anthony -- Anthony Baxter [EMAIL PROTECTED] It's never too late to have a happy childhood. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Minor: Unix icons for 2.5?
Anthony Baxter wrote: There's an open PEP-356 issue for update the icons to the newer shinier ones for Unix. As far as I can see, there's the 14x15 GIF images used for Idle and the documentation. Note that for me at least, idle comes up without an icon _anyway_. Are there any others I missed? In case we add a Python .desktop file (as proposed in patch #1353344), we'll need some PNGs in /usr/share/icons. A patch for Makefile.pre.in is attached. Georg Index: Misc/python.desktop.in === --- Misc/python.desktop.in (Revision 0) +++ Misc/python.desktop.in (Revision 0) @@ -0,0 +1,14 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Python Programming Language +Name[sv]=Programspråket Python +Name[de]=Die Programmiersprache Python +Comment=Program in Python +Comment[sv]=Programmera med Python +Comment[de]=Programmieren in Python +Exec=python_VER_ %f +Terminal=true +Type=Application +Icon=pycon.png +Categories=Application;Development;ConsoleOnly +MimeType=text/x-python;application/x-python Index: Makefile.pre.in === --- Makefile.pre.in (Revision 47289) +++ Makefile.pre.in (Arbeitskopie) @@ -89,6 +89,8 @@ INCLUDEDIR=@includedir@ CONFINCLUDEDIR=$(exec_prefix)/include SCRIPTDIR= $(prefix)/lib +DESKTOPDIR= $(prefix)/share/applications +ICONDIR=$(prefix)/share/icons # Detailed destination directories BINLIBDEST=$(LIBDIR)/python$(VERSION) @@ -614,7 +616,7 @@ $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) # Install everything -install: @FRAMEWORKINSTALLFIRST@ altinstall bininstall maninstall @FRAMEWORKINSTALLLAST@ +install: @FRAMEWORKINSTALLFIRST@ altinstall bininstall maninstall desktopinstall @FRAMEWORKINSTALLLAST@ # Install almost everything without disturbing previous versions altinstall:@FRAMEWORKALTINSTALLFIRST@ altbininstall libinstall inclinstall libainstall \ @@ -687,6 +689,25 @@ $(INSTALL_DATA) $(srcdir)/Misc/python.man \ $(DESTDIR)$(MANDIR)/man1/python.1 +# Install the .desktop file and the icons +desktopinstall: + @for i in $(DESKTOPDIR) $(ICONDIR) $(ICONDIR)/hicolor $(ICONDIR)/hicolor/16x16 $(ICONDIR)/hicolor/32x32 $(ICONDIR)/hicolor/48x48; \ + do \ + if test ! -d $(DESTDIR)$$i; then \ + echo Creating directory $$i; \ + $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ + elsetrue; \ + fi; \ + done + sed 's/_VER_/$(VERSION)$(EXE)/' $(srcdir)/Misc/python.desktop.in $(srcdir)/Misc/python.desktop + $(INSTALL_DATA) $(srcdir)/Misc/python.desktop $(DESTDIR)$(DESKTOPDIR)/python.desktop + for i in 16x16 32x32 48x48; \ + do \ + $(INSTALL_DATA) $(srcdir)/Misc/py-$$i.png $(DESTDIR)$(ICONDIR)/hicolor/$$i/py.png; \ + $(INSTALL_DATA) $(srcdir)/Misc/pyc-$$i.png $(DESTDIR)$(ICONDIR)/hicolor/$$i/pyc.png; \ + $(INSTALL_DATA) $(srcdir)/Misc/pycon-$$i.png $(DESTDIR)$(ICONDIR)/hicolor/$$i/pycon.png; \ + done + # Install the library PLATDIR= plat-$(MACHDEP) EXTRAPLATDIR= @EXTRAPLATDIR@ @@ -1076,7 +1097,7 @@ # Declare targets that aren't real files .PHONY: all sharedmods oldsharedmods test quicktest memtest .PHONY: install altinstall oldsharedinstall bininstall altbininstall -.PHONY: maninstall libinstall inclinstall libainstall sharedinstall +.PHONY: maninstall libinstall inclinstall libainstall sharedinstall desktopinstall .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Minor: Unix icons for 2.5?
Anthony Baxter wrote: There's an open PEP-356 issue for update the icons to the newer shinier ones for Unix. As far as I can see, there's the 14x15 GIF images used for Idle and the documentation. Note that for me at least, idle comes up without an icon _anyway_. A pyfav.(gif|png) replacement would be quite welcome! On Tuesday 11 July 2006 13:25, Georg Brandl wrote: In case we add a Python .desktop file (as proposed in patch #1353344), we'll need some PNGs in /usr/share/icons. A patch for Makefile.pre.in is attached. I know the .desktop files have become fairly standard, but are these our responsibility or does that rest with the distributions/integrators? (I'm not objecting, but I'm not sure what the right thing really is since Python is an interpreter, not a desktop application.) -Fred -- Fred L. Drake, Jr. fdrake at acm.org ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Minor: Unix icons for 2.5?
Fred L. Drake, Jr. wrote: Anthony Baxter wrote: There's an open PEP-356 issue for update the icons to the newer shinier ones for Unix. As far as I can see, there's the 14x15 GIF images used for Idle and the documentation. Note that for me at least, idle comes up without an icon _anyway_. A pyfav.(gif|png) replacement would be quite welcome! On Tuesday 11 July 2006 13:25, Georg Brandl wrote: In case we add a Python .desktop file (as proposed in patch #1353344), we'll need some PNGs in /usr/share/icons. A patch for Makefile.pre.in is attached. I know the .desktop files have become fairly standard, but are these our responsibility or does that rest with the distributions/integrators? (I'm not objecting, but I'm not sure what the right thing really is since Python is an interpreter, not a desktop application.) I'm also not very sure, as I myself would never start python via a menu entry. But for newcomers, it could be as it is for Windows users: A menu entry that starts the interpreter in a terminal window, and maybe one for IDLE too. Georg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Minor: Unix icons for 2.5?
I know the .desktop files have become fairly standard, but are these our responsibility or does that rest with the distributions/integrators? (I'm not objecting, but I'm not sure what the right thing really is since Python is an interpreter, not a desktop application.) The same anal argument could of course be made for every piece of software. Is Emacs a desktop application or a lisp interpreter? Is vim a desktop app? Are games? There is no reason add yet another task to to multiple distributors/integrators (that they won't do) when the problem can be fixed at the source. -- mvh Björn ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Minor: Unix icons for 2.5?
Martin v. Löwis wrote: Georg Brandl wrote: In case we add a Python .desktop file (as proposed in patch #1353344), we'll need some PNGs in /usr/share/icons. A patch for Makefile.pre.in is attached. Independent of whether this should be done at all, I have a comment on the patch. Instead of invoking sed, I would use autoconf machinery here +Exec=python_VER_ %f This would become [EMAIL PROTECTED]@@EXEEXT@ %f + sed 's/_VER_/$(VERSION)$(EXE)/' $(srcdir)/Misc/python.desktop.in $(srcdir)/Misc/python.desktop This could go away, and configure should grow AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.desktop) Ah, thanks. I'm not very fit with autoconf magic. Georg ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com