Skip to content

Commit

Permalink
revert dbus
Browse files Browse the repository at this point in the history
  • Loading branch information
rafatosta committed Jan 29, 2022
1 parent 0e5f108 commit 4401fae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
10 changes: 0 additions & 10 deletions com.rtosta.zapzap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ modules:
- pyqt6.yml
- pyqt6-webengine.yml

- name: dbus-python
buildsystem: simple
build-commands:
- pip3 install --no-deps --no-use-pep517 --prefix=$FLATPAK_DEST .
sources:
- type: archive
url: https://files.pythonhosted.org/packages/b1/5c/ccfc167485806c1936f7d3ba97db6c448d0089c5746ba105b6eb22dba60e/dbus-python-1.2.18.tar.gz
sha256: 92bdd1e68b45596c833307a5ff4b217ee6929a1502f5341bae28fd120acf7260


- name: zapzap
buildsystem: simple
build-commands:
Expand Down
6 changes: 1 addition & 5 deletions share/metainfo/com.rtosta.zapzap.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@
<releases>
<release date="2022-01-28" version="1.1">
<description>
<p>News</p>
<ul>
<li>Shows notifications in the system;</li>
<li>Attention: Does not open the window if it is hidden. Solution soon.</li>
</ul>
<p>Updates</p>
<ul>
<li>Focus on the window when clicking on the Tray, if it is already open;</li>
<li>Attention: Does not open the window if it is hidden. Solution soon;</li>
<li>UserAgent;</li>
<li>Webcam permissions.</li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions zapzap/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, parent):
# definição do pergil do usuário, local que será armazenados os cookies e informações sobre os navegadores
profile = QWebEngineProfile("storage-whats", self)
profile.setHttpUserAgent(USER_AGENT)
profile.setNotificationPresenter(self.show_notification)
#profile.setNotificationPresenter(self.show_notification)

# Rotina para download de arquivos
profile.downloadRequested.connect(self.download)
Expand Down Expand Up @@ -64,5 +64,5 @@ def icon_changed(self, icon):
self.parent.tray.setIcon(icon)


def show_notification(self,notification: QWebEngineNotification):
zapzap.dbus_notify.show(notification)
"""def show_notification(self,notification: QWebEngineNotification):
zapzap.dbus_notify.show(notification)"""
4 changes: 2 additions & 2 deletions zapzap/dbus_notify.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dbus
"""import dbus
from zapzap.app_info import APPLICATION_NAME
Expand All @@ -17,7 +17,7 @@ def show(q_notification):
notify = dbus.Interface(notif, interface)
notify.Notify(app_name, id_num_to_replace, icon,
q_notification.title(), q_notification.message(), actions, hints, time)
q_notification.title(), q_notification.message(), actions, hints, time)"""


""" Não funciona, pois a url está dentro do flatpak.
Expand Down

0 comments on commit 4401fae

Please sign in to comment.