Skip to content

Instantly share code, notes, and snippets.

View nowrep's full-sized avatar

David Rosca nowrep

  • Czech Republic
  • 05:15 (UTC +02:00)
View GitHub Profile
#!/bin/bash
sock=/tmp/obs-control.sock
if [ ! -S "$sock" ]; then
echo "OBS not running"
exit 1
fi
case "$1" in
@nowrep
nowrep / sway6605.c
Created October 18, 2021 21:29
Sway bug #6605
// gcc sway6605.c -lX11 -o sway6605
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/Xlib.h>
int main() {
Display *display;
Window window;
XEvent event;
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 56dbd2e..b3b510c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,6 +40,7 @@ if (BUILD_PLUGIN)
add_library(linux-vkcapture MODULE ${PLUGIN_SOURCES})
target_link_libraries(linux-vkcapture libobs obs-frontend-api ${X11_xcb_LIB} ${X11_xcb_xfixes_LIB})
set_target_properties(linux-vkcapture PROPERTIES PREFIX "")
+ set_target_properties(linux-vkcapture PROPERTIES C_STANDARD 11)
target_include_directories(linux-vkcapture PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
@nowrep
nowrep / gist:3c0a5842734d7a5c1881d0d36e7e34be
Created October 30, 2018 14:53
Canon EOS 70D gphoto debug
0.000102 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000130 main (2): gphoto2 2.5.15
0.000137 main (2): gphoto2 has been compiled with the following options:
0.000140 main (2): + gcc (C compiler used)
0.000144 main (2): + popt (mandatory, for handling command-line parameters)
0.000147 main (2): + exif (for displaying EXIF information)
0.000150 main (2): + cdk (for accessing configuration options)
0.000153 main (2): + aa (for displaying live previews)
0.000157 main (2): + jpeg (for displaying live previews in JPEG format)
0.000160 main (2): + readline (for easy navigation in the shell)
@nowrep
nowrep / qupzillaflatpak.sh
Created December 23, 2016 11:01
QupZilla Flatpak
# Install KDE runtime
wget http://distribute.kde.org/kdeflatpak.gpg
flatpak --user remote-add kde http://distribute.kde.org/flatpak-testing/ --gpg-import=kdeflatpak.gpg
flatpak --user install kde org.kde.Platform
# Install QupZilla
wget https://qupzilla.com/flatpak/qupzillaflatpak.asc
flatpak --user remote-add qupzilla https://qupzilla.com/flatpak/repo/ --gpg-import=qupzillaflatpak.asc
flatpak --user install qupzilla org.qupzilla.QupZilla
# Maintainer: Peter Mattern <pmattern at arcor dot de>
_pkgname=qupzilla
pkgname=$_pkgname-qtwebkit-git
pkgver=1.8.6.32
pkgrel=1
pkgdesc="Cross-platform Qt web browser. Legacy QtWebKit branch."
arch=("i686" "x86_64")
url="http://www.qupzilla.com"
license=("GPL3" "custom")
@nowrep
nowrep / PKGBUILD
Created October 27, 2015 12:35
quicklaunch applet
# Quicklaunch applet
pkgname=kdeplasma-applets-quicklaunch
pkgver=1.0
pkgrel=1
pkgdesc="Quicklaunch applet for Plasma5"
arch=('i686' 'x86_64')
url="https://kde.org"
license=('GPL')
depends=('plasma-framework' 'plasma-workspace' 'kdeclarative' 'kio')
diff --git a/src/daemon/kded/BlueDevilDaemon.cpp b/src/daemon/kded/BlueDevilDaemon.cpp
index 7b1e6e4..59e0b1d 100644
--- a/src/daemon/kded/BlueDevilDaemon.cpp
+++ b/src/daemon/kded/BlueDevilDaemon.cpp
@@ -110,6 +110,8 @@ BlueDevilDaemon::BlueDevilDaemon(QObject *parent, const QList<QVariant>&)
this, SLOT(usableAdapterChanged(Adapter*)));
connect(Manager::self(), SIGNAL(adapterAdded(Adapter*)),
this, SLOT(adapterAdded(Adapter*)));
+ connect(Manager::self(), SIGNAL(adapterRemoved(Adapter*)),
+ this, SLOT(adapterRemoved(Adapter*)));
@nowrep
nowrep / use-system-qtsingleapplication.diff
Created November 4, 2014 10:01
QupZilla: Build option to use system QtSingleApplication library
diff --git a/BUILDING b/BUILDING
index 0f4defc..8a6ad81 100644
--- a/BUILDING
+++ b/BUILDING
@@ -197,7 +197,14 @@ Available Defines
DISABLE_DBUS Build without QtDBus module. Native desktop notifications
will be disabled.
+ (disabled by default)
diff --git a/src/lib/webkit/webpage.cpp b/src/lib/webkit/webpage.cpp
index 5e67a44..4ad479d 100644
--- a/src/lib/webkit/webpage.cpp
+++ b/src/lib/webkit/webpage.cpp
@@ -93,7 +93,8 @@ WebPage::WebPage(QObject* parent)
connect(this, SIGNAL(printRequested(QWebFrame*)), this, SLOT(printFrame(QWebFrame*)));
connect(this, SIGNAL(downloadRequested(QNetworkRequest)), this, SLOT(downloadRequested(QNetworkRequest)));
connect(this, SIGNAL(windowCloseRequested()), this, SLOT(windowCloseRequested()));
- connect(this, SIGNAL(restoreFrameStateRequested(QWebFrame*)), this, SLOT(restoreFrameRequested(QWebFrame*)));
+ connect(this, SIGNAL(frameCreated(QWebFrame*)), this, SLOT(frameCreated(QWebFrame*)));