parent
d1a90085b7
commit
2616a9d4c1
|
@ -1,10 +1,13 @@
|
||||||
from debug import logger
|
from debug import logger
|
||||||
withMessagingMenu = False
|
withMessagingMenu = False
|
||||||
try:
|
try:
|
||||||
|
import gi
|
||||||
|
gi.require_version('MessagingMenu', '1.0')
|
||||||
from gi.repository import MessagingMenu
|
from gi.repository import MessagingMenu
|
||||||
|
gi.require_version('Notify', '0.7')
|
||||||
from gi.repository import Notify
|
from gi.repository import Notify
|
||||||
withMessagingMenu = True
|
withMessagingMenu = True
|
||||||
except ImportError:
|
except (ImportError, ValueError):
|
||||||
MessagingMenu = None
|
MessagingMenu = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user