mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	avoid DBus related crash on Ubuntu #954
An undocumented feature of Net::DBus->session() is that it returns the same connection object it creates the first time it's called for all subsequent calls. Somehow this exposes us to a bug where unref() is called on that object too many times, causing a segfault. Undefining the cached object after we've used it once avoids this.
This commit is contained in:
		
							parent
							
								
									18280da1b3
								
							
						
					
					
						commit
						599d76b70b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -413,6 +413,7 @@ sub notify { | |||
|             my $notifier = $serv->get_object('/org/freedesktop/Notifications', | ||||
|                                              'org.freedesktop.Notifications'); | ||||
|             $notifier->Notify('Slic3r', 0, $self->{icon}, $title, $message, [], {}, -1); | ||||
|             undef $Net::DBus::bus_session; | ||||
|         } | ||||
|     }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mike Sheldrake
						Mike Sheldrake