Skip to content

Commit

Permalink
Add dbus interface to snap
Browse files Browse the repository at this point in the history
  • Loading branch information
xeco23 committed Jun 19, 2020
1 parent 7a68cff commit 31f5dfb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
whatsapp-for-linux (1.0.3) stable; urgency=medium
whatsapp-for-linux (1.0.6) stable; urgency=medium

* Open urls in default browser
* Select a destination folder for downloads
* Allow running only one instance of the application

-- Enes Hecan <[email protected]> Fri, 19 Jun 2020 13:36:00 +0200
2 changes: 1 addition & 1 deletion resource/desktop/whatsapp-for-linux.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
Version=1.0.3
Version=1.0.6
Name=WhatsApp
GenericName=Unofficial WhatsApp client
Comment=An unofficial WhatsApp linux client desktop application.
Expand Down
15 changes: 13 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: whatsapp-for-linux
base: core18
version: '1.0.3'
version: '1.0.6'
summary: An unofficial WhatsApp linux client.
description: An unofficial WhatsApp linux client written in C++ with the help of gtkmm-3.0 and webkit2.
grade: stable
Expand All @@ -12,6 +12,9 @@ parts:
source-branch: master
source: https://github.com/eneshecan/whatsapp-for-linux
plugin: cmake
override-pull: |
snapcraftctl pull
sed -i.bak -e 's|Icon=whatsapp-for-linux|Icon=/usr/share/icons/hicolor/scalable/apps/whatsapp-for-linux.png|g' resource/desktop/whatsapp-for-linux.desktop
configflags:
- -DCMAKE_BUILD_TYPE=Release
build-packages:
Expand All @@ -23,13 +26,19 @@ parts:
stage-packages:
- libgtkmm-3.0-1v5

slots:
dbus-app:
interface: dbus
bus: session
name: com.github.whatsapp-for-linux

apps:
whatsapp-for-linux:
command: desktop-launch whatsapp-for-linux
desktop: usr/share/applications/whatsapp-for-linux.desktop
common-id: com.github.whatsapp-for-linux
extensions: [gnome-3-28] # This takes care of most of the things for us
plugs:
- account-control
- network
- network-manager
- browser-support
Expand All @@ -39,3 +48,5 @@ apps:
- home
- opengl
- upower-observe
slots:
- dbus-app

0 comments on commit 31f5dfb

Please sign in to comment.