wmii dev version + ruby-wmii : resize/WMII_ADDRESS/etc.

Jan 发表于 2008-04-06 22:01:45

wmii is cool since it's configurable with *ANY* language. As a rubist I use ruby-wmii by Mauricio (who is well known as mfp).

One problem is you can't assign shortcuts to resize a window in the latest wmii release. I asked for this in wmii's mailing list and luckily Kris, the author of wmii, quickly replied and implemented this. It's great, but the new problem is I found that WMII_ADDRESS, a environment variable, which will be set when wmii start in latestest stable release, does no longer exist in development version. And ruby-wmii will ask for it when wmii starts, so in one sentence, wmii version 'hg2307+' won't work with ruby-wmii.

Have no time to dig more, just create a quick patch to fix this:

around line#96 In cmd/wmii/main.c

Original:

    if(address)
        setenv("WMII_ADDRESS", address, true);
    else
        address = smprint("unix!%s/wmii", ns_path);

To:

    if(!address)
        address = smprint("unix!%s/wmii", ns_path);

    setenv("WMII_ADDRESS", address, true);

May post a better solution later.
关键词(Tag): window wmii resize wmii_address

曾经的这一天...


收藏: QQ书签 del.icio.us 订阅: Google 抓虾

最新评论

发表评论

* 昵称

已经注册过? 请登录

新用户请先注册 以便能显示头像及追踪评论回复

Email
网址
* 评论
表情
 
 

分类小组论坛
杂谈, 娱乐、八卦, 文学、艺术, 体育, 旅游、同城, 象牙塔, 情感, 时尚、生活, 星座, 科技

请注意遵守中华人民共和国法律法规, 如威胁到本站生存, 将依法向有关部门报告, 同时本站的相关记录可能成为对您不利的证据.

相关法律法规
全国人大常委会关于维护互联网安全的决定
中华人民共和国计算机信息系统安全保护条例
中华人民共和国计算机信息网络国际联网管理暂行规定
计算机信息网络国际联网安全保护管理办法
计算机信息系统国际联网保密管理规定