This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install mono-xsp4-base | |
sudo apt-get install apache2 mono-xsp4 mono-complete mono-apache-server4 libapache2-mod-mono mono-reference-assemblies-4.0 | |
#add a /etc/apache2/sites-enabled as follows, you want to use an arbitrary port in this case | |
#<VirtualHost localhost:8089> | |
# ServerName localhost | |
# DocumentRoot /var/www/mono/ | |
# <Directory /var/www/mono/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from gi.repository import Gtk, Gdk, WebKit | |
class WebKitWindow(Gtk.Window): | |
scrolls = None | |
webView = None | |
def __init__(self, url, transparent=False): | |
Gtk.Window.__init__(self, Gtk.WindowType.TOPLEVEL, title='') | |
self.scrolls = Gtk.ScrolledWindow() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Transparency in Webkit and Gtk. | |
from gi.repository import Gtk, Gdk, GLib, WebKit | |
transparent_window_style_provider = Gtk.CssProvider() | |
transparent_window_style_provider.load_from_data(""" | |
GtkWindow { | |
background-color: rgba(100,100,0,0); | |
background-image: none; |