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

Atri badshah400 at aim.com
Thu Dec 9 05:29:40 CET 2010


Hi!

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
----------------------------------------------------------

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, and bye

-- 
Atri



More information about the texworks mailing list