@shellex说: 对对,他们上辈子都是折翼的新奥尔良鸡翅

Pages

Topics

随便看看

路边社评论员

  • Keith:
    还能用不. »
  • deepblue:
    测试一下浏览器和系统 »
  • abettor:
    “就和CPU特权级别一样”——这的哥难道是Linus的表弟?! »
  • 董英男:
    为什么总提示确认是相册首页呢 到底哪个才是相册首页啊 »
  • kendisk:
    作为一个轻度Linuxer,刚分手后,感觉木有鸭梨。 »
  • MS IE:
    THIS SITE REALLY SUCK! »
  • Alex:
    gnome-women... »
  • liangsuilong:
    GNOME 自己也有鼓励女性参与项目的计划啊.. »
  • infinte:
    对不起,你的“解ban”版本算得有点问题,可以下(9)pp4 测试。ACID3可有95分啊……另外同... »
  • Alex:
    »
  • Randee Saadat:
    Glad you solved your problem, but what is your que... »
  • LinuxRock:
    没想到你也有一台和我一样的破机子......还好现在高三没怎么用,受不了它的发热量.. »

在Gnome-panel上监视MLDonkey动向

gnome

那天偶抄袭了骨头兄的脚本,还逼迫骨头把自己的所有shell alias全部交出来,还是挺有价值的。

偶不大喜欢用conky的,但是又想监视着mldonkey有没有乖乖的,怎么办呢。

嗯,话说那天抄袭完后,骨头问我要不要写了一个Gnome-panel的Applet。我问干嘛用的呢?监视mldonkey。哦呵呵,那不错。

screenshot1

project home: http://code.google.com/p/mlmonitor/

谢谢观赏。

  1. On March 19, 2009 at 9:27 pm
    Iven: Mozilla 1.9.0.7 / Linux

    观摩一下,看看applet怎么写……

  2. On March 20, 2009 at 8:26 am
    bones7456: Mozilla Firefox 3.0.7 / Gentoo Linux

    恩,像模像样了,:)

  3. On March 20, 2009 at 8:57 am
    shellex: Mozilla Firefox 3.0.7 / Linux

    @bones7456,
    呵呵~骨头写安装脚本

  4. On March 20, 2009 at 8:57 am
    shellex: Mozilla Firefox 3.0.7 / Linux

    @Iven,
    嗯。这个东东代码不多。容易看懂

  5. On March 24, 2009 at 12:08 am
    andrew: Mozilla 1.9.0.7 / Linux

    在bones那先回复了下,直接cp过来吧…

    3.

    装了一下,发现不大适用于我的情况….

    问题1: 我的mldonkey是装在一块网络硬盘上的,不是本机;
    问题2: 我的mldonkey是设置的有密码的。

    我是不懂python的,打开源代码看了下,把

    self.ml_host = ” 改成了我的网络硬盘的IP,试了下没啥效果。

    看连接是用的下面语句

    self.s.connect((self.ml_host, self.ml_port))

    不懂python,也不知道怎么加用户名和口令。

  6. On March 24, 2009 at 12:32 am
    andrew: Mozilla 1.9.0.7 / Linux

    在mlmonitor.py

    中加了一句试了下,至少能显示某些信息了,虽然不是我想要的…

    def update_applet(self):
    if not self.commander.is_connected:
    return True
    lines = []
    self.commander.execute(‘auth admin pw’);
    str = self.commander.execute(‘vd’);

    self.commander.execute(‘auth admin pw’);是我自己加的,pw换成我自己的真正密码,不懂python,瞎看了下,感觉加这么一句应该有用,就是不知道应该加哪。

    希望ShlleX兄的这个工具能越做越好。

  7. On March 24, 2009 at 2:57 pm
    shellex: Mozilla Firefox 3.0.7 / Linux

    @andrew,
    呵呵,语句对了,位置不对。
    应该放到mlcommander的connect2server函数return以前
    没关系,偶不久就加入对验证的支持。

  8. On April 5, 2009 at 12:22 am
    白痴一个: Mozilla Firefox 3.0.8 / Ubuntu Linux

    为什么效果不一样呢?难道是因为u9.04的新通知??

Trackbacks

  1. 在Gnome-panel上监视MLDonkey动向 | Linux桌面中文网

Leave a Reply