码迷,mamicode.com
首页 > 其他好文 > 详细

cinnamon桌面安装在其他目录下

时间:2015-08-01 20:35:07      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

cinnamon桌面还不错,不过默认只能安装在/usr目录下

有很多脚本中写死了是/usr目录

编译时如下模块需要打补丁:

1.cinnamon中,需要执行

sed -i ‘s|usr/share|usr/local/cinnamon/share|g‘ src/st/st-background-effect.c

同时,这个模块在编译时并不需要将networkmanager链接进来(gir编译只需要在XDG_DATA_DIRS及LD_LIBRARY_PATH中指向networkmanager即可)

2.js目前需要打补丁

diff -Nur old/js/src/config/milestone.pl new/js/src/config/milestone.pl
--- old/js/src/config/milestone.pl	2013-11-19 19:42:43.000000000 +0000
+++ new/js/src/config/milestone.pl	2015-07-29 19:36:18.742811778 +0000
@@ -56,7 +56,7 @@
 #
 my $milestone = Moz::Milestone::getOfficialMilestone($MILESTONE_FILE);
 
-if (defined(@TEMPLATE_FILE)) {
+if (@TEMPLATE_FILE) {
   my $TFILE;
 
   foreach $TFILE (@TEMPLATE_FILE) {

 3.nemo需要打补丁(否则会没有翻译)

diff -Nur old/src/nemo-main.c new/src/nemo-main.c
--- old/src/nemo-main.c	2015-06-22 21:36:38.000000000 +0000
+++ new/src/nemo-main.c	2015-08-01 08:12:20.327115082 +0000
@@ -60,7 +60,7 @@
 {
 	gint retval;
 	NemoApplication *application;
-	
+
 #if defined (HAVE_MALLOPT) && defined(M_MMAP_THRESHOLD)
 	/* Nemo uses lots and lots of small and medium size allocations,
 	 * and then a few large ones for the desktop background. By default
@@ -85,7 +85,7 @@
 	}
 	
 	/* Initialize gettext support */
-	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+	bindtextdomain (GETTEXT_PACKAGE, DATADIR "/locale");
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 
Binary files old/src/.nemo-main.c.swp and new/src/.nemo-main.c.swp differ

 

cinnamon桌面安装在其他目录下

标签:

原文地址:http://www.cnblogs.com/eaglexmw/p/4694584.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!