View | Details | Raw Unified | Return to bug 234001 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +2 lines)
Lines 3-10 Link Here
3
3
4
PORTNAME=	focuswriter
4
PORTNAME=	focuswriter
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	1.6.16
6
DISTVERSION=	1.7.0
7
PORTREVISION=	1
8
CATEGORIES=	editors
7
CATEGORIES=	editors
9
8
10
MAINTAINER=	lightside@gmx.com
9
MAINTAINER=	lightside@gmx.com
Lines 17-23 Link Here
17
16
18
LIB_DEPENDS=	libhunspell-1.6.so:textproc/hunspell
17
LIB_DEPENDS=	libhunspell-1.6.so:textproc/hunspell
19
18
20
USES=		compiler:c++11-lib desktop-file-utils pkgconfig qmake qt:5
19
USES=		compiler:c++11-lib desktop-file-utils gl pkgconfig qmake qt:5
21
USE_GITHUB=	yes
20
USE_GITHUB=	yes
22
GH_ACCOUNT=	gottcode
21
GH_ACCOUNT=	gottcode
23
USE_GL=		gl
22
USE_GL=		gl
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1535991368
1
TIMESTAMP = 1544553725
2
SHA256 (gottcode-focuswriter-v1.6.16_GH0.tar.gz) = a413363c8de76bfb112450ef30fec5b7b13ab78d565eba0eb8344536a9738396
2
SHA256 (gottcode-focuswriter-v1.7.0_GH0.tar.gz) = b6221598eee1ca375c8d4ec7901d73a5ee7a9e39d4df0f1d36dfb80e74962f10
3
SIZE (gottcode-focuswriter-v1.6.16_GH0.tar.gz) = 10497184
3
SIZE (gottcode-focuswriter-v1.7.0_GH0.tar.gz) = 10501746
(-)files/patch-src_qtsingleapplication_qtlocalpeer.cpp (+24 lines)
Line 0 Link Here
1
# Some workaround after v1.7.0 update, because previous (1.6.16) version of
2
# focuswriter application may create empty /tmp/qtsingleapp-*-lockfile file
3
# after first run, which may prevent newer application to run.
4
5
--- src/qtsingleapplication/qtlocalpeer.cpp.orig	2018-12-11 18:42:05 UTC
6
+++ src/qtsingleapplication/qtlocalpeer.cpp
7
@@ -95,6 +95,17 @@ QtLocalPeer::QtLocalPeer(QObject* parent
8
     QString lockName = QDir(QDir::tempPath()).absolutePath()
9
                        + QLatin1Char('/') + socketName
10
                        + QLatin1String("-lockfile");
11
+#if defined(Q_OS_UNIX)
12
+{
13
+    QFile file(lockName);
14
+    if (file.exists() && file.open(QIODevice::ReadOnly)) {
15
+        bool isEmpty = (file.size() == 0);
16
+        file.close();
17
+        if (isEmpty)
18
+            QFile::remove(lockName);
19
+    }
20
+}
21
+#endif
22
     lockFile = new QLockFile(lockName);
23
     lockFile->setStaleLockTime(0);
24
 #if defined(Q_OS_WIN)

Return to bug 234001