Version 1.0 #1
Merged
asmeron
merged 4 commits from YanTheKaller/ubl-settings-services:master into master 3 years ago
@ -0,0 +1,9 @@
|
||||
.vscode/
|
||||
ubl-settings-services
|
||||
*~
|
||||
build/
|
||||
compile/
|
||||
*#
|
||||
terminal-commands/
|
||||
source/ubl-cmake.h
|
||||
vgcore*
|
||||
@ -0,0 +1,164 @@
|
|||||||
#!/usr/bin/make -f
|
|||||||
|
|||||||
#SHELL := /bin/bash
|
|||||||
MAKEFILE_FILEPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|||||||
MAKEFILE_DIR := $(notdir $(patsubst %/,%,$(dir $(MAKEFILE_FILEPATH))))
|
|||||||
MAKEFILE_PATH := $(dir $(MAKEFILE_FILEPATH))
|
|||||||
|
|||||||
CMAKE_COMMAND = cmake
|
|||||||
CMAKE_SOURCE_DIR = $(MAKEFILE_PATH)source
|
|||||||
CMAKE_BUILD_DIR = $(MAKEFILE_PATH)compile
|
|||||||
#CMAKE_SOURCE_DIR = ./source
|
|||||||
#CMAKE_BUILD_DIR = ./compile
|
|||||||
DEPENDS = /bin/cmake
|
|||||||
PREFIX ?= /usr
|
|||||||
PKGNAME = $(MAKEFILE_DIR)
|
|||||||
#PKGNAME = ubl-settings-manager
|
|||||||
LATEST_TAG=
|
|||||||
default_target: all
|
|||||||
|
|||||||
.PHONY: all init depend debug prepare check build uninstall install clean help
|
|||||||
|
|||||||
all: init build
|
|||||||
|
|||||||
init:
|
|||||||
@echo "Initialize ..."; \
|
|||||||
if [ -d ".git" ]; then \
|
|||||||
LATEST_TAG=$$(git describe --tags | sed 's/^v//'|grep -oE "^[0-9]{1,}.[0-9]{1,}"); \
|
|||||||
else \
|
|||||||
LATEST_TAG="0.0"; \
|
|||||||
fi; \
|
|||||||
sed -r "s/^(string version_application).*/\1=\"$${LATEST_TAG}\";/" -i source/${PKGNAME}.h; \
|
|||||||
echo "-- Build path: ${CMAKE_BUILD_DIR}"
|
|||||||
|
|||||||
depend:
|
|||||||
@echo "Check depends ..."
|
|||||||
@for FILE_DEPEND in $(DEPENDS); do \
|
|||||||
if [ ! -f $${FILE_DEPEND} ]; then \
|
|||||||
echo "ERROR: Depend '$${FILE_DEPEND}' not found !"; \
|
|||||||
exit 1; \
|
|||||||
fi; \
|
|||||||
done; \
|
|||||||
echo "Check depends: OK"
|
|||||||
# $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
|||||||
|
|||||||
debug: init build
|
|||||||
@echo "Debug ..."; \
|
|||||||
if [ ! -d ${CMAKE_BUILD_DIR} ]; then \
|
|||||||
$(CMAKE_COMMAND) -S${CMAKE_SOURCE_DIR} -B${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="${PREFIX}"; \
|
|||||||
fi; \
|
|||||||
echo "${CMAKE_BUILD_DIR}/${PKGNAME}"; \
|
|||||||
cp ${CMAKE_BUILD_DIR}/${PKGNAME} ./; \
|
|||||||
echo "Debug: OK"
|
|||||||
|
|||||||
prepare:
|
|||||||
@echo "Prepare ..."; \
|
|||||||
if [ ! -d ${CMAKE_BUILD_DIR} ]; then \
|
|||||||
$(CMAKE_COMMAND) -S${CMAKE_SOURCE_DIR} -B${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${PREFIX}"; \
|
|||||||
fi; \
|
|||||||
echo "Prepare: OK"
|
|||||||
|
|||||||
check:
|
|||||||
@echo "Check ..."; \
|
|||||||
if [ -f ${CMAKE_BUILD_DIR}/${PKGNAME} ]; then \
|
|||||||
echo "Check: OK"; \
|
|||||||
else \
|
|||||||
echo "Check: ${CMAKE_BUILD_DIR}/${PKGNAME} not found !"; \
|
|||||||
exit 1; \
|
|||||||
fi
|
|||||||
|
|||||||
build: depend prepare
|
|||||||
@echo "Build ..."; \
|
|||||||
make --directory=${CMAKE_BUILD_DIR}; \
|
|||||||
echo "Build: OK"
|
|||||||
|
|||||||
uninstall:
|
|||||||
@echo "Uninstall ..."
|
|||||||
@for FILE_PO in $(wildcard *.po); do \
|
|||||||
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \
|
|||||||
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \
|
|||||||
PATH_FILE_MO="${DESTDIR}${PREFIX}/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
|||||||
$(RM) "$${PATH_FILE_MO}"; \
|
|||||||
done
|
|||||||
@for SIZE in 16x16 32x32 48x48 scalable; do \
|
|||||||
$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \
|
|||||||
$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}/apps/com.ublinux.${PKGNAME}.png"; \
|
|||||||
done
|
|||||||
@for FILE_SVG in $(wildcard *.svg); do \
|
|||||||
for SIZE in 16x16 32x32 48x48 scalable; do \
|
|||||||
$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}/status/$${FILE_SVG%.*}".{svg,png,jpg}; \
|
|||||||
done; \
|
|||||||
done
|
|||||||
@$(RM) "${DESTDIR}${PREFIX}/bin/${PKGNAME}"
|
|||||||
@$(RM) "${DESTDIR}${PREFIX}/share/applications/${PKGNAME}.desktop"
|
|||||||
@$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/com.ublinux.${PKGNAME}.svg"
|
|||||||
@$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/com.ublinux.${PKGNAME}.checked.svg"
|
|||||||
@$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/com.ublinux.${PKGNAME}.warning.svg"
|
|||||||
@$(RM) "${DESTDIR}${PREFIX}/share/polkit-1/actions/com.ublinux.${PKGNAME}.policy"
|
|||||||
@if [ -z ${DESTDIR} ]; then \
|
|||||||
[ -d "${DESTDIR}${PREFIX}/share/icons/hicolor/" ] && gtk-update-icon-cache -fiq "${DESTDIR}${PREFIX}/share/icons/hicolor/" &>/dev/null || true; \
|
|||||||
update-desktop-database --quiet &>/dev/null || true; \
|
|||||||
[ -d "${DESTDIR}${PREFIX}/share/applications" ] && touch "${DESTDIR}${PREFIX}/share/applications" &>/dev/null || true; \
|
|||||||
fi
|
|||||||
@echo "Uninstall: OK"
|
|||||||
|
|||||||
install: check uninstall
|
|||||||
@echo "Install ..."
|
|||||||
@for FILE_PO in $(wildcard *.po); do \
|
|||||||
|
|
|||||||
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \
|
|||||||
install -dm755 "${DESTDIR}${PREFIX}/share/locale/$${LANG}/LC_MESSAGES"; \
|
|||||||
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \
|
|||||||
PATH_FILE_MO="${DESTDIR}${PREFIX}/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
|||||||
echo "$${FILE_PO}"; \
|
|||||||
msgfmt "$${FILE_PO}" -v -f -o "$${PATH_FILE_MO}"; \
|
|||||||
done
|
|||||||
@for SIZE in 16 32 48; do \
|
|||||||
install -dm755 "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \
|
|||||||
rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data "com.ublinux.${PKGNAME}.svg" -o "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \
|
|||||||
done
|
|||||||
@install -dm755 "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps"
|
|||||||
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/" "com.ublinux.${PKGNAME}.svg"
|
|||||||
@install -dm755 "${DESTDIR}${PREFIX}/share/polkit-1/actions"
|
|||||||
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/polkit-1/actions/" "com.ublinux.${PKGNAME}.policy"
|
|||||||
@install -Dm755 -t "${DESTDIR}${PREFIX}/bin/" "${CMAKE_BUILD_DIR}/${PKGNAME}"
|
|||||||
@install -dm755 "${DESTDIR}/etc/xdg"
|
|||||||
@install -dm755 "${DESTDIR}${PREFIX}/share/applications"
|
|||||||
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/applications/" "${PKGNAME}.desktop"
|
|||||||
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.checked.svg"
|
|||||||
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.warning.svg"
|
|||||||
@if [ -z ${DESTDIR} ]; then \
|
|||||||
[ -d "${DESTDIR}${PREFIX}/share/icons/hicolor/" ] && gtk-update-icon-cache -fiq "${DESTDIR}${PREFIX}/share/icons/hicolor/" &>/dev/null || true; \
|
|||||||
update-desktop-database --quiet &>/dev/null || true; \
|
|||||||
[ -d "${DESTDIR}${PREFIX}/share/applications" ] && touch "${DESTDIR}${PREFIX}/share/applications" &>/dev/null || true; \
|
|||||||
fi
|
|||||||
@echo "Install: OK"
|
|||||||
@sed -r "s/^(string version_application=\"*\").*/string version_application;/" -i source/${PKGNAME}.h; \
|
|||||||
|
|||||||
clean:
|
|||||||
@echo "Clean ..."
|
|||||||
@$(RM) -rd ${CMAKE_BUILD_DIR}
|
|||||||
@if [ -d ${CMAKE_BUILD_DIR} ]; then \
|
|||||||
echo "Clean: error, compile directory exist ${CMAKE_BUILD_DIR}"; \
|
|||||||
else \
|
|||||||
echo "Clean: OK"; \
|
|||||||
fi
|
|||||||
|
|||||||
up_ver:
|
|||||||
@CURRENT=$$(grep 'VERSION' ${FILE_VERSION} | cut -d" " -f2); \
|
|||||||
MAJOR=$$(cut -d. -f1 <<< $${CURRENT}); \
|
|||||||
MINOR=$$(cut -d. -f2 <<< $${CURRENT}); \
|
|||||||
VER="$${MAJOR}.$$(($${MINOR}+1))"; \
|
|||||||
sed "s/VERSION *[[:digit:]]*.*/VERSION $${VER}/" -i ${FILE_VERSION}; \
|
|||||||
echo "Updated version to VERSION.md: $${CURRENT} to $${VER}"
|
|||||||
|
|||||||
help:
|
|||||||
@echo "The following are some of the valid targets for this Makefile:"; \
|
|||||||
echo "... all (the default if no target is provided)"; \
|
|||||||
echo "... init"; \
|
|||||||
echo "... debug"; \
|
|||||||
echo "... prepare"; \
|
|||||||
echo "... compile"; \
|
|||||||
echo "... install"; \
|
|||||||
echo "... uninstall"; \
|
|||||||
echo "... clean"; \
|
|||||||
echo "... up_ver"
|
|||||||
@ -1,2 +1,29 @@
|
||||
# ubl-settings-services
|
||||
# Выполнить
|
||||
# Build
|
||||
In order to build ubl-settings-services you will need:
|
||||
|
||||
- CMake
|
||||
- C compiler
|
||||
- GTK+ 3 & dependencies
|
||||
- webkit2gtk (optional)
|
||||
|
||||
Once you have all the necessary dependencies, you can use:
|
||||
```sh
|
||||
$ make
|
||||
```
|
||||
|
||||
# Installation
|
||||
After a successful build, just use:
|
||||
```sh
|
||||
$ sudo make install clean
|
||||
```
|
||||
|
||||
# Uninstallation
|
||||
After a successful build, just use:
|
||||
```sh
|
||||
$ sudo make uninstall
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 210 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource prefix="/com/ublinux/ui">
|
||||
<file>ubl-settings-services.glade</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/ublinux/css">
|
||||
<file>ubl-settings-services.css</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/ublinux/images">
|
||||
<file>ubl-settings-services-banner.png</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
@ -0,0 +1,96 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project(ubl-settings-services)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(GTK REQUIRED gtk+-3.0)
|
||||
include_directories(${GTK_INCLUDE_DIRS})
|
||||
link_directories(${GTK_LIBRARY_DIRS})
|
||||
add_definitions(${GTK_CFLAGS_OTHER})
|
||||
|
||||
#pkg_check_modules(VTE291 REQUIRED vte-2.91)
|
||||
#include_directories(${VTE291_INCLUDE_DIRS})
|
||||
#link_directories(${VTE291_LIBRARY_DIRS})
|
||||
#add_definitions(${VTE291_CFLAGS_OTHER})
|
||||
|
||||
find_library(WEBKIT_LIBRARIES_FOUND webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
||||
|
||||
option(WEBKIT_FOUND "No" OFF)
|
||||
if(WEBKIT_LIBRARIES_FOUND)
|
||||
option(WEBKIT_FOUND "Yes" ON)
|
||||
PKG_CHECK_MODULES(WEBKIT REQUIRED webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
||||
include_directories(${WEBKIT_INCLUDE_DIRS})
|
||||
link_directories(${WEBKIT_LIBRARY_DIRS})
|
||||
add_definitions(${WEBKIT_CFLAGS_OTHER})
|
||||
endif()
|
||||
|
||||
configure_file(ubl-cmake.in ubl-cmake.h)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/ubl-cmake.h DESTINATION ./)
|
||||
|
||||
set(GRESOURCE_C resources.c)
|
||||
set(GRESOURCE_XML gresource.xml)
|
||||
|
||||
find_program(GLIB_COMPILE_RESOURCES NAMES glib-compile-resources REQUIRED)
|
||||
add_custom_target(GLADE ubl-settings-services.glade)
|
||||
|
||||
set(DEPENDFILES
|
||||
../ubl-settings-services.glade
|
||||
../gresource.xml
|
||||
../ubl-settings-services-banner.png
|
||||
../ubl-settings-services.css
|
||||
)
|
||||
|
||||
file(COPY ${DEPENDFILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${GRESOURCE_C}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${GLIB_COMPILE_RESOURCES}
|
||||
ARGS
|
||||
--generate-source
|
||||
--target=${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
||||
${GRESOURCE_XML}
|
||||
VERBATIM
|
||||
MAIN_DEPENDENCY ${GRESOURCE_XML}
|
||||
DEPENDS
|
||||
${GLADE}
|
||||
)
|
||||
add_custom_target(
|
||||
dummy-resource
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
||||
)
|
||||
|
||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -std=c++2a")
|
||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -lm")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \
|
||||
-O2 -pipe -fno-plt -fexceptions \
|
||||
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
|
||||
-fstack-clash-protection -fcf-protection")
|
||||
|
||||
|
||||
set(SOURCE_FILES
|
||||
ubl-settings-services.c
|
||||
ubl-settings-services.h
|
||||
ubl-strings.h
|
||||
ubl-utils.h
|
||||
ubl-utils.c
|
||||
${CMAKE_CURRENT_BINARY_DIR}/ubl-cmake.h
|
||||
)
|
||||
|
||||
set(LIBRARIES
|
||||
${GTK_LIBRARIES}
|
||||
${WEBKIT_LIBRARIES}
|
||||
# ${VTE291_LIBRARIES}
|
||||
pthread)
|
||||
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C})
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${LIBRARIES})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR})
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
||||
PROPERTIES GENERATED TRUE
|
||||
)
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
add_dependencies(${PROJECT_NAME} dummy-resource)
|
||||
@ -0,0 +1 @@
|
||||
#cmakedefine WEBKIT_FOUND
|
||||
@ -0,0 +1,60 @@
|
||||
#define VERSION_LABEL yon_char_unite(_("Version:")," ",version_application,"\n",NULL)
|
||||
#define HELP_LABEL yon_char_unite(_("ubl-settings-services version:")," ", version_application,"\n",_("Services and processes systemd"),"\n",_("Usage:"), " ubl-settings-services ",_("[OPTIONS]"),"\n",_("Options:"),"\n\t--help, -h\t\t\t",_("Show this help"),"\n\t--version, -V\t\t\t",_("Show package version"),"\n\t--lock-help\t\t\t",_("Lock this help menu"),"\n\t--lock-save\t\t\t",_("Lock configuration saving"),"\n\t--lock-save-local\t\t",_("Lock local configration saving"),"\n\t--lock-save-global\t\t",_("Lock global configration saving"),"\n\t--lock-load-global\t\t",_("Lock global configration loading"),"\n",NULL)
|
||||
|
||||
#define TITLE_LABEL _("Services and processes systemd")
|
||||
#define TITLE_INFO_LABEL _("System services and processes configuration")
|
||||
|
||||
#define SUCCESS_LABEL _("Operation succeeded")
|
||||
#define ROOT_WARNING_LABEL _("Warning! Application was launched without root - root-dependent actions are locked")
|
||||
|
||||
#define ABOUT_LABEL _("About")
|
||||
#define DOCUMENTATION_LABEL _("Documentation")
|
||||
|
||||
#define SAVE_LOCAL_LABEL _("Save to local configuration")
|
||||
#define SAVE_GLOBAL_LABEL _("Save to global configuration")
|
||||
#define SAVE_CONFIGURATION_LABEL _("Save configuration")
|
||||
#define SAVE_LABEL _("Save")
|
||||
|
||||
#define LOAD_LOCAL_LABEL _("Load local configuration")
|
||||
#define LOAD_GLOBAL_LABEL _("Load global configuration")
|
||||
#define LOAD_LABEL _("Load")
|
||||
|
||||
#define CANCEL_LABEL _("Cancel")
|
||||
|
||||
#define HELP_TITLE_LABEL _("Would you like to read documentation in the Web?")
|
||||
#define HELP_INFO_LABEL _("You will be redirected to documentation website where documentation is\ntranslated and supported by community.")
|
||||
#define HELP_ALWAYS_OPEN_LABEL _("Always redirect to online documentation")
|
||||
#define OPEN_HELP_LABEL _("Open documentation")
|
||||
#define PROJECT_HOME_LABEL _("Project Home Page")
|
||||
#define NOTHING_CHOSEN_LABEL _("Nothing were chosen")
|
||||
|
||||
|
||||
#define GLOBAL_LOAD_SUCCESS_LABEL _("Global configuration loading succseeded.")
|
||||
#define LOCAL_LOAD_SUCCESS_LABEL _("Local configuration loading succseeded.")
|
||||
#define LOAD_FAILED_LABEL _("Config loading failed")
|
||||
|
||||
#define GLOBAL_LOCAL_SAVE_SUCCESS_LABEL _("Local and global configuration saving succseeded.")
|
||||
#define GLOBAL_SAVE_SUCCESS_LABEL _("Global configuration saving succseeded.")
|
||||
#define LOCAL_SAVE_SUCCESS_LABEL _("Local configuration saving succseeded.")
|
||||
|
||||
#define AUTOSTART_LABEL _("Autostart")
|
||||
#define AUTOSTOP_LABEL _("Autostop")
|
||||
#define BLOCK_LABEL _("Block")
|
||||
#define AUTOSTART_LABEL _("Autostart")
|
||||
#define LAUNCHED_LABEL _("Launched")
|
||||
#define SERVICE_LABEL _("Service")
|
||||
#define CONFIG_CONFIGURATION_LABEL _("Configuration in config file")
|
||||
#define SYSTEM_CONFIGURATION_LABEL _("Configuration in system")
|
||||
|
||||
#define ALL_LABEL _("All")
|
||||
#define SERVICES_LABEL _("Services")
|
||||
#define SOCKETS_LABEL _("Sockets")
|
||||
#define AUTOMATIC_LAUNCH_LABEL _("Automatic launch")
|
||||
#define STOPPED_LABEL _("Stopped in configuration")
|
||||
#define BLOCKED_LABEL _("Blocked in configuration")
|
||||
#define ALL_SERVICES_LABEL _("All services")
|
||||
#define SYSTEM_ONLLY_LABEL _("System services only")
|
||||
#define USER_ONLY_LABEL _("User services only")
|
||||
|
||||
#define SERVICE_RELOAD_LABEL _("Service configuration reload")
|
||||
#define STATUS_LABEL _("Status")
|
||||
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 33 KiB |
@ -0,0 +1,134 @@
|
||||
|
||||
.thin {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
.noborder {
|
||||
border:none;
|
||||
}
|
||||
.nobackground {
|
||||
background:transparent;
|
||||
}
|
||||
.nobackground:active {
|
||||
background:transparent;
|
||||
}
|
||||
.textHead{
|
||||
text-shadow: 2px 2px @theme_bg_color;
|
||||
color: @theme_text_color;
|
||||
}
|
||||
|
||||
.inherited>* {
|
||||
border:none;
|
||||
background:inherit;
|
||||
}
|
||||
.workingbg {
|
||||
background:@theme_base_color;
|
||||
}
|
||||
.menuitembottom{
|
||||
margin-top:0px;
|
||||
margin-bottom:3px;
|
||||
border-color:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitemmiddle{
|
||||
margin-top:0px;
|
||||
margin-bottom:0px;
|
||||
border-color:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
|
||||
.menuitemtop{
|
||||
margin-bottom:0px;
|
||||
border-color:inherit;
|
||||
border-top-width:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitemtop *{
|
||||
margin:2px 2px 0 2px;
|
||||
padding: 5px 10px 3px 5px;
|
||||
border:transparent;
|
||||
}
|
||||
.menuitemmiddle *{
|
||||
margin:0 2px 0 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
border:transparent;
|
||||
}
|
||||
.menuitembottom *{
|
||||
margin:0 2px 2px 2px;
|
||||
padding: 3px 10px 5px 5px;
|
||||
}
|
||||
.menuitemtop:hover {
|
||||
background:@theme_bg_color;
|
||||
border-color:inherit;
|
||||
border-top-width:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitemmiddle:hover {
|
||||
background:@theme_bg_color;
|
||||
border-color:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitembottom:hover {
|
||||
background:@theme_bg_color;
|
||||
border-color:inherit;
|
||||
border-bottom-width:0px;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
|
||||
}
|
||||
.menuitemtop:hover* {
|
||||
margin:2px 2px 0 2px;
|
||||
padding: 5px 10px 3px 5px;
|
||||
background:@theme_selected_bg_color;
|
||||
border-radius:2px;
|
||||
}
|
||||
.menuitemmiddle:hover* {
|
||||
margin:0 2px 0 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
background:@theme_selected_bg_color;
|
||||
border-radius:2px;
|
||||
}
|
||||
.menuitembottom:hover* {
|
||||
margin:0 2px 2px 2px;
|
||||
padding: 3px 10px 5px 5px;
|
||||
background:@theme_selected_bg_color;
|
||||
border-radius:2px;
|
||||
}
|
||||
.boxInfoMessError{
|
||||
background-color: #ea9999;
|
||||
}
|
||||
|
||||
.boxInfoMessOK{
|
||||
background-color: #f3f0ac;
|
||||
}
|
||||
.sharpBorders *{
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
.lowborder{
|
||||
border-top:none;
|
||||
border-left: none;
|
||||
border-right:none;
|
||||
}
|
||||
.lowborder {
|
||||
border-bottom: 1px;
|
||||
border-style: solid;
|
||||
border-color: inherit;
|
||||
}
|
||||
.nohover:hover {
|
||||
background-color: transparent;
|
||||
color:inherit;
|
||||
border-right:inherit;
|
||||
border-left:inherit;
|
||||
padding-left: 4px;
|
||||
/* border-top:inherit; */
|
||||
}
|
||||
|
||||
.colortest{
|
||||
-gtk-icon-palette:name @theme_base_color;
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=ubl-settings-services
|
||||
Name[ru]=Службы и процессы systemd
|
||||
GenericName=ubl-settings-services
|
||||
GenericName[ru]=Службы и процессы systemd
|
||||
Comment=ubl-settings-services
|
||||
Comment[ru]=Настройка работы служб и процессов системы
|
||||
Type=Application
|
||||
Exec=pkexec ubl-settings-services
|
||||
Icon=com.ublinux.ubl-settings-services
|
||||
Terminal=false
|
||||
X-XfcePluggable=true
|
||||
X-UBLPluggable=true
|
||||
Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;X-UBL-SettingsManager;X-UBL-Personal-Settings;
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,246 @@
|
||||
# Language translations for ubl-settings-services package.
|
||||
# Copyright (C) 2022, UBTech LLC
|
||||
# This file is distributed under the same license as the ubl-settings-services package.
|
||||
# UBLinux Team <info@ublinux.com>, 2022
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: ubl-settings-services 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-05-22 16:12+0600\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: source/ubl-strings.h:1
|
||||
msgid "Version:"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "ubl-settings-services version:"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2 source/ubl-strings.h:4
|
||||
msgid "Services and processes systemd"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Usage:"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "[OPTIONS]"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Options:"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Show this help"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Show package version"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Lock this help menu"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Lock configuration saving"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Lock local configration saving"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Lock global configration saving"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:2
|
||||
msgid "Lock global configration loading"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:5
|
||||
msgid "System services and processes configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:7
|
||||
msgid "Operation succeeded"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:8
|
||||
msgid ""
|
||||
"Warning! Application was launched without root - root-dependent actions are "
|
||||
"locked"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:10
|
||||
msgid "About"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:11
|
||||
msgid "Documentation"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:13
|
||||
msgid "Save to local configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:14
|
||||
msgid "Save to global configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:15
|
||||
msgid "Save configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:16
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:18
|
||||
msgid "Load local configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:19
|
||||
msgid "Load global configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:20
|
||||
msgid "Load"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:22
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:24
|
||||
msgid "Would you like to read documentation in the Web?"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:25
|
||||
msgid ""
|
||||
"You will be redirected to documentation website where documentation is\n"
|
||||
"translated and supported by community."
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:26
|
||||
msgid "Always redirect to online documentation"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:27
|
||||
msgid "Open documentation"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:28
|
||||
msgid "Project Home Page"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:29
|
||||
msgid "Nothing were chosen"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:32
|
||||
msgid "Global configuration loading succseeded."
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:33
|
||||
msgid "Local configuration loading succseeded."
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:34
|
||||
msgid "Config loading failed"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:36
|
||||
msgid "Local and global configuration saving succseeded."
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:37
|
||||
msgid "Global configuration saving succseeded."
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:38
|
||||
msgid "Local configuration saving succseeded."
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:40 source/ubl-strings.h:43
|
||||
msgid "Autostart"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:41
|
||||
msgid "Autostop"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:42
|
||||
msgid "Block"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:44
|
||||
msgid "Launched"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:45
|
||||
msgid "Service"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:46
|
||||
msgid "Configuration in config file"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:47
|
||||
msgid "Configuration in system"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:49
|
||||
msgid "All"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:50
|
||||
msgid "Services"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:51
|
||||
msgid "Sockets"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:52
|
||||
msgid "Automatic launch"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:53
|
||||
msgid "Stopped in configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:54
|
||||
msgid "Blocked in configuration"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:55
|
||||
msgid "All services"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:56
|
||||
msgid "System services only"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:57
|
||||
msgid "User services only"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:59
|
||||
msgid "Service configuration reload"
|
||||
msgstr ""
|
||||
|
||||
#: source/ubl-strings.h:60
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
Loading…
Reference in new issue
?
8220f2c81a