summaryrefslogtreecommitdiffstats
path: root/serviceconfig
diff options
context:
space:
mode:
Diffstat (limited to 'serviceconfig')
-rw-r--r--serviceconfig/CMakeLists.txt56
-rw-r--r--serviceconfig/serviceconfig.desktop31
-rwxr-xr-xserviceconfig/serviceconfig.py2
3 files changed, 72 insertions, 17 deletions
diff --git a/serviceconfig/CMakeLists.txt b/serviceconfig/CMakeLists.txt
new file mode 100644
index 0000000..5a2a3ca
--- /dev/null
+++ b/serviceconfig/CMakeLists.txt
@@ -0,0 +1,56 @@
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${PYTHON_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIBRARY_DIRS}
+)
+
+
+##### generate kcm control module code
+
+set( MODULE_NAME serviceconfig )
+
+set( _MODULEDIR_ ${DATA_INSTALL_DIR}/guidance )
+set( _EXTRAMODULE_ ${TDE_GUIDANCE_DIST_PKG_PATH} )
+set( _MODULENAME_ ${MODULE_NAME} )
+set( _FACTORYFUNCTION_ create_${MODULE_NAME} )
+
+configure_file(
+ ${CMAKE_SOURCE_DIR}/templates/kcm_module_stub.cpp.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp @ONLY
+)
+
+
+##### kcm_userconfig (module) #######################
+
+tde_add_kpart( kcm_${MODULE_NAME} AUTOMOC
+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/kcm_${MODULE_NAME}.cpp
+
+ LINK
+ tdecore-shared tdeui-shared
+ ${PYTHON_LIBRARIES} ${PYTHONIZE_LIBRARIES}
+ ${CMAKE_DL_LIBS}
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other files
+
+tde_create_translated_desktop(
+ SOURCE ${MODULE_NAME}.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install(
+ PROGRAMS ${MODULE_NAME}.py
+ DESTINATION ${TDE_GUIDANCE_DIST_PKG_PATH}
+)
+
+tde_install_symlink( ${TDE_GUIDANCE_DIST_PKG_PATH}/${MODULE_NAME}.py ${BIN_INSTALL_DIR}/${MODULE_NAME} )
diff --git a/serviceconfig/serviceconfig.desktop b/serviceconfig/serviceconfig.desktop
index f85c812..0ccfdf4 100644
--- a/serviceconfig/serviceconfig.desktop
+++ b/serviceconfig/serviceconfig.desktop
@@ -11,8 +11,20 @@ Name[pt_BR]=Serviços do Sistema
Name[sr]=Системски сервиси
Name[sr@Latn]=Sistemski servisi
Name[sv]=Systemtjänster
-Name[xx]=xxSystem Servicesxx
-name[en_GB]=System Services
+
+GenericName=Runlevel Editor
+GenericName[el]=Επεξεργαστής επιπέδων εκτέλεσης
+GenericName[es]=Editor del nivel de ejecución
+GenericName[et]=Käitustasemete redaktor
+GenericName[it]=Editor dei runlevel
+GenericName[ja]=ランレベルエディタ
+GenericName[nl]=Runlevel-bewerker
+GenericName[pt]=Editor de Níveis de Execução
+GenericName[pt_BR]=Editor de Níveis de Execução
+GenericName[sr]=Уређивач радних нивоа
+GenericName[sr@Latn]=Uređivač radnih nivoa
+GenericName[sv]=Editor för körnivå
+
Comment=System Service Configuration
Comment[el]=Ρυθμίσεις υπηρεσιών συστήματος
Comment[es]=Configuración del servicio del sistema
@@ -25,7 +37,7 @@ Comment[pt_BR]=Configuração dos Serviços do Sistema
Comment[sr]=Подешавање системских сервиса
Comment[sr@Latn]=Podešavanje sistemskih servisa
Comment[sv]=Inställning av systemtjänster
-Comment[xx]=xxSystem Service Configurationxx
+
Icon=daemons
Encoding=UTF-8
X-TDE-ModuleType=Library
@@ -35,16 +47,3 @@ X-TDE-RootOnly=true
Type=Application
Exec=tdecmshell System/serviceconfig
Categories=Qt;TDE;X-TDE-settings-system;
-GenericName=Runlevel Editor
-GenericName[el]=Επεξεργαστής επιπέδων εκτέλεσης
-GenericName[es]=Editor del nivel de ejecución
-GenericName[et]=Käitustasemete redaktor
-GenericName[it]=Editor dei runlevel
-GenericName[ja]=ランレベルエディタ
-GenericName[nl]=Runlevel-bewerker
-GenericName[pt]=Editor de Níveis de Execução
-GenericName[pt_BR]=Editor de Níveis de Execução
-GenericName[sr]=Уређивач радних нивоа
-GenericName[sr@Latn]=Uređivač radnih nivoa
-GenericName[sv]=Editor för körnivå
-GenericName[xx]=xxRunlevel Editorxx
diff --git a/serviceconfig/serviceconfig.py b/serviceconfig/serviceconfig.py
index 42bb543..220a370 100755
--- a/serviceconfig/serviceconfig.py
+++ b/serviceconfig/serviceconfig.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: UTF-8 -*-
###########################################################################
# serviceconfig.py - description #