View Issue Details

IDProjectCategoryView StatusLast Update
0010486ScribusBuild Systempublic2012-01-15 20:51
Reportersharkcz Assigned Tocbradney  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.4.0 
Fixed in Version1.4.1.svn 
Summary0010486: profiles should be installed in SHAREDDIR
Descriptionprofiles are architecture independent files and as such they should be installed in SHAREDDIR (/usr/share/scribus/ on unix) instead of LIBDIR
TagsNo tags attached.
Patch

Relationships

related to 0010485 closedcbradney swatches should be installed in SHAREDDIR 

Activities

sharkcz

2012-01-03 17:41

reporter  

scribus-1.4.0-profiles.patch (1,419 bytes)   
From 38694e19e0c8015a58b71f9b97f551ec0fd14b9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
Date: Mon, 2 Jan 2012 14:34:41 +0100
Subject: [PATCH] install profiles into datadir instead of libdir

profiles are architecture independent data files and per FHS they should be
installed into datadir (/usr/share/...)
---
 Scribus/scribus/profiles/CMakeLists.txt |    2 +-
 Scribus/scribus/scribuscore.cpp         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Scribus/scribus/profiles/CMakeLists.txt b/Scribus/scribus/profiles/CMakeLists.txt
index e53b253..3fe9614 100644
--- a/Scribus/scribus/profiles/CMakeLists.txt
+++ b/Scribus/scribus/profiles/CMakeLists.txt
@@ -8,5 +8,5 @@ GenericCMYK.txt
 Readme
 sRGB.icm
 srgb.license
-  DESTINATION ${LIBDIR}profiles
+  DESTINATION ${SHAREDIR}profiles
 )
diff --git a/Scribus/scribus/scribuscore.cpp b/Scribus/scribus/scribuscore.cpp
index 83fbb65..8d14abd 100644
--- a/Scribus/scribus/scribuscore.cpp
+++ b/Scribus/scribus/scribuscore.cpp
@@ -332,7 +332,7 @@ void ScribusCore::getCMSProfiles(bool showInfo)
 	PrinterProfiles.clear();
 	InputProfiles.clear();
 	InputProfilesCMYK.clear();
-	QString pfad = ScPaths::instance().libDir();
+	QString pfad = ScPaths::instance().shareDir();
 	pfad += "profiles/";
 	profDirs = ScPaths::getSystemProfilesDirs();
 	profDirs.prepend( prefsManager->appPrefs.ProfileDir );
-- 
1.7.4.4

scribus-1.4.0-profiles.patch (1,419 bytes)   

Issue History

Date Modified Username Field Change
2012-01-03 17:41 sharkcz New Issue
2012-01-03 17:41 sharkcz File Added: scribus-1.4.0-profiles.patch
2012-01-03 21:52 cbradney Relationship added related to 0010485
2012-01-03 21:53 cbradney Status new => resolved
2012-01-03 21:53 cbradney Fixed in Version => 1.4.1.svn
2012-01-03 21:53 cbradney Resolution open => fixed
2012-01-03 21:53 cbradney Assigned To => cbradney
2012-01-15 20:51 cbradney Status resolved => closed