Finish the crazy razor=>lxqt renaming tasks.
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Mon, 4 Nov 2013 18:46:24 +0000 (02:46 +0800)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Mon, 4 Nov 2013 18:46:24 +0000 (02:46 +0800)
46 files changed:
cmake/LxQtTranslate.cmake [new file with mode: 0644]
cmake/RazorTranslate.cmake [deleted file]
man/lxqt-power.1 [new file with mode: 0644]
man/razor-power.1 [deleted file]
src/CMakeLists.txt
src/dialog.cpp
src/dialog.h
src/main.cpp
src/resources/lxqt-power.desktop.in
src/translations/lxqt-power_ar.desktop
src/translations/lxqt-power_cs.desktop
src/translations/lxqt-power_cs_CZ.desktop
src/translations/lxqt-power_da.desktop
src/translations/lxqt-power_da_DK.desktop
src/translations/lxqt-power_de.desktop
src/translations/lxqt-power_de_DE.desktop
src/translations/lxqt-power_el_GR.desktop
src/translations/lxqt-power_eo.desktop
src/translations/lxqt-power_es.desktop
src/translations/lxqt-power_es_VE.desktop
src/translations/lxqt-power_eu.desktop
src/translations/lxqt-power_fi.desktop
src/translations/lxqt-power_fr_FR.desktop
src/translations/lxqt-power_hu.desktop
src/translations/lxqt-power_ia.desktop
src/translations/lxqt-power_id_ID.desktop
src/translations/lxqt-power_it_IT.desktop
src/translations/lxqt-power_ja.desktop
src/translations/lxqt-power_ko.desktop
src/translations/lxqt-power_lt.desktop
src/translations/lxqt-power_nl.desktop
src/translations/lxqt-power_pl_PL.desktop
src/translations/lxqt-power_pt.desktop
src/translations/lxqt-power_pt_BR.desktop
src/translations/lxqt-power_ro_RO.desktop
src/translations/lxqt-power_ru.desktop
src/translations/lxqt-power_ru_RU.desktop
src/translations/lxqt-power_sl.desktop
src/translations/lxqt-power_sr.desktop
src/translations/lxqt-power_sr@latin.desktop
src/translations/lxqt-power_th_TH.desktop
src/translations/lxqt-power_tr.desktop
src/translations/lxqt-power_uk.desktop
src/translations/lxqt-power_zh_CN.GB2312.desktop
src/translations/lxqt-power_zh_CN.desktop
src/translations/lxqt-power_zh_TW.desktop

diff --git a/cmake/LxQtTranslate.cmake b/cmake/LxQtTranslate.cmake
new file mode 100644 (file)
index 0000000..fcf5042
--- /dev/null
@@ -0,0 +1,275 @@
+#  funtion lxqt_translate_ts(qm_files 
+#                           SOURCES sources ... 
+#                           [TRANSLATION_DIR] translation_directory
+#                           [INSTALLATION_DIR] qm_install_directory
+#                          )
+#     out: qm_files 
+#     generates commands to create .ts.src and .qm files from sources. 
+#     The generated filenames can be found in qm_files.
+#
+#     in: sources 
+#     List of the h, cpp and ui files
+#
+#     in: translation_directory
+#     A relative path to the directory with .ts files, it is relative 
+#     to the CMakeList.txt. By default is "translations"
+#
+#     in: qm_install_directory
+#     A full path to the directory n which will be installed .qm files.
+#     By default is "${CMAKE_INSTALL_PREFIX}/share/lxqt/${PROJECT_NAME}" 
+
+
+MACRO(QT4_ADD_TRANSLATION_FIXED _qm_files)
+  FOREACH (_current_FILE ${ARGN})
+    GET_FILENAME_COMPONENT(_abs_FILE ${_current_FILE} ABSOLUTE)
+    GET_FILENAME_COMPONENT(qm ${_abs_FILE} NAME)
+    #Extract the real extension ............
+    STRING(REPLACE ".ts" "" qm ${qm})
+    GET_SOURCE_FILE_PROPERTY(output_location ${_abs_FILE} OUTPUT_LOCATION)
+    IF(output_location)
+      FILE(MAKE_DIRECTORY "${output_location}")
+      SET(qm "${output_location}/${qm}.qm")
+    ELSE(output_location)
+      SET(qm "${CMAKE_CURRENT_BINARY_DIR}/${qm}.qm")
+    ENDIF(output_location)
+
+    ADD_CUSTOM_COMMAND(OUTPUT ${qm}
+       COMMAND ${QT_LRELEASE_EXECUTABLE}
+       ARGS -silent -removeidentical ${_abs_FILE} -qm ${qm}
+       DEPENDS ${_abs_FILE}
+    )
+    SET(${_qm_files} ${${_qm_files}} ${qm})
+  ENDFOREACH (_current_FILE)
+ENDMACRO(QT4_ADD_TRANSLATION_FIXED)
+
+if(NOT TARGET UpdateTsFiles)
+  add_custom_target(UpdateTsFiles DEPENDS)
+endif()
+
+if(NOT TARGET UpdateTxFile)
+  file(WRITE ${CMAKE_BINARY_DIR}/tx/_updateTxFile.sh
+        "echo '[main]'\n"
+        "echo 'host = https://www.transifex.com'\n"
+        "echo 'minimum_perc = 1'\n"
+        "echo ''\n"
+        "for f in `ls ${CMAKE_BINARY_DIR}/tx/*.tx.sh`; do\n"
+        " sh $f;\n"
+        "done\n"
+      )
+
+  add_custom_target(UpdateTxFile  
+    COMMAND sh ${CMAKE_BINARY_DIR}/tx/_updateTxFile.sh > ${CMAKE_SOURCE_DIR}/.tx/config
+  )
+endif()
+
+
+function(lxqt_translate_ts _qmFiles)
+    set(_translationDir "translations")
+    set(_installDir "${CMAKE_INSTALL_PREFIX}/share/lxqt/${PROJECT_NAME}")
+    
+    # Parse arguments ***************************************
+    set(_state "")
+    foreach (_arg ${ARGN})
+        if (
+            ("${_arg}_I_HATE_CMAKE" STREQUAL "SOURCES_I_HATE_CMAKE") OR
+            ("${_arg}_I_HATE_CMAKE" STREQUAL "TRANSLATION_DIR_I_HATE_CMAKE") OR
+            ("${_arg}_I_HATE_CMAKE" STREQUAL "INSTALLATION_DIR_I_HATE_CMAKE") OR
+            ("${_arg}_I_HATE_CMAKE" STREQUAL "TS_SRC_FILE_I_HATE_CMAKE")        
+           )        
+            set(_state ${_arg})
+      
+        else()
+            if("${_state}" STREQUAL "SOURCES")
+                get_filename_component (__file ${_arg} ABSOLUTE)
+                set(_sources  ${_sources} ${__file})
+                set(_sourcesSpace  "${_sourcesSpace} ${__file}")
+            elseif("${_state}" STREQUAL "TRANSLATION_DIR")
+                set(_translationDir ${_arg})       
+                set(_state "")
+
+            elseif("${_state}" STREQUAL "INSTALLATION_DIR")
+                set(_installDir ${_arg})       
+                set(_state "")
+
+            elseif("${_state}" STREQUAL "TS_SRC_FILE")
+                set(_tsSrcFile ${_arg})       
+                set(_state "")
+        
+            else()  
+                MESSAGE(FATAL_ERROR 
+                  "Unknown argument '${_arg}'.\n"
+                  "See ${CMAKE_CURRENT_LIST_FILE} for more information.\n"
+                )
+            endif()  
+        endif()
+    endforeach(_arg)
+
+    get_filename_component (_translationDir ${_translationDir} ABSOLUTE)
+    if ("${_tsSrcFile}" STREQUAL "") 
+        set(_tsSrcFile  "${_translationDir}/${PROJECT_NAME}.ts.src")
+    endif()
+    
+    get_filename_component (_tsSrcFile  ${_tsSrcFile} ABSOLUTE)
+    get_filename_component (_tsSrcFileName  ${_tsSrcFile} NAME)
+    get_filename_component (_tsSrcFileNameWE  ${_tsSrcFile} NAME_WE)
+      
+    # TS.SRC file *******************************************    
+    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/updateTsFile.sh
+        "#/bin/sh\n"
+        "\n"
+        "mkdir -p ${_translationDir} 2>/dev/null\n"
+        "cd ${_translationDir} && "
+        "${QT_LUPDATE_EXECUTABLE} -locations none -target-language en_US ${_sourcesSpace} -ts ${_tsSrcFile}.ts &&"
+        "mv ${_tsSrcFile}.ts ${_tsSrcFile}\n"
+        "grep -q 'source' '${_tsSrcFile}' || rm '${_tsSrcFile}'\n"
+    )
+
+    add_custom_target(Update_${_tsSrcFileName}
+        COMMAND sh ${CMAKE_CURRENT_BINARY_DIR}/updateTsFile.sh
+        DEPENDS ${_sources}
+        VERBATIM
+    )
+  
+    add_dependencies(UpdateTsFiles Update_${_tsSrcFileName})
+    
+    # TX file ***********************************************
+    set(_txFile "${CMAKE_BINARY_DIR}/tx/${_tsSrcFileName}.tx.sh")
+    string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_translationDir ${_translationDir})
+    string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_tsSrcFile ${_tsSrcFile})
+    
+    file(WRITE ${_txFile}
+        "[ -f ${_tsSrcFile} ] || exit 0\n"
+        "echo '[lxqt-qt.${_tsSrcFileNameWE}]'\n"
+        "echo 'type = QT'\n"
+        "echo 'source_lang = en'\n"
+        "echo 'source_file = ${_tx_tsSrcFile}'\n"
+        "echo 'file_filter = ${_tx_translationDir}/${_tsSrcFileNameWE}_<lang>.ts'\n"
+        "echo ''\n"
+    )
+
+    # translate.h file *************************************
+    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/lxqttranslate.h
+        "#ifndef LXQT_TRANSLATE_H\n"
+        "#include <QtCore/QLocale>\n"
+        "#include <QtCore/QTranslator>\n"
+        "#include <QtCore/QLibraryInfo>\n"
+        "class LxQtTranslator {\n"
+        "public:\n"
+        "  static void translate()\n"
+        "  {\n"
+        "    QString locale = QLocale::system().name();\n"
+
+        "    QTranslator *qtTranslator = new QTranslator(qApp);\n"
+        "    qtTranslator->load(\"qt_\" + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));\n"
+        "    qApp->installTranslator(qtTranslator);\n"
+
+        "    QTranslator *appTranslator = new QTranslator(qApp);\n"
+        "    appTranslator->load(QString(\"${_installDir}/${PROJECT_NAME}_%1.qm\").arg(locale));\n"
+        "    qApp->installTranslator(appTranslator);\n"
+        "  }\n"
+        "};\n"
+
+        "#define TRANSLATE_APP  LxQtTranslator::translate();\n"
+        "#endif // LXQT_TRANSLATE_H\n"
+    )
+
+    # QM files **********************************************    
+    file(GLOB _tsFiles ${_translationDir}/${_tsSrcFileNameWE}_*.ts)    
+    QT4_ADD_TRANSLATION_FIXED(_qmFilesLocal ${_tsFiles})
+    install(FILES ${_qmFilesLocal} DESTINATION ${_installDir})
+    
+    set(${_qmFiles} ${_qmFilesLocal} PARENT_SCOPE)
+endfunction(lxqt_translate_ts)
+
+
+#**********************************************************
+# DESKTOP files
+#**********************************************************
+
+function(lxqt_translate_desktop _RESULT)
+    set(_translationDir "translations")
+    
+    # Parse arguments ***************************************
+    set(_state "")
+    foreach (_arg ${ARGN})  
+        if (
+            ("${_arg}_I_HATE_CMAKE" STREQUAL "SOURCES_I_HATE_CMAKE") OR
+            ("${_arg}_I_HATE_CMAKE" STREQUAL "TRANSLATION_DIR_I_HATE_CMAKE")
+           )        
+
+            set(_state ${_arg})
+      
+        else()
+            if("${_state}" STREQUAL "SOURCES")
+                get_filename_component (__file ${_arg} ABSOLUTE)
+                set(_sources  ${_sources} ${__file})
+                #set(_sources  ${_sources} ${_arg})
+            elseif("${_state}" STREQUAL "TRANSLATION_DIR")
+                set(_translationDir ${_arg})       
+                set(_state "")
+
+            else()  
+                MESSAGE(FATAL_ERROR 
+                  "Unknown argument '${_arg}'.\n"
+                  "See ${CMAKE_CURRENT_LIST_FILE} for more information.\n"
+                )
+            endif()  
+        endif()
+    endforeach(_arg)    
+
+    get_filename_component (_translationDir ${_translationDir} ABSOLUTE)    
+    
+    foreach (_inFile ${_sources})
+        get_filename_component(_inFile   ${_inFile} ABSOLUTE)
+        get_filename_component(_fileName ${_inFile} NAME_WE)
+        #Extract the real extension ............
+        get_filename_component(_fileExt  ${_inFile} EXT)
+        string(REPLACE ".in" "" _fileExt ${_fileExt})
+        #.......................................
+        set(_outFile "${CMAKE_CURRENT_BINARY_DIR}/${_fileName}${_fileExt}")
+
+        file(GLOB _translations
+            ${_translationDir}/${_fileName}_*${_fileExt}
+            ${_translationDir}/local/${_fileName}_*${_fileExt}
+        )    
+  
+        set(_pattern "'\\[.*]\\s*='")
+        if (_translations)
+            add_custom_command(OUTPUT ${_outFile}
+                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
+                COMMAND grep --no-filename ${_pattern} ${_translations} >> ${_outFile}
+                COMMENT "Generating ${_fileName}${_fileExt}"
+            )
+        else()
+            add_custom_command(OUTPUT ${_outFile}
+                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
+                COMMENT "Generating ${_fileName}${_fileExt}"
+            )
+        endif()
+
+        set(__result ${__result} ${_outFile}) 
+
+
+        # TX file ***********************************************
+        set(_txFile "${CMAKE_BINARY_DIR}/tx/${_fileName}${_fileExt}.tx.sh")
+        string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_translationDir ${_translationDir})
+        string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_inFile ${_inFile})
+        string(REPLACE "." "" _fileType ${_fileExt})
+    
+        file(WRITE ${_txFile}
+            "[ -f ${_inFile} ] || exit 0\n"
+            "echo '[lxqt-qt.${_fileName}_${_fileType}]'\n"
+            "echo 'type = DESKTOP'\n"
+            "echo 'source_lang = en'\n"
+            "echo 'source_file = ${_tx_inFile}'\n"
+            "echo 'file_filter = ${_tx_translationDir}/${_fileName}_<lang>${_fileExt}'\n"
+            "echo ''\n"
+        )
+
+    endforeach()
+
+    set(${_RESULT} ${__result} PARENT_SCOPE)    
+endfunction(lxqt_translate_desktop)
+
diff --git a/cmake/RazorTranslate.cmake b/cmake/RazorTranslate.cmake
deleted file mode 100644 (file)
index 5bbc0b2..0000000
+++ /dev/null
@@ -1,275 +0,0 @@
-#  funtion razor_translate_ts(qm_files 
-#                           SOURCES sources ... 
-#                           [TRANSLATION_DIR] translation_directory
-#                           [INSTALLATION_DIR] qm_install_directory
-#                          )
-#     out: qm_files 
-#     generates commands to create .ts.src and .qm files from sources. 
-#     The generated filenames can be found in qm_files.
-#
-#     in: sources 
-#     List of the h, cpp and ui files
-#
-#     in: translation_directory
-#     A relative path to the directory with .ts files, it is relative 
-#     to the CMakeList.txt. By default is "translations"
-#
-#     in: qm_install_directory
-#     A full path to the directory n which will be installed .qm files.
-#     By default is "${CMAKE_INSTALL_PREFIX}/share/razor/${PROJECT_NAME}" 
-
-
-MACRO(QT4_ADD_TRANSLATION_FIXED _qm_files)
-  FOREACH (_current_FILE ${ARGN})
-    GET_FILENAME_COMPONENT(_abs_FILE ${_current_FILE} ABSOLUTE)
-    GET_FILENAME_COMPONENT(qm ${_abs_FILE} NAME)
-    #Extract the real extension ............
-    STRING(REPLACE ".ts" "" qm ${qm})
-    GET_SOURCE_FILE_PROPERTY(output_location ${_abs_FILE} OUTPUT_LOCATION)
-    IF(output_location)
-      FILE(MAKE_DIRECTORY "${output_location}")
-      SET(qm "${output_location}/${qm}.qm")
-    ELSE(output_location)
-      SET(qm "${CMAKE_CURRENT_BINARY_DIR}/${qm}.qm")
-    ENDIF(output_location)
-
-    ADD_CUSTOM_COMMAND(OUTPUT ${qm}
-       COMMAND ${QT_LRELEASE_EXECUTABLE}
-       ARGS -silent -removeidentical ${_abs_FILE} -qm ${qm}
-       DEPENDS ${_abs_FILE}
-    )
-    SET(${_qm_files} ${${_qm_files}} ${qm})
-  ENDFOREACH (_current_FILE)
-ENDMACRO(QT4_ADD_TRANSLATION_FIXED)
-
-if(NOT TARGET UpdateTsFiles)
-  add_custom_target(UpdateTsFiles DEPENDS)
-endif()
-
-if(NOT TARGET UpdateTxFile)
-  file(WRITE ${CMAKE_BINARY_DIR}/tx/_updateTxFile.sh
-        "echo '[main]'\n"
-        "echo 'host = https://www.transifex.com'\n"
-        "echo 'minimum_perc = 1'\n"
-        "echo ''\n"
-        "for f in `ls ${CMAKE_BINARY_DIR}/tx/*.tx.sh`; do\n"
-        " sh $f;\n"
-        "done\n"
-      )
-
-  add_custom_target(UpdateTxFile  
-    COMMAND sh ${CMAKE_BINARY_DIR}/tx/_updateTxFile.sh > ${CMAKE_SOURCE_DIR}/.tx/config
-  )
-endif()
-
-
-function(razor_translate_ts _qmFiles)
-    set(_translationDir "translations")
-    set(_installDir "${CMAKE_INSTALL_PREFIX}/share/razor/${PROJECT_NAME}")
-    
-    # Parse arguments ***************************************
-    set(_state "")
-    foreach (_arg ${ARGN})
-        if (
-            ("${_arg}_I_HATE_CMAKE" STREQUAL "SOURCES_I_HATE_CMAKE") OR
-            ("${_arg}_I_HATE_CMAKE" STREQUAL "TRANSLATION_DIR_I_HATE_CMAKE") OR
-            ("${_arg}_I_HATE_CMAKE" STREQUAL "INSTALLATION_DIR_I_HATE_CMAKE") OR
-            ("${_arg}_I_HATE_CMAKE" STREQUAL "TS_SRC_FILE_I_HATE_CMAKE")        
-           )        
-            set(_state ${_arg})
-      
-        else()
-            if("${_state}" STREQUAL "SOURCES")
-                get_filename_component (__file ${_arg} ABSOLUTE)
-                set(_sources  ${_sources} ${__file})
-                set(_sourcesSpace  "${_sourcesSpace} ${__file}")
-            elseif("${_state}" STREQUAL "TRANSLATION_DIR")
-                set(_translationDir ${_arg})       
-                set(_state "")
-
-            elseif("${_state}" STREQUAL "INSTALLATION_DIR")
-                set(_installDir ${_arg})       
-                set(_state "")
-
-            elseif("${_state}" STREQUAL "TS_SRC_FILE")
-                set(_tsSrcFile ${_arg})       
-                set(_state "")
-        
-            else()  
-                MESSAGE(FATAL_ERROR 
-                  "Unknown argument '${_arg}'.\n"
-                  "See ${CMAKE_CURRENT_LIST_FILE} for more information.\n"
-                )
-            endif()  
-        endif()
-    endforeach(_arg)
-
-    get_filename_component (_translationDir ${_translationDir} ABSOLUTE)
-    if ("${_tsSrcFile}" STREQUAL "") 
-        set(_tsSrcFile  "${_translationDir}/${PROJECT_NAME}.ts.src")
-    endif()
-    
-    get_filename_component (_tsSrcFile  ${_tsSrcFile} ABSOLUTE)
-    get_filename_component (_tsSrcFileName  ${_tsSrcFile} NAME)
-    get_filename_component (_tsSrcFileNameWE  ${_tsSrcFile} NAME_WE)
-      
-    # TS.SRC file *******************************************    
-    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/updateTsFile.sh
-        "#/bin/sh\n"
-        "\n"
-        "mkdir -p ${_translationDir} 2>/dev/null\n"
-        "cd ${_translationDir} && "
-        "${QT_LUPDATE_EXECUTABLE} -locations none -target-language en_US ${_sourcesSpace} -ts ${_tsSrcFile}.ts &&"
-        "mv ${_tsSrcFile}.ts ${_tsSrcFile}\n"
-        "grep -q 'source' '${_tsSrcFile}' || rm '${_tsSrcFile}'\n"
-    )
-
-    add_custom_target(Update_${_tsSrcFileName}
-        COMMAND sh ${CMAKE_CURRENT_BINARY_DIR}/updateTsFile.sh
-        DEPENDS ${_sources}
-        VERBATIM
-    )
-  
-    add_dependencies(UpdateTsFiles Update_${_tsSrcFileName})
-    
-    # TX file ***********************************************
-    set(_txFile "${CMAKE_BINARY_DIR}/tx/${_tsSrcFileName}.tx.sh")
-    string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_translationDir ${_translationDir})
-    string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_tsSrcFile ${_tsSrcFile})
-    
-    file(WRITE ${_txFile}
-        "[ -f ${_tsSrcFile} ] || exit 0\n"
-        "echo '[razor-qt.${_tsSrcFileNameWE}]'\n"
-        "echo 'type = QT'\n"
-        "echo 'source_lang = en'\n"
-        "echo 'source_file = ${_tx_tsSrcFile}'\n"
-        "echo 'file_filter = ${_tx_translationDir}/${_tsSrcFileNameWE}_<lang>.ts'\n"
-        "echo ''\n"
-    )
-
-    # translate.h file *************************************
-    file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/razortranslate.h
-        "#ifndef RAZOR_TRANSLATE_H\n"
-        "#include <QtCore/QLocale>\n"
-        "#include <QtCore/QTranslator>\n"
-        "#include <QtCore/QLibraryInfo>\n"
-        "class RazorTranslator {\n"
-        "public:\n"
-        "  static void translate()\n"
-        "  {\n"
-        "    QString locale = QLocale::system().name();\n"
-
-        "    QTranslator *qtTranslator = new QTranslator(qApp);\n"
-        "    qtTranslator->load(\"qt_\" + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));\n"
-        "    qApp->installTranslator(qtTranslator);\n"
-
-        "    QTranslator *appTranslator = new QTranslator(qApp);\n"
-        "    appTranslator->load(QString(\"${_installDir}/${PROJECT_NAME}_%1.qm\").arg(locale));\n"
-        "    qApp->installTranslator(appTranslator);\n"
-        "  }\n"
-        "};\n"
-
-        "#define TRANSLATE_APP  RazorTranslator::translate();\n"
-        "#endif // RAZOR_TRANSLATE_H\n"
-    )
-
-    # QM files **********************************************    
-    file(GLOB _tsFiles ${_translationDir}/${_tsSrcFileNameWE}_*.ts)    
-    QT4_ADD_TRANSLATION_FIXED(_qmFilesLocal ${_tsFiles})
-    install(FILES ${_qmFilesLocal} DESTINATION ${_installDir})
-    
-    set(${_qmFiles} ${_qmFilesLocal} PARENT_SCOPE)
-endfunction(razor_translate_ts)
-
-
-#**********************************************************
-# DESKTOP files
-#**********************************************************
-
-function(razor_translate_desktop _RESULT)
-    set(_translationDir "translations")
-    
-    # Parse arguments ***************************************
-    set(_state "")
-    foreach (_arg ${ARGN})  
-        if (
-            ("${_arg}_I_HATE_CMAKE" STREQUAL "SOURCES_I_HATE_CMAKE") OR
-            ("${_arg}_I_HATE_CMAKE" STREQUAL "TRANSLATION_DIR_I_HATE_CMAKE")
-           )        
-
-            set(_state ${_arg})
-      
-        else()
-            if("${_state}" STREQUAL "SOURCES")
-                get_filename_component (__file ${_arg} ABSOLUTE)
-                set(_sources  ${_sources} ${__file})
-                #set(_sources  ${_sources} ${_arg})
-            elseif("${_state}" STREQUAL "TRANSLATION_DIR")
-                set(_translationDir ${_arg})       
-                set(_state "")
-
-            else()  
-                MESSAGE(FATAL_ERROR 
-                  "Unknown argument '${_arg}'.\n"
-                  "See ${CMAKE_CURRENT_LIST_FILE} for more information.\n"
-                )
-            endif()  
-        endif()
-    endforeach(_arg)    
-
-    get_filename_component (_translationDir ${_translationDir} ABSOLUTE)    
-    
-    foreach (_inFile ${_sources})
-        get_filename_component(_inFile   ${_inFile} ABSOLUTE)
-        get_filename_component(_fileName ${_inFile} NAME_WE)
-        #Extract the real extension ............
-        get_filename_component(_fileExt  ${_inFile} EXT)
-        string(REPLACE ".in" "" _fileExt ${_fileExt})
-        #.......................................
-        set(_outFile "${CMAKE_CURRENT_BINARY_DIR}/${_fileName}${_fileExt}")
-
-        file(GLOB _translations
-            ${_translationDir}/${_fileName}_*${_fileExt}
-            ${_translationDir}/local/${_fileName}_*${_fileExt}
-        )    
-  
-        set(_pattern "'\\[.*]\\s*='")
-        if (_translations)
-            add_custom_command(OUTPUT ${_outFile}
-                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
-                COMMAND grep --no-filename ${_pattern} ${_translations} >> ${_outFile}
-                COMMENT "Generating ${_fileName}${_fileExt}"
-            )
-        else()
-            add_custom_command(OUTPUT ${_outFile}
-                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
-                COMMENT "Generating ${_fileName}${_fileExt}"
-            )
-        endif()
-
-        set(__result ${__result} ${_outFile}) 
-
-
-        # TX file ***********************************************
-        set(_txFile "${CMAKE_BINARY_DIR}/tx/${_fileName}${_fileExt}.tx.sh")
-        string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_translationDir ${_translationDir})
-        string(REPLACE "${CMAKE_SOURCE_DIR}/" "" _tx_inFile ${_inFile})
-        string(REPLACE "." "" _fileType ${_fileExt})
-    
-        file(WRITE ${_txFile}
-            "[ -f ${_inFile} ] || exit 0\n"
-            "echo '[razor-qt.${_fileName}_${_fileType}]'\n"
-            "echo 'type = DESKTOP'\n"
-            "echo 'source_lang = en'\n"
-            "echo 'source_file = ${_tx_inFile}'\n"
-            "echo 'file_filter = ${_tx_translationDir}/${_fileName}_<lang>${_fileExt}'\n"
-            "echo ''\n"
-        )
-
-    endforeach()
-
-    set(${_RESULT} ${__result} PARENT_SCOPE)    
-endfunction(razor_translate_desktop)
-
diff --git a/man/lxqt-power.1 b/man/lxqt-power.1
new file mode 100644 (file)
index 0000000..ab818cd
--- /dev/null
@@ -0,0 +1,55 @@
+.TH lxqt-power "1" "September 2012" "LxQt\-qt\ 0.5.0" "LxQt\-qt\ Module"
+.SH NAME
+lxqt-power \- Power Module of \fBLxQt-qt\fR: the faster and lighter QT Desktop Environment
+.SH SYNOPSIS
+.B lxqt-power
+[\fICurrently No command line arguments\fR]
+.br
+.SH DESCRIPTION
+This module handle power action over battery and hardware, especially for laptop users, 
+it communicates with dbus for handle operation over LID and CPU control.
+.P
+The \fBLxQt-qt modules\fR are desktop independent tools, 
+and operate as daemons for the local user in desktop specific operations.
+.P
+\fBLxQt-qt\fR is an advanced, easy-to-use, and fast desktop environment based on Qt
+technologies, ships several core desktop components, all of which are optional:
+.P
+ * Panel
+ * Desktop
+ * Application launcher
+ * Settings center
+ * Session handler
+ * Polkit handler
+ * SSH password access
+ * Display manager handler
+ * Power manager and energy saver \fI(this)\fR
+.P
+These components perform similar actions to those available in other desktop
+environments, and their names are self-descriptive.  They are usually not launched
+by hand but automatically, when choosing a \fBLxQt\-qt\fR session in the Display
+Manager.
+.SH BEHAVIOR
+It communicates with dbus for handle operation over LID and CPU control.
+.P
+Operations are defined throught the \fBlxqt\-config\-autosuspend\fR application, 
+and performed by the \fBlxqt\-power\fR application.
+.SH AUTOSTART
+The module only are showed on \fBLxQt-qt\fR desktop, but u can create an autostart action 
+for u prefered desktop environment.
+.SH "REPORTING BUGS"
+Report bugs to https://github.com/LxQt-qt/LxQt-qt/issues
+.SH "SEE ALSO"
+\fBLxQt-qt\fR it has been tailored for users who value simplicity, speed, and
+an intuitive interface, is also intended for less powerful machines. See also:
+.\" any module must refers to session app, for more info on start it
+.P
+\fBlxqt-session.1\fR  LxQt-qt for manage LxQt-qt complete environment
+.P
+\fBlxqt-config-autosuspend.1\fR  LxQt-qt application for config power/enegy save actions
+.P
+\fBlxqt-power.1\fR  LxQt-qt application for performing power management actions
+.P
+.SH AUTHOR
+This manual page was created by \fBPICCORO Lenz McKAY\fR \fI<mckaygerhard@gmail.com>\fR 
+for \fBLxQt-qt\fR project and VENENUX GNU/Linux but can be used by others.
diff --git a/man/razor-power.1 b/man/razor-power.1
deleted file mode 100644 (file)
index 234e1ca..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-.TH razor-power "1" "September 2012" "Razor\-qt\ 0.5.0" "Razor\-qt\ Module"
-.SH NAME
-razor-power \- Power Module of \fBRazor-qt\fR: the faster and lighter QT Desktop Environment
-.SH SYNOPSIS
-.B razor-power
-[\fICurrently No command line arguments\fR]
-.br
-.SH DESCRIPTION
-This module handle power action over battery and hardware, especially for laptop users, 
-it communicates with dbus for handle operation over LID and CPU control.
-.P
-The \fBRazor-qt modules\fR are desktop independent tools, 
-and operate as daemons for the local user in desktop specific operations.
-.P
-\fBRazor-qt\fR is an advanced, easy-to-use, and fast desktop environment based on Qt
-technologies, ships several core desktop components, all of which are optional:
-.P
- * Panel
- * Desktop
- * Application launcher
- * Settings center
- * Session handler
- * Polkit handler
- * SSH password access
- * Display manager handler
- * Power manager and energy saver \fI(this)\fR
-.P
-These components perform similar actions to those available in other desktop
-environments, and their names are self-descriptive.  They are usually not launched
-by hand but automatically, when choosing a \fBRazor\-qt\fR session in the Display
-Manager.
-.SH BEHAVIOR
-It communicates with dbus for handle operation over LID and CPU control.
-.P
-Operations are defined throught the \fBrazor\-config\-autosuspend\fR application, 
-and performed by the \fBrazor\-power\fR application.
-.SH AUTOSTART
-The module only are showed on \fBRazor-qt\fR desktop, but u can create an autostart action 
-for u prefered desktop environment.
-.SH "REPORTING BUGS"
-Report bugs to https://github.com/Razor-qt/Razor-qt/issues
-.SH "SEE ALSO"
-\fBRazor-qt\fR it has been tailored for users who value simplicity, speed, and
-an intuitive interface, is also intended for less powerful machines. See also:
-.\" any module must refers to session app, for more info on start it
-.P
-\fBrazor-session.1\fR  Razor-qt for manage Razor-qt complete environment
-.P
-\fBrazor-config-autosuspend.1\fR  Razor-qt application for config power/enegy save actions
-.P
-\fBrazor-power.1\fR  Razor-qt application for performing power management actions
-.P
-.SH AUTHOR
-This manual page was created by \fBPICCORO Lenz McKAY\fR \fI<mckaygerhard@gmail.com>\fR 
-for \fBRazor-qt\fR project and VENENUX GNU/Linux but can be used by others.
index 13fc5bb..b1620b8 100644 (file)
@@ -29,15 +29,15 @@ file(GLOB DESKTOP_FILES_IN
 )
 
 # Translations **********************************
-include(RazorTranslate)
-razor_translate_ts(QM_FILES
+include(LxQtTranslate)
+lxqt_translate_ts(QM_FILES
     SOURCES
         ${H_FILES}
         ${CPP_FILES}
         ${UI_FILES}
 )
 
-razor_translate_desktop(DESKTOP_FILES
+lxqt_translate_desktop(DESKTOP_FILES
     SOURCES
         ${DESKTOP_FILES_IN}
 )
@@ -60,8 +60,8 @@ find_package(Qt4 REQUIRED)
 include(${QT_USE_FILE})
 
 
-set(RAZOR_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/razor)
-set(APP_SHARE_DIR ${RAZOR_SHARE_DIR}/${PROJECT})
+set(LXQT_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/lxqt)
+set(APP_SHARE_DIR ${LXQT_SHARE_DIR}/${PROJECT})
 
 #************************************************
 
index b61eddc..9c75481 100644 (file)
@@ -1,7 +1,7 @@
 /* BEGIN_COMMON_COPYRIGHT_HEADER
  * (c)LGPL2+
  *
- * Razor - a lightweight, Qt based, desktop toolset
+ * LXDE-Qt - a lightweight, Qt based, desktop toolset
  * http://razor-qt.org
  *
  * Copyright: 2010-2011 Razor team
index aac7a0a..f987cb6 100644 (file)
@@ -1,7 +1,7 @@
 /* BEGIN_COMMON_COPYRIGHT_HEADER
  * (c)LGPL2+
  *
- * Razor - a lightweight, Qt based, desktop toolset
+ * LXDE-Qt - a lightweight, Qt based, desktop toolset
  * http://razor-qt.org
  *
  * Copyright: 2010-2011 Razor team
index 5a948e2..bf44b7d 100644 (file)
@@ -1,7 +1,7 @@
 /* BEGIN_COMMON_COPYRIGHT_HEADER
  * (c)LGPL2+
  *
- * Razor - a lightweight, Qt based, desktop toolset
+ * LXDE-Qt - a lightweight, Qt based, desktop toolset
  * http://razor-qt.org
  *
  * Copyright: 2010-2011 Razor team
@@ -28,7 +28,7 @@
 
 #include <lxqt/lxqtapplication.h>
 #include "dialog.h"
-#include "razortranslate.h"
+#include "lxqttranslate.h"
 #include <QtCore/QTextStream>
 #include <lxqt/lxqtpower.h>
 #include <QtCore/QDebug>
@@ -36,9 +36,9 @@
 void help()
 {
     QTextStream out(stdout);
-    out << "Usage: razor-power" << endl;
-    out << "  or:  razor-power --check ACTION" << endl;
-    out << "  or:  razor-power ACTION" << endl;
+    out << "Usage: lxqt-power" << endl;
+    out << "  or:  lxqt-power --check ACTION" << endl;
+    out << "  or:  lxqt-power ACTION" << endl;
 
     out << "The first variant starts the GUI interface." << endl;
     out << "The second variant checks is the action can be performed." << endl;
index 862b66a..5f5aeb1 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 4c2d858..a5e02c3 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 0f5e223..04617f6 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 84feb47..69af216 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 4695e58..8a40265 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 03ce6eb..6b4d9d5 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 925e47c..f861d3f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 9d79ba4..5766660 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 997bb98..5f56920 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index d542f35..71c6446 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 444b074..c7ec411 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 3f1a2e6..5714b2d 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 0318031..a5f88a8 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 7f0863a..55c2c9c 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 5d3c128..bcdc5c9 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 925e47c..f861d3f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 925e47c..f861d3f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 9d5da1e..417a11f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index cc2abe2..710d7fd 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index b2c1c7b..54f6901 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 925e47c..f861d3f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 3eec0fc..182d3a6 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 25cf932..4f9072a 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index d987206..03443b3 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index a87633e..cebf3ac 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 85110d6..0f6bbc7 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 69eb544..a2fe132 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 25f8f2c..195b89a 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 3e99b80..649b889 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 2321eee..f07072f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index e5d6302..980d5ce 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 3fbb399..f428672 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 0b1da88..e3aa5ae 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 7250254..5d0f805 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 0a5ad12..31335be 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 925e47c..f861d3f 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index 6a3af64..85bbf8b 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system
 
index c64e9da..4afc505 100644 (file)
@@ -1,10 +1,10 @@
 [Desktop Entry]
 Type=Application
-Exec=razor-power
+Exec=lxqt-power
 Icon=system-shutdown
 Terminal=false
-OnlyShowIn=Razor;
-Categories=Qt;System;Razor;
+OnlyShowIn=LxQt;
+Categories=Qt;System;LxQt;
 Name=Leave
 GenericName=Leave the system