libertine-scope-1.0/0000775000000000000000000000000012656376703011345 5ustar libertine-scope-1.0/CMakeLists.txt0000664000000000000000000000465512656376666014127 0ustar cmake_minimum_required(VERSION 3.0) project(libertine-scope VERSION 1.0 LANGUAGES CXX) # We require at least g++ 4.9, to avoid ABI breakage with earlier versions. set(cxx_version_required 4.9) if (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${cxx_version_required}) message(FATAL_ERROR "g++ version must be at least ${cxx_version_required}!") endif() endif() # Set strict and naggy C++ compiler flags, and enable C++11 add_definitions( -fno-permissive -std=c++11 -pedantic -Wall -Wextra -fPIC -DQT_NO_KEYWORDS ) # Search for our dependencies include(GNUInstallDirs) find_package(PkgConfig) find_package(Intltool) find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) pkg_check_modules(SCOPE libunity-scopes>=0.6.0 REQUIRED) # Add our dependencies to the include paths include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/libertine-scope ${SCOPE_INCLUDE_DIRS} ) # Important project paths set(SCOPE_INSTALL_DIR ${CMAKE_INSTALL_FULL_LIBDIR}/unity-scopes/libertine-scope/) set(SCOPE_NAME "libertine-scope") set(GETTEXT_PACKAGE "${SCOPE_NAME}") set(PACKAGE_NAME "libertine-scope.canonical") # If we need to refer to the scope's name or package in code, these definitions will help add_definitions(-DPACKAGE_NAME="${PACKAGE_NAME}") add_definitions(-DSCOPE_NAME="${SCOPE_NAME}") add_definitions(-DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}") # This command figures out the target architecture and puts it into the manifest file execute_process(COMMAND dpkg-architecture -qDEB_HOST_ARCH OUTPUT_VARIABLE CLICK_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE ) # Configure and install the click manifest and apparmor files configure_file(manifest.json.in ${CMAKE_CURRENT_BINARY_DIR}/manifest.json) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json DESTINATION ${SCOPE_INSTALL_DIR}) install(FILES "libertine-scope.apparmor" DESTINATION ${SCOPE_INSTALL_DIR}) # Add our main directories add_subdirectory(libertine-scope) add_subdirectory(data) add_subdirectory(po) # Set up the tests enable_testing() add_subdirectory(tests) add_custom_target(check ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output-on-failure ) set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${PROJECT_VERSION}) add_custom_target(dist COMMAND bzr export --root=${ARCHIVE_NAME} ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) libertine-scope-1.0/libertine-scope/0000775000000000000000000000000012656376703014431 5ustar libertine-scope-1.0/libertine-scope/query.cpp0000664000000000000000000000557712656376666016330 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "libertine-scope/query.h" #include "libertine-scope/applauncher.h" #include "libertine-scope/container.h" #include "libertine-scope/libertine.h" #include #include #include #include namespace usc = unity::scopes; namespace { /** * A custom rendering layout brazenly stolen from the click scope, so they look * sorta similar. At least until they change theirs. */ std::string const CATEGORY_APPS_DISPLAY = R"( { "schema-version" : 1, "template" : { "category-layout" : "grid", "card-size": "small" }, "components" : { "title" : "title", "art" : { "field": "art", "fill-mode": "fit" } } } )"; /** * Generates a ubuntu-application-launcher URI for a contained desktop file. */ static std::string app_uri(Container const& container, AppLauncher const& app) { return "appid://" + container.id() + "/" + app.id() + "/0.0"; } } // anonymous namespace Query:: Query(usc::CannedQuery const& query, usc::SearchMetadata const& metadata, Libertine::Factory const& libertine_factory) : usc::SearchQueryBase(query, metadata) , libertine_factory_(libertine_factory) { } void Query:: cancelled() { } void Query:: run(usc::SearchReplyProxy const& reply) { usc::CannedQuery const& query(usc::SearchQueryBase::query()); std::string query_string = query.query_string(); Libertine::UPtr libertine = libertine_factory_(); for (auto const& container: libertine->get_container_list()) { auto category = reply->register_category(container->id(), container->name(), "Application", usc::CategoryRenderer(CATEGORY_APPS_DISPLAY)); for (auto const& app: container->app_launchers()) { if (app.no_display()) continue; usc::CategorisedResult result(category); result.set_title(app.name()); result.set_art(app.icon()); result.set_uri(app_uri(*container, app)); if (!reply->push(result)) { break; } } } } libertine-scope-1.0/libertine-scope/scope.cpp0000664000000000000000000000600012656376666016252 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "libertine-scope/scope.h" #include "libertine-scope/preview.h" #include "libertine-scope/query.h" #include #include #include #include namespace usc = unity::scopes; namespace { /** * @todo move this class into its own source file. */ class ScopeActivation : public usc::ActivationQueryBase { public: ScopeActivation(usc::Result const& result, usc::ActionMetadata const& metadata) : ActivationQueryBase(result, metadata) { } usc::ActivationResponse activate() override { return usc::ActivationResponse(status); } usc::ActivationResponse::Status status = usc::ActivationResponse::Status::NotHandled; }; } // anonymous namespace Scope:: Scope(Libertine::Factory const& libertine_factory) : libertine_factory_(libertine_factory) { } void Scope:: start(std::string const&) { setlocale(LC_ALL, ""); std::string translation_directory = ScopeBase::scope_directory() + "/../share/locale/"; bindtextdomain(GETTEXT_PACKAGE, translation_directory.c_str()); } void Scope:: stop() { } usc::SearchQueryBase::UPtr Scope:: search(usc::CannedQuery const& query, usc::SearchMetadata const& metadata) { return usc::SearchQueryBase::UPtr(new Query(query, metadata, libertine_factory_)); } usc::PreviewQueryBase::UPtr Scope:: preview(usc::Result const& result, usc::ActionMetadata const& metadata) { return usc::PreviewQueryBase::UPtr(new Preview(result, metadata)); } usc::ActivationQueryBase::UPtr Scope:: perform_action(usc::Result const& result, usc::ActionMetadata const& metadata, std::string const& /* widget_id */, std::string const& action_id) { auto activation = new ScopeActivation(result, metadata); if (action_id == "open") { url_dispatch_send(result.uri().c_str() , NULL, NULL); } return usc::ActivationQueryBase::UPtr(activation); } #define EXPORT __attribute__((visibility ("default"))) // These functions define the entry points for the scope plugin extern "C" { EXPORT unity::scopes::ScopeBase* // cppcheck-suppress unusedFunction UNITY_SCOPE_CREATE_FUNCTION() { return new Scope(); } EXPORT void // cppcheck-suppress unusedFunction UNITY_SCOPE_DESTROY_FUNCTION(unity::scopes::ScopeBase* scope_base) { delete scope_base; } } libertine-scope-1.0/libertine-scope/scope.h0000664000000000000000000000466612656376666015737 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_SCOPE_H_ #define LIBERTINE_SCOPE_SCOPE_H_ #include "libertine-scope/libertine.h" #include #include #include #include /** * Controller for the entire scope. * * An instance of this class gets instantiated when the scope plugin gets loaded * by the thing that loads scope plugins. */ class Scope : public unity::scopes::ScopeBase { public: /** * Constructs a Scope. * * @param[in] libertine_factory Creates a Libertine Proxy instance. The * default it to proxy the Libertine CLI tools. */ Scope(Libertine::Factory const& libertine_factory = Libertine::from_libertine_cli); /** * Initializes the scope instance. */ void start(std::string const&) override; /** * Tears down the scope instance. */ void stop() override; /** * Called each time a new query is requested */ unity::scopes::SearchQueryBase::UPtr search(unity::scopes::CannedQuery const& query, unity::scopes::SearchMetadata const& metadata) override; /** * Gets an application preview. */ unity::scopes::PreviewQueryBase::UPtr preview(unity::scopes::Result const& result, unity::scopes::ActionMetadata const& metadata) override; /** * Performs an action in response to user interaction with the preview. */ unity::scopes::ActivationQueryBase::UPtr perform_action(unity::scopes::Result const& result, unity::scopes::ActionMetadata const& metadata, std::string const& widget_id, std::string const& action_id) override; private: Libertine::Factory libertine_factory_; }; #endif // LIBERTINE_SCOPE_SCOPE_H_ libertine-scope-1.0/libertine-scope/CMakeLists.txt0000664000000000000000000000077712656376666017214 0ustar SET (CMAKE_AUTOMOC ON) pkg_check_modules(URL_DISPATCHER REQUIRED url-dispatcher-1) # Find all the sources file(GLOB_RECURSE SCOPE_SOURCES "*.cpp" "*.h" ) add_library(scope SHARED ${SCOPE_SOURCES} ) include_directories(${URL_DISPATCHER_INCLUDE_DIRS}) target_link_libraries(scope ${SCOPE_LDFLAGS} Qt5::Core Qt5::Gui ${URL_DISPATCHER_LIBRARIES} ) set_target_properties(scope PROPERTIES OUTPUT_NAME "${SCOPE_NAME}" ) install(TARGETS scope LIBRARY DESTINATION ${SCOPE_INSTALL_DIR} ) libertine-scope-1.0/libertine-scope/container.cpp0000664000000000000000000000177612656376666017142 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "libertine-scope/container.h" Container:: Container(std::string const& container_id) : id_(container_id) , name_(container_id) { } Container:: ~Container() { } std::string Container:: id() const { return id_; } std::string Container:: name() const { return name_; } Container::AppLauncherList const& Container:: app_launchers() const { return app_launcher_list_; } libertine-scope-1.0/libertine-scope/applauncher.h0000664000000000000000000000247512656376666017124 0ustar /* * Copyright 2015 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_APPLAUNCHER_H #define LIBERTINE_SCOPE_APPLAUNCHER_H #include /** * Information on a container application launcher. */ class AppLauncher { public: /** * Constructs an AppLaunchder object from a JSON string. */ explicit AppLauncher(std::string const& json_string); virtual ~AppLauncher(); virtual std::string id() const; virtual std::string name() const; virtual bool no_display() const; virtual std::string icon() const; virtual std::string desktop_file() const; private: std::string name_; bool no_display_; std::string icon_; std::string desktop_file_; }; #endif /* LIBERTINE_SCOPE_APPLAUNCHER_H */ libertine-scope-1.0/libertine-scope/libertine.cpp0000664000000000000000000000605412656376666017127 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "libertine-scope/libertine.h" #include "libertine-scope/container.h" #include #include #include #include #include #include namespace { /** * A real Libertine Container created by using the Libertine tools. */ class LibertineContainer : public Container { public: LibertineContainer(std::string const& container_id) : Container(container_id) { QProcess libertine_container_manager; libertine_container_manager.start("libertine-container-manager", QStringList() << "list-apps" << "--id" << QString::fromStdString(id_) << "--json"); if (libertine_container_manager.waitForFinished()) { QJsonDocument json = QJsonDocument::fromJson(libertine_container_manager.readAllStandardOutput()); QJsonObject object = json.object(); QJsonValue name = object["name"]; if (name != QJsonValue::Undefined) { name_ = name.toString().toStdString(); QJsonValue v = object["app_launchers"]; if (v != QJsonValue::Undefined) { for (auto const& app: v.toArray()) { auto json = QJsonDocument(app.toObject()).toJson().toStdString(); app_launcher_list_.emplace_back(AppLauncher(json)); } } } } } ~LibertineContainer() { } }; class LibertineCli : public Libertine { public: LibertineCli() { QProcess libertine_container_manager; libertine_container_manager.start("libertine-container-manager", QStringList() << "list"); if (libertine_container_manager.waitForFinished()) { QString container_id_list(libertine_container_manager.readAllStandardOutput()); for (auto const& id: container_id_list.split("\n", QString::SkipEmptyParts)) { container_list_.emplace_back(new LibertineContainer(id.toStdString())); } } } Libertine::ContainerList const& get_container_list() const override { return container_list_; } private: ContainerList container_list_; }; } // anonymous namespace Libertine:: ~Libertine() { } Libertine::UPtr Libertine:: from_libertine_cli() { return Libertine::UPtr(new LibertineCli()); } libertine-scope-1.0/libertine-scope/localization.h0000664000000000000000000000073612656376666017310 0ustar #ifndef LOCALIZATION_H_ #define LOCALIZATION_H_ #include #include inline char* _(const char *__msgid) { return dgettext(GETTEXT_PACKAGE, __msgid); } inline std::string _(char const*__msgid1, char const*__msgid2, unsigned long int __n) { char buffer [256]; if (snprintf(buffer, 256, dngettext(GETTEXT_PACKAGE, __msgid1, __msgid2, __n), __n ) >= 0) { return buffer; } else { return std::string(); } } #endif // LOCALIZATION_H_ libertine-scope-1.0/libertine-scope/libertine.h0000664000000000000000000000355412656376666016576 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_LIBERTINE_H #define LIBERTINE_SCOPE_LIBERTINE_H #include #include #include class Container; /** * Proxy object for the Libertine ecosphere. */ class Libertine { public: using UPtr = std::unique_ptr; using ContainerList = std::vector>; /** * Queries need to be parametrized on the Libertine implementation for reverse * dependency injection during unit testing. */ using Factory = std::function; public: virtual ~Libertine() = 0; /** * Gets a list of identifiers for all Libertine containers on the system. * * This is a blocking call, so it may take a while to complete but it should * be fairly fast in most cases. There is no locking associated with * resources so it's possible that the list may not disagree with what's * expected due to races if a container is created or destroyed while this * function is running. */ virtual ContainerList const& get_container_list() const = 0; /** * A default Libertine factory to create the Libertine object using the * command-line tools. */ static Libertine::UPtr from_libertine_cli(); }; #endif /* LIBERTINE_SCOPE_LIBERTINE_H */ libertine-scope-1.0/libertine-scope/preview.cpp0000664000000000000000000000313212656376666016625 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "libertine-scope/preview.h" #include #include #include Preview:: Preview(unity::scopes::Result const& result, unity::scopes::ActionMetadata const& metadata) : PreviewQueryBase(result, metadata) { } Preview:: ~Preview() { } void Preview:: cancelled() { } void Preview:: run(unity::scopes::PreviewReplyProxy const& reply) { reply->push("description", unity::scopes::Variant("A Description")); unity::scopes::PreviewWidget image_widget("myimage", "image"); image_widget.add_attribute_mapping("source", "art"); unity::scopes::PreviewWidget buttons("buttons", "actions"); unity::scopes::VariantBuilder vb; vb.add_tuple({ {"id", unity::scopes::Variant("open")}, {"label", unity::scopes::Variant("Open")}, }); buttons.add_attribute_value("actions", vb.end()); unity::scopes::PreviewWidgetList widgets{ image_widget, buttons }; reply->push(widgets); } libertine-scope-1.0/libertine-scope/container.h0000664000000000000000000000316712656376666016603 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_CONTAINER_H #define LIBERTINE_SCOPE_CONTAINER_H #include "libertine-scope/applauncher.h" #include #include /** * A Libertine container proxy. * * A Libertine container is really just a named collection of applications. * * This class itself is an opaque interface so it can be faked during testing or * provided for reals in production. */ class Container { public: using AppLauncherList = std::vector; public: /** * Constructs an identified container. * * Synchronously scans the Libertine container for eligible application * launcher .desktop files and their icons. */ explicit Container(std::string const& container_id); virtual ~Container() = 0; virtual std::string id() const; virtual std::string name() const; virtual AppLauncherList const& app_launchers() const; protected: std::string id_; std::string name_; AppLauncherList app_launcher_list_; }; #endif /* LIBERTINE_SCOPE_CONTAINER_H */ libertine-scope-1.0/libertine-scope/query.h0000664000000000000000000000247312656376666015765 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_QUERY_H_ #define LIBERTINE_SCOPE_QUERY_H_ #include "libertine-scope/libertine.h" #include #include /** * Engine to run a specific scope query. */ class Query : public unity::scopes::SearchQueryBase { public: Query(unity::scopes::CannedQuery const& query, unity::scopes::SearchMetadata const& metadata, Libertine::Factory const& libertine_factory); ~Query() = default; void cancelled() override; void run(unity::scopes::SearchReplyProxy const& reply) override; private: Libertine::Factory libertine_factory_; }; #endif // LIBERTINE_SCOPE_QUERY_H_ libertine-scope-1.0/libertine-scope/preview.h0000664000000000000000000000211112656376666016266 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_PREVIEW_H #define LIBERTINE_SCOPE_PREVIEW_H #include class Preview : public unity::scopes::PreviewQueryBase { public: Preview(unity::scopes::Result const& result, unity::scopes::ActionMetadata const& metadata); virtual ~Preview(); void cancelled() override; void run(unity::scopes::PreviewReplyProxy const& reply) override; private: }; #endif /* LIBERTINE_SCOPE_PREVIEW_H */ libertine-scope-1.0/libertine-scope/applauncher.cpp0000664000000000000000000000413612656376666017453 0ustar /* * Copyright 2015-2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "libertine-scope/applauncher.h" #include #include #include #include #include #include AppLauncher:: AppLauncher(std::string const& json_string) { auto doc = QJsonDocument::fromJson(QByteArray::fromStdString(json_string)); auto obj = doc.object(); name_ = obj["name"].toString().toStdString(); no_display_ = obj["no_display"].toBool(); QJsonValue icons = obj["icons"]; if (icons.isArray()) { int width = 0; for (auto const& icon: icons.toArray()) { QString icon_file_name = icon.toString(); if (icon_file_name.endsWith(".svg", Qt::CaseInsensitive)) { icon_ = "file://" + icon_file_name.toStdString(); break; } QImage image = QImage(icon_file_name); if (image.width() > width) { icon_ = "file://" + icon_file_name.toStdString(); width = image.width(); } } } desktop_file_ = obj["desktop_file_name"].toString().toStdString(); } AppLauncher:: ~AppLauncher() { } std::string AppLauncher:: id() const { QFileInfo fi(QString::fromStdString(desktop_file_)); return fi.baseName().toStdString(); } std::string AppLauncher:: name() const { return name_; } bool AppLauncher:: no_display() const { return no_display_; } std::string AppLauncher:: icon() const { return icon_; } std::string AppLauncher:: desktop_file() const { return desktop_file_; } libertine-scope-1.0/README.md0000664000000000000000000000233312656376666012635 0ustar Libertine Scope =============== The Libertine Scope is a Unity Scope that surfaces application launchers contained in Libertine sandboxes. Building the Scope ------------------ See the file debian/control for a list of required build dependencies. Once the build dependencies are installed, all you should need to do to build the project is the following set of commands. mkdir build && cd build cmake .. make Testinmg the Scope ------------------ To test the built scope, it needs to be be installed into a staging area first. That's because the Unity test tools have rigid assumptions about the layout of various installed data files, and the division between the sources and the built artifacts that the CMake toolchain delivers do not meet those assumptions. SO be it: installing into a staging area is no great hassle, but if you forget to do it in your compile/install/run cycle you will meet with frustration. Without system installation, you can test the scope using the unity-scope-tool package available in the Ubuntu archives. Here's the typical build/install/test cycle. make install DESTDIR=/tmpstaging/ unity-scope-tool /tmp/staging/usr/local/lib/unity-scopes/libertine-scope/libertine-scope.ini libertine-scope-1.0/po/0000775000000000000000000000000012656376703011763 5ustar libertine-scope-1.0/po/CMakeLists.txt0000664000000000000000000000022412656376666014531 0ustar intltool_update_potfile( ALL GETTEXT_PACKAGE ${GETTEXT_PACKAGE} ) intltool_install_translations( ALL GETTEXT_PACKAGE ${GETTEXT_PACKAGE} ) libertine-scope-1.0/po/Makefile.in.in0000664000000000000000000000010112656376666014435 0ustar XGETTEXT_KEYWORDS=--c++ --keyword=_ --keyword=N_ --keyword=_:1,2 libertine-scope-1.0/po/POTFILES.in0000664000000000000000000000105312656376666013547 0ustar libertine-scope/query.cpp libertine-scope/container.cpp libertine-scope/applauncher.cpp libertine-scope/libertine.cpp libertine-scope/preview.cpp libertine-scope/scope.cpp tests/fake_container.cpp tests/fake_libertine.cpp tests/test_scope.cpp libertine-scope/preview.h libertine-scope/libertine.h libertine-scope/scope.h libertine-scope/applauncher.h libertine-scope/query.h libertine-scope/container.h libertine-scope/localization.h tests/fake_container_json.h tests/TypedScopeFixture.h tests/fake_libertine.h tests/scopefixture.h tests/fake_container.h libertine-scope-1.0/COPYING0000664000000000000000000010451312656376666012414 0ustar GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . libertine-scope-1.0/manifest.json.in0000664000000000000000000000074012656376666014464 0ustar { "architecture": "@CLICK_ARCH@", "description": "A Unity scope that surfaces Legacy apps from a Libertine container", "framework": "ubuntu-sdk-15.04.3", "hooks": { "libertine-scope": { "apparmor": "libertine-scope.apparmor", "scope": "libertine-scope" } }, "maintainer": "Stephen M. Webb ", "name": "libertine-scope.canonical", "title": "libertine-scope", "version": "0.1" } libertine-scope-1.0/debian/0000775000000000000000000000000012656376703012567 5ustar libertine-scope-1.0/debian/compat0000664000000000000000000000000212656376666013775 0ustar 9 libertine-scope-1.0/debian/upstream/0000775000000000000000000000000012656376703014427 5ustar libertine-scope-1.0/debian/upstream/signing-key.asc0000664000000000000000000003061712656376666017362 0ustar -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1 mQINBE57SAgBEADvDZbwpDG5dr3L1kLA4w7faU2oSMHvVe4uKqXUAjekdZObRQxB KenGj5BiQVXhy8ocwVkPros7YO2pQTcSt+zpUHx82Lp43faVOCnfanRxF/qAaMYR 6Jv874ckkPCghGoPn8upaN3ofbQaoiN7pjmszzkH14NrZdbQBiYasotEdU7+E1qa QBbSOxIstZEh4E2b4o5bNK/FKSOV45LZ13+/ZL2+kPx8hKGmUfxaYiEqaydLYilD BXcbRrMdclb20mHGSOkxyf6nBCBE0Jdea4+PGHj4evbmExk3fjADHX6eTekjPirx ZfOu8yNgneJ6RH8fxrgINbftgChLpXh7htHBEZL3zxJL1z55O5LWMPBLiKqijT05 bTV/u8ZomCFYKpOwse4TM8J5azNC5s2X7p7ObUlo5sytOTwNaK/1hYQGQeWuPEWa 8xzC9XFBFXpk74qRVkNaBJnnvblUrBMpvCmK8P+aaKIwbvShSSB9XMEjmMvWrLPD NbZia6qceS22duGrq0v7/3iIys5eRs2ohuKkiwSznrie7W48cMQ++1YDIe+sBN5+ RAmNhVZM5wHzSdfSgOBS6M7ijcmMnE4JFPLYUZNLdJzSJo7pn6POhSH/PqIiUZH2 5lCuJZjydMpKlTolFqLrFDGZANzDKY1EveDhf8aGvI4i03WqH5hZg8wymwARAQAB tCxTdGVwaGVuIE0uIFdlYmIgPHN0ZXBoZW4ud2ViYkBicmVnbWFzb2Z0LmNhPokC OgQTAQgAJAIbAwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgAUCTntJDAIZAQAKCRAK D/hFt9s0J3ccD/9DnTOjv0Evc81izaZ9siOV5HoyS9caK0Cq822EFLg7YiR1omuP 1MDu5/t6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T4uOE3fTDREEOSfk/6rtrD7I/fID8hdWECZkmj2GWu R6a01epugy94MNjgIYvpiQIfBBgBCAAJBQJPsITtAhsMAAoJEAoP+EW32zQnELQQ AJ8bbinEVUa9CZhDJsXdUwnttkqYqZrAJbxw/fZ82we+pPrIfxdgvcA2YGryjo1l UoDY+pLiFo09cYx22VfK3LDQVPOb/8LDS7F/jkv3QtbJADYRoM5F6CKC5sbk93Mo nglok7vLQsBNDlQs8LMDAStf0l8IkuTt+60QRAeC9CfllvLBGJw5uzEfNQ2INX6X n6V4u7MryTI+YbjR+0gyWQ67aTYXcLNSYjMpjaBwSPtsvdxu7iANEf+nCaky3DMe R3eq+Mnh0kiovjzl6TJpKOh170Z52Ngxey4oPwdklyw2Mp6BTAw0s8L4riKns1DF sjumoBa6KW6Q4NqgRH/NJ7dtI5oIg6eZ887wK/hNeu/gleqJgPh16dCn2ljT9C6Z p4SvclmPUfNZ1DY+qHvIKhGDmWqHIv+OsQA5IUI+NZzCRDZo4sSA83seyWwHQgir aexhUobmuzlF5L0lNrMWqQa2w3khKPbB9TKJrJjXvvSnCpS0ro8FGc+mpNi5sEP/ E5Ez63URsPmLpvyoxMhKnFGaYZ2gO1po2wi58PuIzkF9IWyZHiCk3+Sb9De4GjSU Fa8nFibyLQF4NyYNY8MwtyD6zt0IDwYKGDte+nXz3Q4j+D8pULr28K0oifln0o49 ql0eDU2Gu8QDGFjClmH45xRNRtlLFp1tguTLlIRlL5nS =TJFo -----END PGP PUBLIC KEY BLOCK----- libertine-scope-1.0/debian/changelog0000664000000000000000000000025312656376666014451 0ustar libertine-scope (1.0-0ubuntu1) xenial; urgency=low * Initial release (lp: #1541417). -- Stephen M. Webb Wed, 03 Feb 2016 19:42:14 -0500 libertine-scope-1.0/debian/copyright0000664000000000000000000000331612656376666014535 0ustar Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libertine-scope Source: https://launchpad.net/libertine-scope Files: tests/TypedScopeFixture.h Copyright: 2013 Canonical Ltd. License: LGPL-3.0 This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation. . 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 Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-3". Files: * Copyright: 2015-2016 Canonical Ltd. License: GPL-3.0 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. . This package 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 . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". libertine-scope-1.0/debian/watch0000664000000000000000000000020412656376666013624 0ustar version=3 opts="pgpsigurlmangle=s/$/.asc/" \ http://launchpad.net/libertine-scope/+download .*/libertine-scope-([0-9.]+)\.tar\.bz2 libertine-scope-1.0/debian/rules0000775000000000000000000000006412656376666013657 0ustar #!/usr/bin/make -f %: dh $@ --with translations libertine-scope-1.0/debian/control0000664000000000000000000000221312656376666014200 0ustar Source: libertine-scope Section: x11 Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Stephen M. Webb Build-Depends: cmake (>= 3), cmake-extras, debhelper (>= 9), dh-translations, google-mock, intltool, libunity-scopes-dev (>= 0.6.0), liburl-dispatcher1-dev, pkg-config, qtbase5-dev Standards-Version: 3.9.6 Homepage: https://launchpad.net/libertine-scope Vcs-Bzr: https://code.launchpad.net/~libertine-team/libertine-scope/devel Vcs-Browser: https://bazaar.launchpad.net/~libertine-team/libertine/devel/files Package: libertine-scope Architecture: any Depends: libertine-tools, ${misc:Depends}, ${shlibs:Depends} Description: Libertine packages scope for Unity The Libertine package scope surfaces applications installed in a Libertine sandbox for the support of deb-packaged X11-based legacy software that is still waiting to be ported natively to Unity. . This package provides the Libertine scope itself. libertine-scope-1.0/debian/source/0000775000000000000000000000000012656376703014067 5ustar libertine-scope-1.0/debian/source/format0000664000000000000000000000000412656376666015304 0ustar 1.0 libertine-scope-1.0/libertine-scope.apparmor0000664000000000000000000000014012656376666016177 0ustar { "template": "ubuntu-scope-network", "policy_groups": [], "policy_version": 1.3 } libertine-scope-1.0/data/0000775000000000000000000000000012656376703012256 5ustar libertine-scope-1.0/data/logo.xcf0000664000000000000000000012054412656376666013736 0ustar gimp xcf fileRB%B%6 gimp-commentgimp-image-grid(style solid) (fgcolor (color-rgba 0.000000 0.000000 0.000000 1.000000)) (bgcolor (color-rgba 1.000000 1.000000 1.000000 1.000000)) (xspacing 10.000000) (yspacing 10.000000) (spacing-unit inches) (xoffset 0.000000) (yoffset 0.000000) (offset-unit inches) -P km% Pasted Layerk     M~%--%!99999    򮴵 񱳳 𭱱             -///00MABCC9@ABB9?@@AA9>??@A9>?@9=>>? JLMNNOP[^_``bcdeffjllmm<==>> DHHIJKLMNNOLXY[\]^_`abcddhij<= BEFGHIIJKLMMNIUVWXYZ[\]^_``adeef;<<= CDEFFEHIJKLMMRSTUUVXXYZ[\\]^abab;< BCDDEE?FGIIJKKMOQRRSUI@WXYZZ[^_I]__:;;< @ABCBCUEGHIIMNOPPVWXX Z::; @ABFGHKLMNNSTTUV [9:: >?@@ABBCCDDEFFGJKLLKQRSRUUVVW9: >??@ABCCDDEHIIJJAOPQRSST9 =>>??@ABCDFGHHFMNPQR89 <==>>?@ABCDEFGGHKLMNNONOO89 ;<== CDEEIJKLLMLJ@788 9;<<; BCCDDC?GHHIIJJK78 :;<;<91>=>>ABCECDEFFGGGHHIIGC789:;<=>@ABCDEEFGGH7789:;<=<=?>?@AABCDCDDEEF678:8::;<=>??@ABBBCDD6789:99::;;<>>?>@@A@@CBBCBC,?@09<<=:31:==>>?/:;;<=<>/9::;;<;909:;:289:9::98M99999 "#%%&(()4789;;=>>@@?FG  "##$%&'((72456789:;<==>BCD  !"#$%%&&'4.01234567899:;>??@@  !!#$%%#,-./0112456678;<;;== !"#$$)*+,,./.123445897:: !""#$&())*+-0122 5  !!"%&'((-.//0 -  !#$%&'(+,,--/001011 "##$$)*++,--../ !"#%'())*++,,  !!%&&'(())*  #$$%%&&''(&  "#$%%#   !!""##! !"#  !-00011N;;;;;iߠ5 +Ɵp9.{ ( k   yp 1k0 r ;k$: S6 D { g  P  )N Y k L ^ IX*F D< -F S 0Rz _5A)-'90+t7,&0 1y1*vxM6543  𠟞¾º֚򲱰𰱰𮯮󣨩ɚ11223_=<;;:996=<<;::985;<<;::98854<;:998763>;;:9988771mlhgfdcba__]\[ZXMLKJIH <;;:997764jiihdeedcba`_^\[[ZXWULKJIGF <;::98877665ffedcbba`_^^][ZYXWVUSIJIHGFD:987676652ccb`_^][ZZYXWTUUTSRQJIHGFD=;::98776654``__[]]\[[ZXUWVVUSSRQPOHGFFDC5:99876554\[[ZYXXQPPONMBGFEDCA9876345544ZZYXWVNMLKIHDEEDCBA98765B44WVUUTTQLKJIHGDDCCBAA89988765443TTSRUJIHHGF?CCBAA?987673443RRPOFGHHGFEECBBA@?=9887766543ONMJEFFEEDCBAA@?>;3776543MLK DCBBAA@@?>=8776543KIJJICDCCBAA@??>==765432IIIHHGFEADEDDDBAA@@??>>=<97665322HHGFEDC@?>=<;766543-12FFDEDDCBA?>=<;; 654*11DDCDABBA=<;9755432BCBAA@AA@@?@@<;: I554327<<;;::91;<;9;;:9881;:9872:98629874898876_6543GEBCB@@>=<<;987642*(&%$" DDBCA@?>=<;:98655321'&%$#! AA@AB:==<<;:9876553210.)%$$#"!==<:987665431/10/.-+$#"! #:9688776433221./.-,+*$#"!  75431+*)(""! 443210*)('&&%!! 12110/-('&&%$# /.-,#%$#"") -,,++*)#$#""! **))!""! ('&% &&%$!$"$##" ! ##"!!  !!          11323_5UT76+(54  yK͌.^` eaD  T H +8=(Q D*4P m, w|yd HC4'.A  cbk W (GR /   t h?Z _K B C* GP254 _7  ޽] j՛>da . 0 6r3+'3/4;5H{`wՍ׊אb׎ٌڌڌ׊ۉ|iڋ          S32120/0-.-321(0/& .-3210(0/.& .32210100/./..,+..--=2I100-0/IG../,.,*G-.--3210/0/G..//..-321/000//./..+3621.00//,.//..-.- 3321,00/C./..F--..-32211100///.E,--.-,22-1100///.@F--,--.--21/0//.C+--211-/00//+-..-H+--21.110.)//0/0/.-'-../,-,%#,--210110/-/.,-.-,21101100/.-/.-+-.-10+100/00//..-/.-,,-,110+00/0//.*/.-)E,--.0 /. 0 /.. 0 . 0/ . 0/ . 0/ .S                                                                                                                           RΎ0Ύ061    b#s#sT*1,1, Q ==, .\T/8  R200%^xx [JJ D BD B+n. a 3 3o A A?z?z/З7!!!!!T\. :Drop Shadow #1     E.:.OP:.8BMD5 1.+                     !$&&$!     #'+--+'#  "(-1331.("   !"##"  &-37::73-' #&(**)(&#!!#&(*,--+*(% "*18=??=82+$#(,0345420-*'$#"#$&),/24677531. %-5@@?=:730-++J-/269<>@ABA@>;8 '08@EHHE@91)"!'.5;AFJLLKIFB>:754469FLRUXXWTQMHD@>=>?BEHLOQSTUTSQNJ !*4=EKNNLF?7/(# #'.6?GPW\accb_[WRMJGFGHKNQTWY[\]\[YVS !+5>FMPPNHA91*&#$',4=FPY`fjlmkhd_ZVRPNOPSVX[]`abccb`]Z ",5?HNRRPJC;4-)'(+2:CNXaiosuusplgb]YWUVWY\^acdfghhfda ",6@IOSTRMF>60,*,07?IT^gouy{zxuqlfb^\[[]_aceghjkllkig ",6@IPTUSNH@93/./4;DNYcltz}~|xtojeb__`befhiklmnoponl ",6AJQUVUPJC<63238?HR]gpw}}yupkfca`acegijlmnpqrssrp ",6AJQVXVRMF@:767;:;?FNW`jrx|}zvqkgc`__acfikmoprtvwxyxw !+5?IQVYYWSMHC?>?BHOW`hpuy{{yvqlgb_\\^aehknprtvxz{{y  )4>GPUYZXUPKGCBBEIOV^flquvvtplgb]ZXWX[^bgjnqsvxz|}}|{ (2?BGMT[biotx{}~}zws #+29?DGHHGEC@><;;<=@BEGIIHEB?<9779@@><:86544568:<>>=;96310136  &-39?DHJKJHD@:4      !&,26;>?@?=950+     %)-135542/+&" "%()**)(%"   !!       )  ), - /3;:8 $                  "      $+  #+3     "*3<#"! !"#%'())'%#! "$%''(('&%$"! (1;E,*)()*,.02331/-*(&%%&')+-./00/.,+)'&%%$#!%-7BM53101357:<>><:741/../024678998764210/..-+($!"*3>IT>;:9:;>ADGIIHEB?<:88:;=>@@A@?><;9988753/+&" &/9DO[GDBABDGJNQSTTSPMJFDBBCDFGGFGHGFEDCBBA@>:61+&" $+4>JUaOLJIJLOSWZ]^_][XTQNLKKLMMNMMLKKLNOPPONNMLKJIFA<60*%""$(/9CO[fWTRQRTW[_cfhhgeb^[XUTTSRQONMMNPRTVWXXWVUSQMHB;4-(%%',4=HT_j^[YXY[^bgknpqpnkgc`^\[[ZYXVTQONNPRUX[]_`aa`_^\XSMF>70+((*08BMXcnda`_`beinruwxwurnkgeca`_][XURONNPRVZ^begiiXhfc^YQIA92-**-3FMRVYspmkjijklljhd`\XURQPPONMKIGFFHLQYaks{}uk`SG;1*%#$',29@FJMOnjfcaaba_]ZVRNKIGGHGFEDCDFJPW`hqx|~|wpeZMA6,%! #(-39>ACDgb^ZXWVVWWVTQNKGCA?==>>?@@?ADHNU]emswxvqi_SG;0(!#(-25899_YTPMLKKJIGEB?<864334567899:;=@EKRZbinqroiaWK@5+#"&*-.//VPJFCA??>=;9741.,**+,-/012358BCCA=82+$  %    $(-2589863.)#     "&),./.,)%    !#%%$#                    0  5 31/     .         #&()('$        (-13431-(#       17<>?><72,%  ;BGJKJGB<5-'!ELRVWVRMF>6.(# "$$%%$"!!#$%%$" NV]aba]WPG>6/*&$$%'),-.//.,*(&$#""$&(+-.//-,*'$" !#%&'&%#W_fjlkgaYPG>71.,,.0357998642/-,+*+-/24789:98630-+(&%%&'),./00.,_gnrtsoiaXOF?954569<97544579>?ACFILMNNLJGDA=;8779AFJNSX]bgknonlhd_ZUQNMMNQUZ_dhjkifb]WQLFA<8533469<@CEED.,+**+-/37;@EJOU[`dghgea\WRMIFDDFIMSX]acdb_[UOIC=830-++,.147:;<;$#"!!#&)-16;AFLRW\^`_\XSNHC?<;;=AEKPVY\\ZVRLF@:4/+'%$$%'),.0221 $(-27=CINSUVUSOJD?:632358=CHMQSSQMHC<61+'# !$&'(( $).4:@EIKLKHD?:50-**-05:?DGIIGC>93-(#  !&+16;?AA@>:50,($""#%)-27;>??<94/*%   #(-1577640,'# !%*.24553/+&"  !%(+--,*'#"&)+,+)&#      "$$#!!##"!                    " NNN         ($ 0*% 71*# ?80(! F>6-% LC:1(  QH?5,# VMC9/& ZQG=2)  ]TK@6+" _WMC8.$ `YOE:0& `YPF;1' _XPF<1' \VNE:0& XRJA8.% RLE=4+" JE?7/' A=71)" 84/)# /+'" &#        i4% Legacy Apps     Igimp-text-layerr(markup "Legacy Apps") (font "Sans") (font-size 18.000000) (font-size-unit pixels) (antialias yes) (language "en-us") (base-direction ltr) (color (color-rgb 0.866667 0.282353 0.078431)) (justify left) (box-mode dynamic) (box-unit pixels) (hinting yes) Rb%R~kk%RZd ;;;;;     ə ܪ            Й     .90̙0 1 ܀1MH;H;H;H;H;HIHGHHG EHHGGHHFFHHGHH DHHG8GGHHHH DGHHG8H HHH GHHGF;GHHGHGHI@IGHHHGII3FGH HGUGHHGEGHHGEHH GHHFEHHGHGHH HGKHHGHFHH GH HHEHDHGHGHHH HGH3HGHHH HGHHEHHH GHHF GHHIHGHHGE@H GHHG GHHGHHIH EHHGE HG@HGHHH UGHHGH@3IGHGIGHHGHLIFGHHGHHG@ HHGHHHGH HFHH HIGHHGFGH HFGHH H3HGHGGHGHGEHGGHGGEHHGIHHG-FHHG9H1EHHI@38DGGHHGH0GH HF1GHHG2GFGGHGHGDM;;;;;                          .:0 0 1 2N @57755      ڪ  ܪ             63ܶ345`5GHH8GHH7EHHD5GHHG4IGHH@GG@FHHGHHFHHGHH HDGHHFHHGFEGHHGGHHGHG HHHHGEGHHHGEGHHF EHHGFHHDGHHGHHG@EFGGCGHHHG8 HGHGHHDHHGIHGHHG @GHHGHHGUDHHGHGHH@HHF FHHGFBGHHGUHHGHHFHHFEHHGI GHHGGHHHDHGGHH EHHGHGHHHUFHHU@GHHG HGKDHHGHH;DHHGFHHGD HHHHE GHHGGHHG @GH HHHH FHHGHHF HHHFHH@KHHGHHGL GHHHHHUHHGH@@GGHG KHHGHFHHGHH HG@*GHHIGHHGHG H GHHGHFE8GGHGHGHIFHHF IGHHF IHGHHGL6@HHG3EHBFGHHGI3GHHE4GHH6FHGGHG`57754                            6 4545` @    ֪  ܙ  ܪܪę     ܪ!!!!!THGHGGIHGHGGIEGGHHGG H; H;GHHG HG; HG; HHIGFGHHGHIGFGHHGGHHGB*GHGGHGHDHGHDGHHD HGHHGHGHHGHG HFHHHFHHHDLHCHHGHCHHGFHHG3HH@HHH@HHEHHGGHIHHGHIHHG@FGHHGFG@HIHHHIHHCGGHHGHHHGHHGHGHHG HGHGHCHHGHCHHG @HHGHHCHGF;EHGHHGUHGF;EHGHHGUEGGF;3FGHHGHHF HGD HGDGHHFHHG HE HEGHHGUHHG@HHGHHGHF@HGHHGHF@EGHGGHIHH!HH!HH!HH!HH!HHT                       !!!!!T=\. RText      lRlmmmRlmmm'm7mGmWmgmwm)G# @Image     ni@n@nTdtQ.AR.'&ESD/& !'+'$)EG+)GU]HC+     .!?3     ;D"       4     .        [=           '  H<Rt   +'US$ //WS $9   $?  g<Z\        W1%#  (o7  1;* ebRM<+  CCA403A b0  "  +Y U% %  , C  $ 0 < #  < ? !  #O 6    "] [   2T -"    *+ \%     6 W8 "$#   +]E)  .;=7( &T)  &0:DD>2$  D<$  *3JT\`b[QB7,"  09@f?!*5ALU\aaZSK=.$  \Op B +7?IKTVPH>3',s%:%$))1.,&+m(n1,".+C,`D8=85-.3889>TTR0EU0**HUF1'#"#*-*!"%)FJ-+JX]JE-#  1%@4     <C#      6     .     Y<           #"  '  F<So,'UQ$ .-UT $9   #?  f;W]       T0$$  (l7 0;)  daSK<+  CB@5/1? a/ "  )Y V% %   , C! $ 0 ; #  ; >  "  #O 5      !] Z    2M +"   +, [$      4 T7 "$#   +\B(   .;=7( $R) &0:DD>2$  A:#  *3JT\`b[QC7,"  /9?c< *5@LU\`aZSI<.% ZMo A +6@ILSUPH=2',q%8%$*+//+& )k(n0*!.+A,[D8<73,-2778=SSF'2-2= \-   (T Q%%  * @ $ , 9#  8 ;  ! !H 3   T Y    0E *"  &, V$    / O4    "$#   'V>'  .;=7( "Qs)   $/:DD>2$  <:# )2HQYZRF<.#  'O? &0;HRZ^`YOC6*    ,6<`<(3?KTZ^`YQH<," UIj >(46931)+.5569MK $+6>Yqеa@3% 5Jx^=cQ#*B%-2$$$q#CK""!  HP     Vq ,5 $+ &! N:!|$\%lK) - P0 0 0p / . - ?+ %)J (%F%+"oB ޡ_"re*tc |F%W⮉7( Z V/ , 'LͦkG* G#RR Drop Shadow     lRRRR&                  !"#$%%&''(('&%$#!     #%(*+-/01234556654310.+)&#   $(,/358:<>?ABCDEFFGGFEDCA?=:63.*%  %*05:>BEIKMOQSTVWXXYYXVUSPNJFA<60*# !(/6=DIOSX[^aceghjklmmnnmljigd`\WRKD=5-% !)2;CLS[afkoruxz|}}{xtojc\SJ@7-$  )22' !+6CQ_lyrcUF9, $0=KZix½}m]M>0 '4BQbrĻucRB4 )7FVhzź{hVE6 +9HZllYG8  +:J\oƷmZH8  +:J\pȹmZH7 +9I\pʺmYG6 )7HZnɺkWE5 (6FXlȸ}iUC3 &4DVj~ǶzfR@1 $2ASg{ŴxcP>/ #/?Pdyñu`M<- !.=Navq]J9+  ,;L_sξoZH7) +9J]q̼lXF5' *9I\p˺jVD4& +9I\oʹ}iUC3& !,:J]pɸ}hTB3& #/=M_sȸ|hUC3& '3AQcvȸ}iVD5( #-9GWi{ɹkX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swUJ9bq)ϸ:3+:ڮOd׋vZgܛo.!B ̎b|{QO>0Ύ9ۘkRp5L@c5W Ww-k2q5d+r"uRo5]Ȯhŵr[֠dNNq&M-?#DBⷋI[t;ڙ0iv֑tyh>S65&]Oz@'MB@%JZq~P]q}*mgc3?j6V՝4B4n @fMȮל; CPn3V;>&EO9Wv")(k# iuO#H'KfK88 -DO^w'?¹ӮBm)/A}煭RS71:>>I^B/AP,ļlg%^x'B cN=k\7-g( G1$c7DNѹ^15 !dNµ;U;RN`~^??DzE NL y궗][0ܝDm4:zu[BD 6m]yIn.Mu[u[u[u[u[L"\>aIENDB`libertine-scope-1.0/data/libertine-scope.ini.in0000664000000000000000000000033412656376666016460 0ustar [ScopeConfig] _DisplayName=Legacy Applications Scope _Description=Deb-packaged X11-based legacy applications. Art=screenshot.png Author=Stephen M. Webb Icon=icon.png Keywords=apps [Appearance] PageHeader.Logo=logo.png libertine-scope-1.0/data/libertine-scope-settings.ini.in0000664000000000000000000000072212656376666020317 0ustar # Below are some example settings. You can access your scope's # settings by calling settings() from the Query::run() method. # E.g. auto location = settings().at("location").get_string(); #[location] #type = string #defaultValue = London,uk #_displayName = Default Location #[units] #type = list #_displayName = Temperature Units #_displayValues = Metric;Imperial #defaultValue = 0 #[forecast] #type = boolean #defaultValue = true #_displayName = Show Forecast libertine-scope-1.0/data/icon.png0000664000000000000000000001146112656376666013727 0ustar PNG  IHDRæ$PLTEHS"^1j@uN]lzŵHHHHHHHHHHHHHHHHS"^1j@uN]lzŵ!tRNS/?O_oDdW)IDATx`vrjX?/g)#" xIIS!3*G֗('}WIy9~La!腓'pT.p[oG`j >b`&e5WjQ}!SRT d|T{E,@ڈǀ IX0?QߏȞ BU{E;pI;!Lik?j H`bgQv` Su%*QOTO*u;o);q^0"2}GFT3'z QT^.Wu݌ः s"M{g箊Dq޻Qx}/ Z:r#a APUat#Vip "ڇ?0-`#߿,Z'Zbp5[_ڵ[[U1U_>ܤYoU?ck:`Wh2E`B^@ĸw]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چ=YΨq!_ W?{~v G^wy]MJېM$V7)B5zCZ'FZ;GJ>u Rිu'|Zkks<8U NJָ4p3,j@e1 Ia`mx-( nD$ gW u)r"j)@ʃ@D5R!%? 1D x PT' *@}/8N#Xd1A" @s-(noZw|KG@#!hr ]( p/ 1^u'6?Zy'm pL @.Af%}T.TH @{ Vq x'B p.Ų|]~YYH P,t!Mz ٹ2 9A@~ zaf% Fv^Nj,q>hnp!7rjYp C(m썭OV-s8 n8ydgZ;LP $?x<.z|Ո%J@"hEC#@B+RqO U4.+@! L޽ hoiQ 5zA4{1H>DL_\l}Dp8M:(" V/1(x0c5~4k'LEpVWF%+5k>;y @|4;}H9*;'mNj5;5GZI<` MZku+} e. gۅWIENDB`libertine-scope-1.0/tests/0000775000000000000000000000000012656376703012507 5ustar libertine-scope-1.0/tests/scopefixture.h0000664000000000000000000000275412656376666015420 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_SCOPEFIXTURE_H_ #define LIBERTINE_SCOPE_SCOPEFIXTURE_H_ #include #include "libertine-scope/scope.h" //#include #include "tests/fake_container_json.h" #include "tests/fake_libertine.h" #include "tests/TypedScopeFixture.h" namespace unity { namespace scopes { namespace testing { /** * Specialize the ScopeTraist for our scope. */ template<> struct ScopeTraits<::Scope> { static char const* name() { return "LibertineScope"; } static std::shared_ptr<::Scope> construct() { return std::make_shared<::Scope>(std::bind(FakeLibertine::make_fake, FAKE_CONTAINER_JSON)); } }; } // namespace testing } // namespace scopes } // namespace unity typedef unity::scopes::testing::TypedScopeFixture ScopeFixture; #endif /* LIBERTINE_SCOPE_SCOPEFIXTURE_H_ */ libertine-scope-1.0/tests/CMakeLists.txt0000664000000000000000000000106512656376666015261 0ustar # Build with system gmock and its embedded gtest -- the horror of hardcoding set (GMOCK_SOURCE_DIR "/usr/src/gmock" CACHE PATH "gmock source directory") set (GTEST_INCLUDE_DIR "${GMOCK_SOURCE_DIR}/gtest/include" CACHE PATH "gtest source include directory") add_subdirectory(${GMOCK_SOURCE_DIR} "${CMAKE_CURRENT_BINARY_DIR}/gmock") add_executable(libertine_scope_tests fake_container.cpp fake_libertine.cpp test_scope.cpp ) target_link_libraries(libertine_scope_tests scope Qt5::Core gmock gmock_main ) add_test(test_scope libertine_scope_tests ) libertine-scope-1.0/tests/fake_container_json.h0000664000000000000000000000336612656376666016701 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_FAKE_CONTAINER_JSON_H_ #define LIBERTINE_SCOPE_FAKE_CONTAINER_JSON_H_ #include const std::string FAKE_CONTAINER_JSON = R"( { "name": "Fake Container", "app_launchers": [ { "desktop_file_name": "/home/someuser/.cache/libertine-container/fake1/rootfs/usr/share/applications/mb-panel-manager.desktop", "exec_line": "matchbox-panel-manager", "icons": [ "/home/someuser/.cache/libertine-container/fake1/rootfs/usr/share/pixmaps/mbpanelmgr.png" ], "mime_types": [], "name": "Panel Manager", "no_display": false }, { "desktop_file_name": "/home/someuser/.cache/libertine-container/fake1/rootfs/usr/share/applications/sakura.desktop", "exec_line": "sakura", "icons": [ "/home/someuser/.cache/libertine-container/fake1/rootfs/usr/share/pixmaps/terminal-tango.svg" ], "mime_types": [], "name": "Sakura", "no_display": false } ] } )"; #endif /* LIBERTINE_SCOPE_FAKE_CONTAINER_JSON_H_ */ libertine-scope-1.0/tests/test_scope.cpp0000664000000000000000000000356312656376666015402 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include #include #include #include "tests/scopefixture.h" #include #include #include #include #include #include #include TEST_F(ScopeFixture, testConstruction) { } TEST_F(ScopeFixture, surfacing_query) { using namespace testing; using namespace unity::scopes; using namespace unity::scopes::testing; const unity::scopes::CategoryRenderer renderer; CannedQuery query("libertine-scope", "", ""); SearchMetadata meta_data("en_EN", "phone"); auto search_query = scope->search(query, meta_data); ASSERT_NE(nullptr, search_query); NiceMock reply; EXPECT_CALL(reply, register_category(_, _, _, _)) .Times(1) .WillOnce(Return(unity::scopes::Category::SCPtr(new unity::scopes::testing::Category("x", "y", "z", renderer)))); EXPECT_CALL(reply, push(Matcher(_))).Times(2).WillRepeatedly(Return(true)); SearchReplyProxy search_reply_proxy(&reply, [](unity::scopes::SearchReply*) {}); search_query->run(search_reply_proxy); } libertine-scope-1.0/tests/fake_container.cpp0000664000000000000000000000275012656376666016177 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "tests/fake_container.h" #include #include #include #include #include #include #include FakeContainer:: FakeContainer(std::string const& json_string) : Container("fake") { QJsonDocument json = QJsonDocument::fromJson(QByteArray::fromStdString(json_string), nullptr); QJsonObject object = json.object(); QJsonValue name = object["name"]; if (!name.isNull()) { name_ = name.toString().toStdString(); QJsonValue v = object["app_launchers"]; if (v != QJsonValue::Undefined) { for (auto const& app: v.toArray()) { auto json = QJsonDocument(app.toObject()).toJson().toStdString(); app_launcher_list_.emplace_back(AppLauncher(json)); } } } } FakeContainer:: ~FakeContainer() { } libertine-scope-1.0/tests/fake_libertine.cpp0000664000000000000000000000207412656376666016171 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #include "tests/fake_libertine.h" #include "tests/fake_container.h" FakeLibertine:: FakeLibertine(std::string const& json) { container_list_.emplace_back(new FakeContainer(json)); } FakeLibertine:: ~FakeLibertine() { } Libertine::ContainerList const& FakeLibertine:: get_container_list() const { return container_list_; } Libertine::UPtr FakeLibertine:: make_fake(std::string const& json) { return Libertine::UPtr(new FakeLibertine(json)); } libertine-scope-1.0/tests/TypedScopeFixture.h0000664000000000000000000000710012656376666016314 0ustar /* * Copyright (C) 2013 Canonical Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 as * published by the Free Software Foundation. * * 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . * * This file is a replacement for the identically-named header supplied by the * unity-scope-dev package, which is borked. */ #pragma once #include #include #include #include namespace unity { namespace scopes { class ScopeBase; namespace testing { /// @cond template struct ScopeTraits { inline static const char* name() { return "unknown"; } inline static std::shared_ptr construct() { return std::make_shared(); } }; class TypedScopeFixtureHelper { static void set_scope_directory(std::shared_ptr const& scope, std::string const& path); static void set_cache_directory(std::shared_ptr const& scope, std::string const& path); static void set_app_directory(std::shared_ptr const& scope, std::string const& path); static void set_tmp_directory(std::shared_ptr const& scope, std::string const& path); static void set_registry(std::shared_ptr const& scope, RegistryProxy const& r); template friend class TypedScopeFixture; }; /// @endcond /** \brief Fixture for testing scope testing. This fixture template provides convienience SetUp() and TearDown() functions, as well as a number of setters that ease the creation of scope tests. */ template class TypedScopeFixture : public ::testing::Test { public: /// @cond TypedScopeFixture() : registry_proxy(®istry, [](unity::scopes::Registry*) {}) , scope(ScopeTraits::construct()) { TypedScopeFixtureHelper::set_registry(scope, registry_proxy); TypedScopeFixtureHelper::set_scope_directory(scope, "/tmp"); TypedScopeFixtureHelper::set_app_directory(scope, "/tmp"); } void SetUp() { ASSERT_NO_THROW(scope->start(ScopeTraits::name())); ASSERT_NO_THROW(scope->run()); } void set_scope_directory(std::string const& path) { TypedScopeFixtureHelper::set_scope_directory(scope, path); } void set_cache_directory(std::string const& path) { TypedScopeFixtureHelper::set_cache_directory(scope, path); } void set_app_directory(std::string const& path) { TypedScopeFixtureHelper::set_app_directory(scope, path); } void set_tmp_directory(std::string const& path) { TypedScopeFixtureHelper::set_tmp_directory(scope, path); } static void set_registry(std::shared_ptr const& scope, RegistryProxy const& r) { TypedScopeFixtureHelper::set_registry(scope, r); } void TearDown() { EXPECT_NO_THROW(scope->stop()); } protected: unity::scopes::testing::MockRegistry registry; unity::scopes::RegistryProxy registry_proxy; std::shared_ptr scope; /// @endcond }; } // namespace testing } // namespace scopes } // namespace unity libertine-scope-1.0/tests/fake_container.h0000664000000000000000000000170612656376666015644 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_FAKE_CONTAINER_H_ #define LIBERTINE_SCOPE_FAKE_CONTAINER_H_ #include "libertine-scope/container.h" /** * A Fake Libertine container. */ class FakeContainer : public Container { public: explicit FakeContainer(std::string const& json); ~FakeContainer(); }; #endif /* LIBERTINE_SCOPE_FAKE_CONTAINER_H_ */ libertine-scope-1.0/tests/fake_libertine.h0000664000000000000000000000217412656376666015637 0ustar /* * Copyright 2016 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License, version 3, as published by the * Free Software Foundation. * * 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 . */ #ifndef LIBERTINE_SCOPE_FAKE_LIBERTINE_H_ #define LIBERTINE_SCOPE_FAKE_LIBERTINE_H_ #include "libertine-scope/libertine.h" /** * A Fake Libertine. */ class FakeLibertine : public Libertine { public: ~FakeLibertine(); Libertine::ContainerList const& get_container_list() const override; static Libertine::UPtr make_fake(std::string const& json); protected: explicit FakeLibertine(std::string const& json); private: ContainerList container_list_; }; #endif /* LIBERTINE_SCOPE_FAKE_LIBERTINE_H_ */