aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/apt+http.protocol13
-rw-r--r--data/apt.protocol13
-rw-r--r--data/apturl-gtk.ui184
-rw-r--r--data/apturl.desktop7
-rw-r--r--data/apturl.js6
-rw-r--r--data/apturl.schemas.in38
6 files changed, 261 insertions, 0 deletions
diff --git a/data/apt+http.protocol b/data/apt+http.protocol
new file mode 100644
index 0000000..cea9284
--- /dev/null
+++ b/data/apt+http.protocol
@@ -0,0 +1,13 @@
+[Protocol]
+exec=apturl %u
+protocol=apt+http
+input=none
+output=none
+helper=true
+listing=false
+reading=false
+writing=false
+makedir=false
+deleting=false
+Icon=application-x-deb
+Class=:local
diff --git a/data/apt.protocol b/data/apt.protocol
new file mode 100644
index 0000000..26ecf06
--- /dev/null
+++ b/data/apt.protocol
@@ -0,0 +1,13 @@
+[Protocol]
+exec=apturl %u
+protocol=apt
+input=none
+output=none
+helper=true
+listing=false
+reading=false
+writing=false
+makedir=false
+deleting=false
+Icon=application-x-deb
+Class=:local
diff --git a/data/apturl-gtk.ui b/data/apturl-gtk.ui
new file mode 100644
index 0000000..5133397
--- /dev/null
+++ b/data/apturl-gtk.ui
@@ -0,0 +1,184 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.22.1 -->
+<!--*- mode: xml -*-->
+<interface>
+ <requires lib="gtk+" version="3.22"/>
+ <object class="GtkImage" id="dialog-image">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_right">6</property>
+ <property name="icon_name">document-save-symbolic</property>
+ </object>
+ <object class="GtkDialog" id="confirmation_dialog">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="default_width">500</property>
+ <property name="default_height">150</property>
+ <property name="type_hint">dialog</property>
+ <child type="titlebar">
+ <placeholder/>
+ </child>
+ <child internal-child="vbox">
+ <object class="GtkBox">
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">5</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="no_button">
+ <property name="label">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="has_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="yes_button">
+ <property name="label" translatable="yes">_Install</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="image">dialog-image</property>
+ <property name="use_underline">True</property>
+ <property name="always_show_image">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">10</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="valign">start</property>
+ <property name="icon_name">dialog-question</property>
+ <property name="icon_size">6</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_right">6</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="header_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_markup">True</property>
+ <property name="xalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="body_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkExpander" id="description_expander">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="margin_top">5</property>
+ <property name="spacing">5</property>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolledwindow1">
+ <property name="width_request">400</property>
+ <property name="height_request">200</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="margin_top">10</property>
+ <property name="hscrollbar_policy">never</property>
+ <property name="shadow_type">out</property>
+ <child>
+ <object class="GtkTextView" id="description_text_view">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+ <property name="editable">False</property>
+ <property name="wrap_mode">word</property>
+ <property name="left_margin">5</property>
+ <property name="right_margin">5</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="description_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Description</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="0">no_button</action-widget>
+ <action-widget response="-8">yes_button</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/data/apturl.desktop b/data/apturl.desktop
new file mode 100644
index 0000000..f810031
--- /dev/null
+++ b/data/apturl.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=AptURL
+Exec=apturl %u
+Type=Application
+NoDisplay=true
+Categories=System;
+MimeType=x-scheme-handler/apt;
diff --git a/data/apturl.js b/data/apturl.js
new file mode 100644
index 0000000..02b04c3
--- /dev/null
+++ b/data/apturl.js
@@ -0,0 +1,6 @@
+pref("network.protocol-handler.app.apt","/usr/bin/apturl");
+pref("network.protocol-handler.warn-external.apt",false);
+pref("network.protocol-handler.app.apt+http","/usr/bin/apturl");
+pref("network.protocol-handler.warn-external.apt+http",false);
+pref("network.protocol-handler.external.apt",true);
+pref("network.protocol-handler.external.apt+http",true);
diff --git a/data/apturl.schemas.in b/data/apturl.schemas.in
new file mode 100644
index 0000000..f67b3e3
--- /dev/null
+++ b/data/apturl.schemas.in
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<gconfschemafile>
+ <schemalist>
+ <schema>
+ <key>/schemas/desktop/gnome/url-handlers/apt/enabled</key>
+ <applyto>/desktop/gnome/url-handlers/apt/enabled</applyto>
+ <owner>apturl</owner>
+ <type>bool</type>
+ <default>true</default>
+ <locale name="C">
+ <short>Whether the specified command should handle "apt" URLs</short>
+ <long>True if the command specified in the "command" key should handle "apt" URLs.</long>
+ </locale>
+ </schema>
+ <schema>
+ <key>/schemas/desktop/gnome/url-handlers/apt/command</key>
+ <applyto>/desktop/gnome/url-handlers/apt/command</applyto>
+ <owner>apturl</owner>
+ <type>string</type>
+ <default>apturl "%s"</default>
+ <locale name="C">
+ <short>The handler for "apt" URLs</short>
+ <long>The command used to handle "apt" URLs, if enabled.</long>
+ </locale>
+ </schema>
+ <schema>
+ <key>/schemas/desktop/gnome/url-handlers/apt/needs_terminal</key>
+ <applyto>/desktop/gnome/url-handlers/apt/needs_terminal</applyto>
+ <owner>apturl</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Run the command in a terminal</short>
+ <long>True if the command used to handle this type of URL should be run in a terminal.</long>
+ </locale>
+ </schema>
+ </schemalist>
+</gconfschemafile>