X2Go Bug report logs - #689
[X2Go-Dev] Deps on notify-python

version graph

Package: pyhoca-gui; Maintainer for pyhoca-gui is X2Go Developers <x2go-dev@lists.x2go.org>; Source for pyhoca-gui is src:pyhoca-gui.

Reported by: Orion Poplawski <orion@cora.nwra.com>

Date: Thu, 4 Dec 2014 15:50:02 UTC

Severity: normal

Tags: pending

Fixed in version 0.5.0.5

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#689: [X2Go-Dev] Deps on notify-python
Reply-To: Orion Poplawski <orion@cora.nwra.com>, 689@bugs.x2go.org
Resent-From: Orion Poplawski <orion@cora.nwra.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 04 Dec 2014 15:50:02 +0000
Resent-Message-ID: <handler.689.B.141770819818986@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 689
X-X2Go-PR-Package: pyhoca-gui
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.141770819818986
          (code B); Thu, 04 Dec 2014 15:50:02 +0000
Received: (at submit) by bugs.x2go.org; 4 Dec 2014 15:49:58 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID,
	URIBL_BLOCKED autolearn=ham version=3.3.2
Received: from mail.cora.nwra.com (mercury.cora.nwra.com [4.28.99.165])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id E37625E0DD
	for <submit@bugs.x2go.org>; Thu,  4 Dec 2014 16:49:54 +0100 (CET)
Received: from pacas.cora.nwra.com (209-180-240-141.hlrn.qwest.net [209.180.240.141])
	(authenticated bits=0)
	by mail.cora.nwra.com (8.14.4/8.14.4) with ESMTP id sB4Fnn2l006429
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 4 Dec 2014 08:49:52 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cora.nwra.com;
	s=default; t=1417708192;
	bh=+wZQ7NcxSVCr9KdOf7BvJh0YKMdF/jR71qblrpWZhVE=;
	h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References:
	 In-Reply-To:Content-Type:Content-Transfer-Encoding;
	b=r7MKsssujgICK272uPKn3ATOZ2eKTcfLs+Pd7wnmpf59JfsxZ0PTFfcSstA2+MCmy
	 N2dCycshf4VDEP6YVZUK11hdLq2Q3mDr20e7LBr2azWYoe/be8JUzf+z+N2lbruWGS
	 sAuhcfrMpWD6ra6AS8EXz9Dakl4L+PvMyPoRAUXk=
Message-ID: <5480829D.9060205@cora.nwra.com>
Date: Thu, 04 Dec 2014 08:49:49 -0700
From: Orion Poplawski <orion@cora.nwra.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version: 1.0
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
CC: submit@bugs.x2go.org
References: <20140822211915.Horde.cNioShdaezzfWJX5bnSkIA1@mail.das-netzwerkteam.de> <53F7B5E0.3040308@cora.nwra.com> <20140822213819.Horde.PBIO3SUe8bAgfslQGN8kjw9@mail.das-netzwerkteam.de>
In-Reply-To: <20140822213819.Horde.PBIO3SUe8bAgfslQGN8kjw9@mail.das-netzwerkteam.de>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Package: pyhoca-gui

>>>> I see that pyhoca-cli and pyhoca-gui are configured to require
>>>> notify-python.  However, it doesn't look like pyhoca-cli uses it.

Looks like the modern way is using gobject  (pygobject2 or pygobject3 in 
RHEL7).  See 
https://wiki.archlinux.org/index.php/Desktop_notifications#Usage_in_programming

Python

    Dependencies: libnotify, python-gobject (or python2-gobject for 
Python 2)

hello_world.py

#!/usr/bin/python
from gi.repository import Notify
Notify.init ("Hello world")
Hello=Notify.Notification.new ("Hello world","This is an example 
notification.","dialog-information")
Hello.show ()


It would be good to get this updated.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion@nwra.com
Boulder, CO 80301                   http://www.nwra.com

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Tue Apr 23 11:49:54 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.