Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2016 20:52:51 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429825 - in head/devel/libqtxdg: . files
Message-ID:  <201612282052.uBSKqpKp099093@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olivierd
Date: Wed Dec 28 20:52:51 2016
New Revision: 429825
URL: https://svnweb.freebsd.org/changeset/ports/429825

Log:
  - Add patch, which allows to use real path (instead of symlink) in XDG user
  directories
  - Bump PORTREVISION
  
  Submitted by:	Jesper Schmitz Mouridsen (private email)

Added:
  head/devel/libqtxdg/files/
  head/devel/libqtxdg/files/patch-qtxdg_xdgdirs.cpp   (contents, props changed)
Modified:
  head/devel/libqtxdg/Makefile

Modified: head/devel/libqtxdg/Makefile
==============================================================================
--- head/devel/libqtxdg/Makefile	Wed Dec 28 20:33:04 2016	(r429824)
+++ head/devel/libqtxdg/Makefile	Wed Dec 28 20:52:51 2016	(r429825)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libqtxdg
 PORTVERSION=	2.0.0
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	LXQT/${PORTNAME}
 

Added: head/devel/libqtxdg/files/patch-qtxdg_xdgdirs.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libqtxdg/files/patch-qtxdg_xdgdirs.cpp	Wed Dec 28 20:52:51 2016	(r429825)
@@ -0,0 +1,15 @@
+--- qtxdg/xdgdirs.cpp.orig	2016-09-17 12:06:08 UTC
++++ qtxdg/xdgdirs.cpp
+@@ -178,9 +178,11 @@ bool XdgDirs::setUserDir(XdgDirs::UserDi
+     if (dir < XdgDirs::Desktop || dir > XdgDirs::Videos)
+         return false;
+ 
++    const QString home = QFile::decodeName(qgetenv("HOME"));
+     if (!(value.startsWith(QLatin1String("$HOME"))
+                            || value.startsWith(QLatin1String("~/"))
+-                           || value.startsWith(QFile::decodeName(qgetenv("HOME")))))
++                           || value.startsWith(home)
++                           || value.startsWith(QDir(home).canonicalPath())))
+         return false;
+ 
+     QString folderName = userDirectoryString[dir];



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612282052.uBSKqpKp099093>