kupfer-320/ 0000755 0001750 0001750 00000000000 13725440774 010773 5 ustar hle hle kupfer-320/bin/ 0000755 0001750 0001750 00000000000 13725440774 011543 5 ustar hle hle kupfer-320/bin/kupfer-exec.in 0000755 0001750 0001750 00000001516 13725440774 014317 0 ustar hle hle #!/bin/sh
# This is a helper program to execute saved command files,
# by sending them to a running instance of Kupfer.
export TEXTDOMAIN='@PACKAGE@'
export TEXTDOMAINDIR='@LOCALEDIR@'
PYTHON='@PYTHON@'
if test ! -f "$1"
then
echo "A file argument required"
exit 1
fi
SERVICE="io.github.kupferlauncher"
OBJ="/io/github/kupferlauncher"
IFACE="io.github.kupferlauncher.Listener"
while test $# != 0
do
FILE=$(readlink -f "$1")
dbus-send --print-reply --dest=$SERVICE $OBJ \
$IFACE.ExecuteFileOnDisplay string:"$FILE" \
string:"$DISPLAY" string:"$DESKTOP_STARTUP_ID" \
> /dev/null 2>&1
KUPFER_RUNNING=$?
if test $KUPFER_RUNNING != 0
then
# NOTE: If you change this string, you have to change
# it inside kupfer/version.py as well.
zenity --info --text "$(gettext 'Could not find running Kupfer')" &
exit 1
fi
shift
done
kupfer-320/bin/kupfer.in 0000755 0001750 0001750 00000005116 13725440774 013375 0 ustar hle hle #!/bin/sh
# kupfer A convenient command and access tool
#
# Copyright 2007--2017 Ulrik Sverdrup
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# This script invokes kupfer by calling an already running instance, or
# starting a new if none is found running.
_hasprefix () {
test "x${1#$2}" != "x$1"
}
PYTHON="@PYTHON@"
PYTHONDIR="@PYTHONDIR@"
_hasprefix "$PYTHON" "@" && PYTHON=python3
_hasprefix "$PYTHONDIR" "@" && PYTHONDIR=$(dirname $(readlink -f -- $0))/..
SERVICE="io.github.kupferlauncher"
OBJ="/io/github/kupferlauncher"
IFACE="io.github.kupferlauncher.Listener"
# If there are any options, like "--help", we run Kupfer directly
_hasprefix "$1" "--"
KUPFER_HAS_OPTIONS=$?
# We allow reading directly from stdin if we pipe text into Kupfer
if [ ! -t 0 -a $# = 0 -a -z "$DESKTOP_STARTUP_ID" ]
then
echo "kupfer: Reading from stdin" >&2
TEXT_INPUT=$(cat)
fi
test $KUPFER_HAS_OPTIONS != 0 && dbus-send --type=method_call --print-reply \
--dest=$SERVICE $OBJ $IFACE.PresentOnDisplay string:"$DISPLAY" \
"string:$DESKTOP_STARTUP_ID" >/dev/null 2>&1
KUPFER_RUNNING=$?
if test \( -n "$TEXT_INPUT" -a $KUPFER_HAS_OPTIONS != 0 \)
then
dbus-send --type=method_call --dest=$SERVICE $OBJ \
$IFACE.PutTextOnDisplay string:"$TEXT_INPUT" \
string:"$DISPLAY" string:"$DESKTOP_STARTUP_ID"
fi
_realpaths () {
# Emit realpaths for arguments, separated by NUL bytes
while test $# != 0
do
LINK=$(readlink -e -- "$1")
if test $? != 0 ; then
echo "Error: $1 does not exist" >&2
shift
continue
fi
printf "%s\0" "$LINK"
shift
done
}
if test \( -n "$1" -a $KUPFER_HAS_OPTIONS != 0 \)
then
# NOTE: We must escape commas here since it is dbus-send's
# array item separator. This is then unescaped by kupfer
ARRAY=$(_realpaths "$@" | sed -e 's/,/%%kupfercomma%%/g' | tr \\0 ,)
dbus-send --type=method_call --dest=$SERVICE $OBJ \
$IFACE.PutFilesOnDisplay array:string:"$ARRAY" \
string:"$DISPLAY" string:"$DESKTOP_STARTUP_ID"
fi
if test $KUPFER_RUNNING != 0
then
exec ${PYTHON} "$PYTHONDIR/kupfer.py" "$@"
fi
kupfer-320/data/ 0000755 0001750 0001750 00000000000 13725440774 011704 5 ustar hle hle kupfer-320/data/wscript_build 0000644 0001750 0001750 00000000241 13725440774 014476 0 ustar hle hle # configuration defaults and ui files
bld.install_files("${DATADIR}/kupfer/", "defaults.cfg")
bld.install_files("${DATADIR}/kupfer/", bld.path.ant_glob("*.ui"))
kupfer-320/data/progress_dialog.ui 0000644 0001750 0001750 00000006610 13725440774 015431 0 ustar hle hle
kupfer-320/data/getkey_dialog.ui 0000644 0001750 0001750 00000016000 13725440774 015047 0 ustar hle hle
6Set Keyboard ShortcutFalseTruecenternormalTruevertical12True12Truegtk-preferences60Truevertical12True00Set Keyboard Shortcut0True00Please press desired key combinationTrue1True12Truegtk-dialog-error0True0Keybinding could not be bound12True0311Trueendgtk-clearTrueFalseFalseTrueFalseFalse0gtk-cancelTrueFalseFalseTrueFalseFalse1Falseend0buttoncancel
kupfer-320/data/defaults.cfg 0000644 0001750 0001750 00000004302 13725440774 014173 0 ustar hle hle # This is the kupfer default configuration file
# This file is not intended to be modified;
# users should modify their settings in
# $XDG_CONFIG_HOME/kupfer/kupfer.cfg
# (normally ~/.config/kupfer/kupfer.cfg)
# The separator is semicolon (;). Continued lines
# have to be indented
[Kupfer]
Keybinding = space
MagicKeybinding =
ShowStatusIcon = True
UseCommandKeys = True
action_accelerator_modifer = ctrl
[Keybindings]
activate = a
comma_trick = comma
compose_action = Return
erase_affinity_for_first_pane =
mark_as_default =
reset_all = r
select_quit = q
select_selected_file =
select_selected_text = g
show_help = F1
show_preferences = semicolon
switch_to_source =
toggle_text_mode_quick = period
[Tools]
terminal = kupfer.plugin.core.gnome-terminal
icon_renderer = kupfer.plugin.core.gtk
[Appearance]
icon_large_size = 128
icon_small_size = 24
list_height = 250
# Catalog: The sources of the plugin are included
# as subcatalogs in the main search catalog, and
# its items are not available in the main catalog
# Directories to keep in catalog
[Directories]
Catalog =
Direct = ~/; USER_DIRECTORY_DESKTOP;
# Deep directories are recursive down to @depth
[DeepDirectories]
Depth = 2
Catalog =
Direct =
[plugin_core]
kupfer_enabled = True
kupfer_hidden = True
[plugin_applications]
kupfer_enabled = True
[plugin_archivemanager]
kupfer_enabled = True
[plugin_calculator]
kupfer_enabled = True
[plugin_clipboard]
kupfer_enabled = True
[plugin_commands]
kupfer_enabled = True
[plugin_dictionary]
kupfer_enabled = True
[plugin_documents]
kupfer_enabled = True
[plugin_favorites]
kupfer_enabled = True
[plugin_fileactions]
kupfer_enabled = False
[plugin_qsicons]
kupfer_enabled = True
[plugin_session_gnome]
kupfer_enabled = False
[plugin_session_xfce]
kupfer_enabled = False
[plugin_screen]
kupfer_enabled = False
[plugin_show_text]
kupfer_enabled = True
[plugin_tracker1]
kupfer_enabled = False
[plugin_triggers]
kupfer_enabled = True
[plugin_trash]
kupfer_enabled = True
[plugin_urlactions]
kupfer_enabled = True
[plugin_volumes]
kupfer_enabled = True
[plugin_wikipedia]
kupfer_enabled = True
[plugin_windows]
kupfer_enabled = False
kupfer-320/data/result.ui 0000644 0001750 0001750 00000007123 13725440774 013564 0 ustar hle hle
False10center800600kupferTrueFalsevertical10TrueTrueTrueTrueFalsewordTrueTrueTrue0TruehorizontalFalsegtk-copyTrueTrueTrueTrueFalseFalse0gtk-closeTrueTrueTrueTrueFalseFalse1FalseTrue1
kupfer-320/data/credentials_dialog.ui 0000644 0001750 0001750 00000017771 13725440774 016074 0 ustar hle hle
6User credentialsFalseTruecenterdialogTruevertical12True6vertical12True0gtk-dialog-authentication60True2266True0_User:Trueentry_usernameTrue0_Password:Trueentry_password12TrueTrue●12TrueTrueFalse●1212False1Truegtk-dialog-infoFalse0250True01015True12False1Trueendgtk-cancelTrueTrueTrueTrueFalseFalse0_ChangeTrueTrueTrueTrueTrueTrueFalseFalse1Falseend0button_cancelbutton_ok
kupfer-320/data/preferences.ui 0000644 0001750 0001750 00000142611 13725440774 014551 0 ustar hle hle
10Kupfer PreferencesPreferencescenterkupferTrueverticalTruevertical10TrueTrueTrueTrue5vertical15True0noneTrue612Truevertical6Start automatically on loginTrueTrueFalseTrue0Show icon in notification areaTrueTrueFalseTrueTrue1Show icon in notification areaTrueTrueFalseTrueTrue2True10True03Terminal emulator:False0TrueFalseend1FalseFalse5TrueDesktop EnvironmentFalse1True0noneTrue612Truevertical6True10True03Icon set:False0TrueFalseend1FalseFalse2True10True03Large Icon Size:False0True25624022420819217616014412811296807264564832Falseend1FalseFalse3True10True03Small Icon Size:False0True1281129680644840322416Falseend1FalseFalse4TrueAppearanceFalse2False0TrueGeneralFalseTrue6vertical6True00<b>Global Keyboard Shortcuts</b>TrueFalse0True12Truevertical2True0TrueendResetTrueTrueTrueFalseFalse01False1True00<b>Browser Keyboard Shortcuts</b>TrueFalse2True12Truevertical2TrueTrueautomaticautomatic0TrueendResetTrueTrueTrueFalseFalse0False13Use single keystroke commands (Space, /, period, comma etc.)TrueTrueFalseTrueFalse410Action accelerators use AltTrueTrueFalseTrueradio_actionaccelaltFalse5Action accelerators use CtrlTrueTrueFalseTrueradio_actionaccelaltFalse61TrueKeyboard1FalseTrue10350TrueverticalTrueTrueneverautomaticin0TrueTrue●gtk-clearFalseFalse1False0320Truenevernever12TruePlugins2FalseTrue222True6verticalTrue00Inclusion in Top Level SearchesTrue30False0True066True03Marked sources have their objects included in top level searches.
An unmarked source's contents are only available by locating its subcatalog.True30False21GTK_FILLTrueverticalTrueTrueneverautomaticin012True6verticalTrue00Indexed FoldersTrue30False0True066True03Folders whose files are always available in the catalog.True30False2112GTK_FILLTruevertical2TrueTrueautomaticautomaticin0TrueTrueendgtk-removeTrueFalseTrueTrueTrueFalseFalse0gtk-addTrueTrueTrueTrueFalseFalse1False112123TrueCatalog2False0Trueedgegtk-helpTrueTrueTrueTrueFalseFalse0gtk-closeTrueTrueTrueTrueFalseFalse1False10
kupfer-320/kupfer-run 0000777 0001750 0001750 00000000000 13725440774 015405 2bin/kupfer.in ustar hle hle kupfer-320/auxdata/ 0000755 0001750 0001750 00000000000 13725440774 012422 5 ustar hle hle kupfer-320/auxdata/kupfer-exec.desktop.in 0000644 0001750 0001750 00000000237 13725440774 016642 0 ustar hle hle
[Desktop Entry]
Version=1.0
Type=Application
Exec=kupfer-exec %F
_Name=Execute in Kupfer
Icon=kupfer
NoDisplay=true
StartupNotify=true
MimeType=text/x-kfcom;
kupfer-320/auxdata/kupfer-mimetypes.xml.in 0000644 0001750 0001750 00000000605 13725440774 017060 0 ustar hle hle
<_comment>Saved Kupfer Command
kupfer-320/auxdata/kupfer.desktop.in 0000644 0001750 0001750 00000000436 13725440774 015721 0 ustar hle hle [Desktop Entry]
Version=1.0
_Name=Kupfer
_GenericName=Application Launcher
_Comment=Convenient command and access tool for applications and documents
Icon=kupfer
Exec=kupfer %F
Type=Application
Categories=Utility;
StartupNotify=true
X-UserData=$CONFIG/kupfer;$DATA/kupfer;$CACHE/kupfer
kupfer-320/auxdata/wscript 0000644 0001750 0001750 00000006632 13725440774 014047 0 ustar hle hle #! /usr/bin/env python
import os
from waflib import Options, Utils, Logs
def options(opt):
opt.add_option('--no-hooks',
action='store_true',
default=False,
help="Don't run any mime, icon cache or similar update hooks [Default:False]")
opt.add_option('--no-update-mime',
action='store_true',
default=False,
help='Do not update mime and desktop databases [Default:Update]')
opt.add_option('--no-update-icon-cache',
action='store_true',
default=False,
help='Do not update icon cache [Default:Update]')
def configure(conf):
if not Options.options.no_update_mime and not Options.options.no_hooks:
conf.env["AUXDATA_MIME"] = 1
if not Options.options.no_update_icon_cache and not Options.options.no_hooks:
conf.env["UPDATE_ICON_CACHE"] = 1
def build(bld):
# merge translations into the .desktop file
# and set it up to be installed
def install_desktop_file(desktop_subst_file):
return bld(
features="intltool_in",
podir="../po",
flags = ("-d", "-q", "-u"),
source = desktop_subst_file + ".in",
target = desktop_subst_file,
install_path = "${DATADIR}/applications",
chmod = 0o755,
)
k_desktop = install_desktop_file("kupfer.desktop")
x_desktop = install_desktop_file("kupfer-exec.desktop")
## install kupfer.desktop as a Thunar sendto object
kd_install = os.path.join(
Utils.subst_vars(k_desktop.install_path, bld.env), "kupfer.desktop")
symlink_location = \
Utils.subst_vars("${DATADIR}/Thunar/sendto/kupfer.desktop", bld.env)
symlink_target = \
os.path.relpath(kd_install, os.path.dirname(symlink_location))
bld.symlink_as(symlink_location, symlink_target)
## install mimetype descriptions
mimetypes_file = "kupfer-mimetypes.xml"
bld(
features="intltool_in",
podir="../po",
flags = ("-x", "-q", "-u"),
source = mimetypes_file + ".in",
target = mimetypes_file,
install_path = "${DATADIR}/mime/packages/",
)
def update_mime(bld):
Logs.pprint('GREEN',"Updating mime database")
bld.exec_command(["update-mime-database",
Utils.subst_vars("${DATADIR}/mime", bld.env)])
bld.exec_command(["update-desktop-database",
Utils.subst_vars("${DATADIR}/applications", bld.env)])
if bld.is_install and bld.env["AUXDATA_MIME"]:
bld.add_post_fun(update_mime)
## install kupfer icon
icons_inst = bld.install_files("${DATADIR}/icons/hicolor",
bld.path.ant_glob("hicolor/**"),
cwd=bld.path.find_dir("hicolor"),
relative_trick=True)
def update_icon_cache(bld):
icon_dir = Utils.subst_vars('${DATADIR}/icons/hicolor', bld.env)
if not Options.options.destdir:
Logs.pprint('GREEN',"Updating Gtk icon cache.")
command='gtk-update-icon-cache -q -f -t %s' % icon_dir
bld.exec_command(command)
else:
Logs.pprint('YELLOW','Icon cache not updated. After install, run this:')
Logs.pprint('YELLOW','gtk-update-icon-cache -q -f -t %s'%icon_dir)
if icons_inst and bld.is_install and bld.env["UPDATE_ICON_CACHE"]:
bld.add_post_fun(update_icon_cache)
kupfer-320/auxdata/hicolor/ 0000755 0001750 0001750 00000000000 13725440774 014061 5 ustar hle hle kupfer-320/auxdata/hicolor/32x32/ 0000755 0001750 0001750 00000000000 13725440774 014642 5 ustar hle hle kupfer-320/auxdata/hicolor/32x32/apps/ 0000755 0001750 0001750 00000000000 13725440774 015605 5 ustar hle hle kupfer-320/auxdata/hicolor/32x32/apps/kupfer.png 0000644 0001750 0001750 00000004325 13725440774 017613 0 ustar hle hle PNG
IHDR szz sBIT|d pHYs Z Zh tEXtSoftware www.inkscape.org< RIDATX͗klwf]{c&v؎c&-*$@~UU T
@V?~@EHD)-HHEBTQ!'?{c_3;s퇵oҴEj=ߜs;?6e&`p2ƚ v1o;ByoT'9_7'ھq}gs" t(c=NN/dN~}\_qն3]8Zu/ Aӳ}rԅf4JK*¾]ۺ^~oM0ggy81SHaOr[
ӭX~醁I;w5?M*sоO)MruD7ogGdz+@x ONegI^e^