[texworks] PAtch for .desktop file and building texworks Rev720 with libqt4 < 4.7

Stefan Löffler st.loeffler at gmail.com
Thu Dec 9 08:01:24 CET 2010


Hi,

On 2010-12-09 05:29, Atri wrote:
> With the latest svn revision, building texworks from source fails unless
> libqt4 version 4.7 is used. With libqt4 versions 4.6.x and 4.5.2+, I
> keep getting errors like the following while building
>
> ----------------------------------------------------------
> src/TeXDocument.cpp: In member function 'void
> TeXDocument::reloadIfChangedOnDisk()':
> src/TeXDocument.cpp:1129:44: error: 'class QDateTime' has no member
> named 'msecsTo'
> src/TeXDocument.cpp:1133:41: error: 'class QDateTime' has no member
> named 'msecsTo'
> make: *** [obj/TeXDocument.o] Error 1
> ----------------------------------------------------------

Thanks for noticing. This is fixed in r721. For some reason, the Qt 4.7
documentation doesn't specify the msecsTo function as new...

> Also, I use a patch to fix little complaints in the .desktop file
> reported by RPMLint when it looks for problems with a built rpm package.
> This patch removes the first shebang line from the .desktop file and
> completes the Categories definition in it. Here's the patch
>
> ----------------------------------------------------------
> diff -ur texworks-0.2.99svn702.orig//texworks.desktop
> texworks-0.2.99svn702//texworks.desktop
> --- texworks-0.2.99svn702.orig//texworks.desktop	2010-12-04
> 04:10:09.000000000 +0530
> +++ texworks-0.2.99svn702//texworks.desktop	2010-12-04
> 06:25:09.694082023 +0530
> @@ -1,4 +1,3 @@
> -#!/usr/bin/env xdg-open
>  [Desktop Entry]
>  Type=Application
>  Version=1.0
> @@ -10,6 +9,5 @@
>  Comment[de]=TeX Dokumente einfach bearbeiten, setzen und betrachten
>  Icon=TeXworks
>  Exec=texworks %F
> -MimeType=text/x-tex;application/pdf;
> -Categories=Office;
> -
> +MimeType=text/x-tex;
> +Categories=Office;WordProcessor;
>
> ----------------------------------------------------------

Thanks for the patch. I'm still not too sure about how to apply this,
though.
Could you send the RPMLint complaints?
I seem to remember that Debian lintian complained if there was no
shebang in the file.
Also, Tw does handle pdfs, so the pdf mimetype should be in there, IMO.
And regarding the Categories, I wouldn't classify Tw as a WordProcessor
(assuming this is interpreted as a "real" word processor, WYSIWYG-like,
such as OpenOffice.org Writer). That's why I didn't put it in that
category - but maybe my interpretation of the WordProcessor category is
wrong...

Cheers,
Stefan


More information about the texworks mailing list