Skip to content

Instantly share code, notes, and snippets.

These patches are intended to make Gnome-Pie use Xwayland by default.
This returns full functionality to the application when running a Wayland session.
--- a/src/utilities/bindingManager.vala
+++ b/src/utilities/bindingManager.vala
@@ -82,7 +82,8 @@
/// Used to identify wayland sessions.
/////////////////////////////////////////////////////////////////////
- private bool wayland = GLib.Environment.get_variable("XDG_SESSION_TYPE") == "wayland";
Patches against Gnome-Pie 0.7.2 to run on X11/Xwayland by default.
The Wayland display server is only used if the user explicitly starts
Gnome-Pie with the environment var GDK_BACKEND set to "wayland".
See https://github.com/Simmesimme/Gnome-Pie/issues/172
--- a/src/daemon.vala
+++ b/src/daemon.vala
@@ -38,7 +38,7 @@
public static string version;
// Create an invisible maximized window (covering the desktop) to use as focused Xwayland overlay
// valac -X -lm --pkg gtk+-3.0 --pkg cairo --pkg gdk-3.0 gnome-pie-focus-helper.vala
using Gtk;
using Cairo;
public class CairoTransparent : Gtk.Window {
private Surface event_mask;
#!/bin/sh
#
## wrapper for calling gnome-pie with a hotkey, Wayland-safe
#+ use this in the 'command' box when setting up GNOME custom
#+ keybindings adding the preferred pies number, e.g. 'gnome-pie-focused 123'
## IMPORTANT #######################################
#+ uses gnome-pie-focus-helper in Xwayland mode to supply the needed
#+ previously focused Xwayland app for Gnome-Pie to function properly
#+ see https://github.com/Schneegans/Gnome-Pie/issues/172
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@
# Optionally select a sub architecture by number if building in a clean chroot
# Leaving this entry blank will require user interaction during the build
# which will cause a failure to build if using makechrootpkg. Note that the
-# generic (default) option is 27.
+# generic (default) option is 30.
#
# Note - the march=native option is unavailable by this method, use the nconfig
(function() {
//if (location != "chrome://browser/content/browser.xul") return;
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
Cu.import("resource://gre/modules/Services.jsm");
var AutoFocusUrlbar = {
cs: Services.console, // nsIConsoleService
execve("/usr/bin/securefs", ["securefs", "mount", "/home/glitsj16/.007/.stash_sfs", "/home/glitsj16/.007/lab16.007"], 0x7ffcb0ea5a18 /* 142 vars */) = 0
brk(NULL) = 0x56273c581000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc87ce6360) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = 0
openat(AT_FDCWD, "/etc/ld.so.preload", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
close(3) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=213958, ...}) = 0
mmap(NULL, 213958, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f72355ef000
6936 execve("/usr/bin/securefs", ["securefs", "mount", "/home/glitsj16/.007/.stash_sfs", "/home/glitsj16/.007/lab16.007"], 0x7ffdf26ce700 /* 142 vars */) = 0
6936 brk(NULL) = 0x55bb39f3d000
6936 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffddc705530) = -1 EINVAL (Invalid argument)
6936 access("/etc/ld.so.preload", R_OK) = 0
6936 openat(AT_FDCWD, "/etc/ld.so.preload", O_RDONLY|O_CLOEXEC) = 3
6936 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
6936 close(3) = 0
6936 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
6936 fstat(3, {st_mode=S_IFREG|0644, st_size=213958, ...}) = 0
6936 mmap(NULL, 213958, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fbfe538d000
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -642,7 +642,11 @@
// various /proc files
disable_file(BLACKLIST_FILE, "/proc/irq");
disable_file(BLACKLIST_FILE, "/proc/bus");
- disable_file(BLACKLIST_FILE, "/proc/config.gz");
+ { // allow user access to /proc/config.gz by specifying 'noblacklist' option
+ EUID_USER();
+ profile_add("blacklist /proc/config.gz");
$ sudo /usr/bin/fdns --proxy-addr=127.0.0.1 --server=digital-society
fdns starting
connecting to digital-society server
listening on 127.0.0.1
349 filter entries added from /etc/fdns/trackers
24643 filter entries added from /etc/fdns/adblocker
1303 filter entries added from /etc/fdns/hosts
(0) SSL connection opened
(2) SSL connection opened
(1) SSL connection opened