• cinnamon桌面安装在其他目录下


    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
    
  • 相关阅读:
    计算十位数以内的数的反数
    用Python做一个简单的小游戏
    Python的发展历史及其前景
    监控相关总结
    前端css学习_Day15
    常用命令总结
    mysql常用命令总结
    Python之Paramiko、前端之html学习_Day14
    Python操作redis、memcache和ORM框架_Day13
    Python连接msyql、redis学习_Day12
  • 原文地址:https://www.cnblogs.com/eaglexmw/p/4694584.html
Copyright © 2020-2023  润新知