Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-31 Thread Tony Morehen
Hans, I've uploaded gbAutoMount to the Software Farm.  It shows what you 
can do with Udisks2 and desktop notifications.



On 2017-08-31 12:43 PM, Hans Lehmann wrote:

Am 31.08.2017 um 16:40 schrieb Tony Morehen:
There were issues with dbus signals that were cleared up in the 
recent development release.


OK.
In the console is now:

/Main.UdisksDbusSignal_Signal.20: Adding:  sdb1//
//Main.UdisksDbusSignal_Signal.24: Removed:  sdb1/

The program in my DBUS project work as expected.Fine!

Now only the questions remain for me:

  * How do I link the project to a different GUI project?
  * How do I access the two results in the console from another program?

Best regards

Hans


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Tony Morehen

I thought some more about what you wrote and I tried:

1) Created a Main module and set it as the startup class.
2) Moved FMain's _new code (setting up signal handlers etc) to Sub 
Main() in module Main

3) Moved all other code into Main
4) deleted FMain and removed all components except gb.DBus and gb.base

Everything worked.  I have my daemon with a minimum of memory overhead.  
Brilliant!



On 2017-08-30 06:10 PM, Benoît Minisini wrote:

Le 31/08/2017 à 00:07, Tony Morehen a écrit :

It is indeed fixed.  Thanks Benoit!

BTW is there any way to add an event loop to a console app?  ie I 
want to use a console app as a daemon, responding to dbus signals.




There is always an event loop in Gambas programs. It starts as soon as 
the Main() function is finished.






--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Tony Morehen

It is indeed fixed.  Thanks Benoit!

BTW is there any way to add an event loop to a console app?  ie I want 
to use a console app as a daemon, responding to dbus signals.


On 2017-08-30 03:57 PM, Benoît Minisini via Gambas-user wrote:



 Message transféré 
Sujet : [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the 
first declared bus for signals

Date : Wed, 30 Aug 2017 19:57:34 GMT
De : bugtrac...@gambaswiki.org
Pour : tmore...@ajm-software.com, g4m...@gmail.com

http://gambaswiki.org/bugtracker/edit?object=BUG.1132=L21haW4-

Comment #4 by Benoît MINISINI:

It should really be fixes in commit 
https://gitlab.com/gambas/gambas/commit/4d9579f217036d570080b6175f67e7ac96a19470.





-- 


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Benoît Minisini via Gambas-user



 Message transféré 
Sujet : [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first 
declared bus for signals
Date : Wed, 30 Aug 2017 19:57:34 GMT
De : bugtrac...@gambaswiki.org
Pour : tmore...@ajm-software.com, g4m...@gmail.com

http://gambaswiki.org/bugtracker/edit?object=BUG.1132=L21haW4-

Comment #4 by Benoît MINISINI:

It should really be fixes in commit 
https://gitlab.com/gambas/gambas/commit/4d9579f217036d570080b6175f67e7ac96a19470.




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-30 Thread Tony Morehen
Sorry, it doesn't work for me.  In fact, my test program receives no 
signals at all.


I'm working off what at the time was the latest commit, 
a2183117ffd8448b10008f76e7dac6eecd01cc3d


I've attached the test program.  To use, just insert or remove a usb 
drive and watch the debug messages.


BTW I replaced /usr/lib/gambas3/gb.dbus.so.0.0.0 with the same file from 
my previous build and the test program received the signals ok.



On 2017-08-29 06:56 PM, Benoît Minisini via Gambas-user wrote:



 Message transféré 
Sujet : [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the 
first declared bus for signals

Date : Tue, 29 Aug 2017 22:56:25 GMT
De : bugtrac...@gambaswiki.org
Pour : tmore...@ajm-software.com, g4m...@gmail.com

http://gambaswiki.org/bugtracker/edit?object=BUG.1132=L21haW4-

Comment #3 by Benoît MINISINI:

It should have been fixed in commit 
https://gitlab.com/gambas/gambas/commit/a2183117ffd8448b10008f76e7dac6eecd01cc3d.


Can you confirm?

Benoît MINISINI changed the state of the bug to: Fixed.




-- 


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




dbussignals-0.0.1.tar.gz
Description: application/gzip
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first declared bus for signals

2017-08-29 Thread Benoît Minisini via Gambas-user



 Message transféré 
Sujet : [Gambas Bug Tracker] Bug #1132: Dbus will only monitor the first 
declared bus for signals
Date : Tue, 29 Aug 2017 22:56:25 GMT
De : bugtrac...@gambaswiki.org
Pour : tmore...@ajm-software.com, g4m...@gmail.com

http://gambaswiki.org/bugtracker/edit?object=BUG.1132=L21haW4-

Comment #3 by Benoît MINISINI:

It should have been fixed in commit 
https://gitlab.com/gambas/gambas/commit/a2183117ffd8448b10008f76e7dac6eecd01cc3d.

Can you confirm?

Benoît MINISINI changed the state of the bug to: Fixed.




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user