Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit b094cff

Browse files
committed
Add com.ghostery.browser
1 parent 746ea89 commit b094cff

8 files changed

+196
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "shared-modules"]
2+
path = shared-modules
3+
url = https://github.com/flathub/shared-modules.git

com.ghostery.browser.desktop

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Name=Ghostery Private Browser
4+
GenericName=Web Browser
5+
GenericName[de]=Webbrowser
6+
GenericName[fr]=Navigateur Web
7+
Comment=Browse the World Wide Web
8+
Comment[de]=Im Internet surfen
9+
Comment[fr]=Naviguer sur le Web
10+
Keywords=Internet;WWW;Browser;Web;Explorer
11+
Keywords[de]=Internet;WWW;Browser;Web;Explorer;Webseite;Site;surfen;online;browsen
12+
Keywords[fr]=Internet;WWW;Browser;Web;Explorer;Fureteur;Surfer;Navigateur
13+
Exec=com.ghostery.browser %u
14+
Icon=com.ghostery.browser
15+
Terminal=false
16+
X-MultipleArgs=false
17+
Type=Application
18+
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
19+
StartupNotify=true
20+
StartupWMClass=Ghostery
21+
Categories=Network;WebBrowser;
22+
Actions=new-window;new-private-window;
23+
24+
[Desktop Action new-window]
25+
Name=New Window
26+
Name[de]=Neues Fenster
27+
Name[en_US]=New Window
28+
Name[fr]=Nouvelle fenêtre
29+
Exec=com.ghostery.browser --new-window %u
30+
31+
[Desktop Action new-private-window]
32+
Name=New Private Window
33+
Name[de]=Neues privates Fenster
34+
Name[en_US]=New Private Window
35+
Name[fr]=Nouvelle fenêtre de navigation privée
36+
Exec=com.ghostery.browser --private-window %u

com.ghostery.browser.metainfo.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>com.ghostery.browser</id>
4+
<launchable type="desktop-id">com.ghostery.browser.desktop</launchable>
5+
<name>Ghostery Private Browser</name>
6+
<developer_name>Ghostery GmbH.</developer_name>
7+
<summary>A completely private browsing experience from Ghostery</summary>
8+
<metadata_license>CC0-1.0</metadata_license>
9+
<project_license>MPL-2.0</project_license>
10+
<screenshots>
11+
<screenshot type="default">
12+
<image type="source" width="2364" height="1178">https://www.ghostery.com/assets/ghostery-dawn-compact-e9620f014c3e4ada19cd61a66c2b9d6f52ca261adeb7dccc4792e42d9e336191.png</image>
13+
</screenshot>
14+
</screenshots>
15+
<description>
16+
<p>Blocks ads, trackers &amp; other pop-ups and is fully loaded with a built-in private search engine that detects and displays trackers before you even visit a webpage. </p>
17+
<ul><li><em>Built-in Tracker &amp; Ad Blocker</em>: To secure your privacy while browsing the web, the Ghostery Private Browser is neutralizing all trackers for you. Your personal data are detached and replaced by random values leaving data collectors in the dark about your identity.</li>
18+
<li><em>Built-in ad free Private Search</em>: Ghostery Private Search offers unbiased results, not by the likelihood you'll click on them. It detects and displays trackers even before you visit a webpage.</li>
19+
<li><em>Built-in maximum security</em>: Unparalleled privacy protection can only be achieved on a highest quality platform. Ghostery Private Browser builds upon Firefox with maximum care for speed, privacy and security.</li></ul>
20+
</description>
21+
<releases>
22+
<release version="2023.6" date="2023-07-21"/>
23+
</releases>
24+
<keywords>
25+
<keyword translate="no">ghostery</keyword>
26+
<keyword translate="no">internet</keyword>
27+
<keyword translate="no">web</keyword>
28+
<keyword>privacy</keyword>
29+
</keywords>
30+
<url type="homepage">https://www.ghostery.com/ghostery-private-browser</url>
31+
<url type="bugtracker">https://www.ghostery.com/support</url>
32+
<url type="donation">https://www.ghostery.com/become-a-contributor</url>
33+
<provides>
34+
<binary>com.ghostery.browser</binary>
35+
</provides>
36+
<content_rating type="oars-1.1" />
37+
</component>

com.ghostery.browser.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
app-id: com.ghostery.browser
3+
default-branch: stable
4+
runtime: org.freedesktop.Platform
5+
runtime-version: '22.08'
6+
sdk: org.freedesktop.Sdk
7+
add-extensions:
8+
org.freedesktop.Platform.ffmpeg-full:
9+
directory: lib/ffmpeg
10+
version: '22.08'
11+
add-ld-path: "."
12+
command: com.ghostery.browser
13+
finish-args:
14+
- "--share=ipc"
15+
- "--share=network"
16+
- "--socket=wayland"
17+
- "--socket=fallback-x11"
18+
- "--socket=pcsc"
19+
- "--socket=pulseaudio"
20+
- "--socket=cups"
21+
- "--env=GTK_PATH=/app/lib/gtkmodules"
22+
- "--persist=.ghostery browser"
23+
- "--filesystem=xdg-download:rw"
24+
- "--filesystem=xdg-run/pipewire-0"
25+
- "--device=dri"
26+
- "--talk-name=org.freedesktop.FileManager1"
27+
- "--system-talk-name=org.freedesktop.NetworkManager"
28+
- "--talk-name=org.a11y.Bus"
29+
- "--talk-name=org.gnome.SessionManager"
30+
- "--talk-name=org.freedesktop.ScreenSaver"
31+
- "--talk-name=org.gtk.vfs.*"
32+
- "--talk-name=org.freedesktop.Notifications"
33+
- "--env=MOZ_ENABLE_WAYLAND=1"
34+
- "--env=MOZ_USE_XINPUT2=1"
35+
- "--own-name=com.ghostery.browser.*"
36+
- "--own-name=org.mpris.MediaPlayer2.firefox.*"
37+
modules:
38+
- shared-modules/dbus-glib/dbus-glib-0.110.json
39+
- name: ghostery_browser
40+
buildsystem: simple
41+
build-commands:
42+
- mkdir -p /app/lib
43+
- mv ghostery_app/Ghostery /app/lib/ghostery
44+
- install -D -m644 /app/lib/ghostery/browser/chrome/icons/default/default128.png
45+
/app/share/icons/hicolor/128x128/apps/com.ghostery.browser.png
46+
- install -D -m644 /app/lib/ghostery/browser/chrome/icons/default/default128.png
47+
/app/usr/share/icons/hicolor/128x128/apps/com.ghostery.browser.png
48+
- sed -i 's|"app.update.channel", "release"|"app.update.channel", "flatpak"|' /app/lib/ghostery/defaults/pref/channel-prefs.js
49+
- install -D -m644 com.ghostery.browser.desktop -t /app/share/applications
50+
- install -D -m644 com.ghostery.browser.metainfo.xml -t /app/share/metainfo
51+
- install -D -m755 ghostery.sh /app/bin/com.ghostery.browser
52+
- install -d /app/lib/ffmpeg
53+
sources:
54+
- type: archive
55+
url: https://github.com/ghostery/user-agent-desktop/releases/download/2023-07-21/Ghostery-2023.6.en-US.linux.tar.gz
56+
sha256: 84bbd2221172e4b78fc88c8f9c46af0a43c8cc9e08d33ec32e7e35334b9e8609
57+
dest: ghostery_app
58+
strip-components: 0
59+
only-arches:
60+
- x86_64
61+
- type: file
62+
path: com.ghostery.browser.desktop
63+
- type: file
64+
path: ghostery.sh
65+
- type: file
66+
path: com.ghostery.browser.metainfo.xml
67+
- name: gtk-cups-backend
68+
buildsystem: meson
69+
make-args:
70+
- modules/printbackends/libprintbackend-cups.so
71+
no-make-install: true
72+
post-install:
73+
- install -Dm 755 modules/printbackends/libprintbackend-cups.so -t /app/lib/gtkmodules/3.0.0/printbackends/
74+
sources:
75+
- type: archive
76+
url: https://download.gnome.org/core/41/41.0/sources/gtk%2B-3.24.30.tar.xz
77+
sha256: ba75bfff320ad1f4cfbee92ba813ec336322cc3c660d406aad014b07087a3ba9
78+
- type: patch
79+
path: gtk3-werror.patch
80+
- name: gtk-settings
81+
buildsystem: simple
82+
build-commands:
83+
- install -Dm 644 gtk-settings.ini /app/etc/xdg/gtk-3.0/settings.ini
84+
sources:
85+
- type: file
86+
path: gtk-settings.ini
87+
- name: libnotify
88+
buildsystem: meson
89+
config-opts:
90+
- "-Dtests=false"
91+
- "-Dintrospection=disabled"
92+
- "-Dman=false"
93+
- "-Dgtk_doc=false"
94+
- "-Ddocbook_docs=disabled"
95+
sources:
96+
- sha256: c5f4ed3d1f86e5b118c76415aacb861873ed3e6f0c6b3181b828cf584fc5c616
97+
type: archive
98+
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.2.tar.xz
99+
x-checker-data:
100+
project-id: 13149
101+
type: anitya
102+
url-template: https://download.gnome.org/sources/libnotify/$major.$minor/libnotify-$version.tar.xz

ghostery.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
export TMPDIR=$XDG_CACHE_HOME/tmp
3+
exec /app/lib/ghostery/Ghostery "$@"

gtk-settings.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Settings]
2+
gtk-print-backends=file,cups

gtk3-werror.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/meson.build b/meson.build
2+
index cbd820da44..0438f6cc7d 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -309,7 +309,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
6+
'-Werror=sequence-point',
7+
'-Werror=return-type',
8+
'-Werror=trigraphs',
9+
- '-Werror=array-bounds',
10+
'-Werror=write-strings',
11+
'-Werror=address',
12+
'-Werror=int-to-pointer-cast',

shared-modules

Submodule shared-modules added at fd4d383

0 commit comments

Comments
 (0)