Remove pristine-tar files.

ubuntu/cosmic
Simon Quigley 7 years ago
parent 0bdea4eb9b
commit 8938efaa36

@ -1,10 +0,0 @@
Upstream Authors:
LXQt team: http://lxqt.org
Razor team: http://razor-qt.org
Copyright:
Copyright (c) 2010-2012 Razor team
Copyright (c) 2012-2017 LXQt team
License: LGPL-2.1+
The full text of the licenses can be found in the 'COPYING' file.

@ -1,505 +0,0 @@
lxqt-session-0.12.0 / 2017-10-21
================================
* Set patch version
* lxqt-session: Unify arguments parsing
* Don't export github templates
* Add/Update Lithuanian language
* c'n'p bug
* add basic cli to lxqt-session
* lxqt-session: Provide reboot/powerOff methods
* Drops Qt5Core_VERSION_STRING
* lxqt-config-session: set Qt::AA_UseHighDpiPixmaps to true
* lxqt-leave: set Qt::AA_UseHighDpiPixmaps to true
* improved --version
* Added QCommandLineParser and basic cli interface to lxqt-conf-session
* Added default CMAKE_BUILD_TYPE and LXQT_SESSION_PATCH_VERSION
* String encoding (#103)
* Fixes a FTBFS in superbuild mode (#102)
* lxqt-leave: Fix "disabled items" key navigation
* Address "unused parameter" compiler warnings
* lxqt-leave: Redesign dialog for good key navigation
* Removed superfluous include(LXQtTranslateDesktop)
* fixed config/CMakeLists.txt
* Merged relevant parts of CMakeLists.txt.lxqt-common into CMakeLists.txt
* Rename CMakeLists.txt -> CMakeLists.txt.lxqt-common
* Add Basque translation of lxqt-leave and update Basque translation of lxqt-config-session
* leavedialog: Use "expected" tab order
* LeaveDialog: Accept enter key for action/cancel firing
* LeaveDialog: Use "override" keyword
* leavedialog: Don't trigger "cancel" on Enter
* LeaveDialog: Use correct method
* startlxqt: Consider $XDG_RUNTIME_DIR/bus for DBus
* Updated *_da.desktop files and removed *_da_DK.desktop files
* Bump year
* Update desktop entries and Replace fr_FR by fr
* Use the LXQtConfigVars module
* Fixed typo
* Remove cpack (#61)
* startlxqt: Consider LXQT_DEFAULT_OPENBOX_CONFIG
* startlxqt: Honor the pre-defined SAL_USE_VLCPLUGIN
* Replace lxqt-rc.xml with latest openbox version
* startlxqt: Consider pre-exising LXDE OB config also
* build: Revert @6d6d2bef54
* build: Add xmessage as "dependency"
* Openbox: Fix informational message about adoption of rc.xml
* lxqt-rc.xml: Change default config install path
* startlxqt: Copy existing openbox config preferably
* Improves changed Openbox default path startup message (#51)
* Disable gtk+ 3 overlay scrollbars by default.
* Don't add XDG_DATA_HOME to XDG_DATA_DIRS (#47)
* Message about Openbox default path changed.
* Warning message about openbox settings path changed.
* startlxqt: Force XDG_CONFIG_DIRS to contain @LXQT_ETC_XDG_DIR@
* Copy openbox defaults at session start.
* Rename openbox/rc.xml to openbox/lxqt-openbox-rc.xml
* Openbox aero snap using mouse wheel over title bar.
* Settings Openbox updated.
* Default key shortcuts added to lxqt-globalkeysd.
* CMakeLists: Use LXQT_GRAPHICS_DIR for graphics
* Add startlxqt man page
* Fixes #807 Add XDG_CACHE_HOME definition
* startlxqt: optimization of XDG_DATA_DIRS
* corrected indentation
* startlxqt: Set proper prefix for XDG_DATA_DIRS
* Update Greek translation (el) Remove country variant from language code
* Rename LxQt to LXQt everywhere
* CMake: Adds Runtime and Devel install COMPONENTs
* Coding style changes
* Removes no added value comments
* Adds double quotes to everything that may break
* Use GNUINnstallDirs
* Updates the build system to use the Targets infrastructure
* Enable the "leave confirmation dialog" by default
* TryExec to detect proper installed lxqt-session
* Uniforms indentation
* Sets env variable XDG_CONFIG_DIRS
* Drops hardcoded /etc/xdg paths
* Set LibreOffice's plugin env var to kde4
* config: auto-detect succesfully kwin on recent kwin versions
* Updated german translation, replaced Qt4 by Qt in all xsession/translations
* Adds an scalable start-here-lxqt icon
* use LXQt-specific menu file
* Renames some .desktop files
* Portuguese update for .desktop files
* - Unify naming for a unique lxqt. No more suffixes
* Make frost the default theme
* Defines XDG_DATA_HOME and XDG_DATA_DIRS environment variables
* Updates translations infrastructure
* Update the required minimum cmake version
* Clean up CMakeLists.txt and drop Qt 4 support
* Set environment variable GTK_CSD=0 to turn off the default client side decoration for gtk+ 3 programs. (This will not always work if a gtk+3 program explicitly sets a title bar and turns on CSD.)
* Add some more default values for Qt settings.
* Update default config file.
* Add Qt5 support.
* Support Qt5 platform plugin and add some more comments.
* Remove XDG_CURRENT_DESKTOP=Razor from environment variables.
* Set XDG_CURRENT_DESKTOP to LXQt
* remove dead template lines switch OnlyShowIn from Razor -> LXQt stringchanges LxQt -> LXQt
* Use LXQt as desktop name
* Add CPack rules for creating tarball
* Add session.conf and windowmanagers.conf.
* Change XDG_CURRENT_DESKTOP to Razor for now. (May rename to LxQt or something else in the future.)
* Export environment varialbe QT_PLATFORM_PLUGIN=lxqt to let all Qt programs load lxqt-qtplugin and apply lxqt settings.
* Support lxqt-session and add necessary xdg autostart desktop entry files.
* Run lxde-qt with XDG_CURRENT_DESKTOP=RAZOR
* Fix renaming bugs, replacing lxqt-qt with lxde-qt
* Finish the crazy razor=>lxqt renaming tasks.
* Rename dirs and replace razor with lxqt. Install lxqt.conf to /etc/xdg/lxqt and provide theme config.
* Properly set default wallpaper for pcmanfm-qt. Comment out openbox config handling in startlxde-qt since it's not needed.
* Remove custom openbox config file in desktop.conf temporarily until lxsession is fixed.
* Fix file paths, replacing razor with lxqt. * Remove Alt+F2 and Ctrl+Esc from openbox config file to avoid conflicts with lxqt-panel & lxqt-globalkeys.
* Add default configuration files for lxde-qt session.
0.11.1 / 2017-01-01
===================
* Release 0.11.1: Update changelog
* Adds an nullptr check when restarting a module (#90)
* Fixes a session logout crash (#88)
* Updated da.desktop files and removed da_DK.desktop files
* Moves FindUDev to the lxqt-build-tools repo
* Reworks X11 CMake libraries
* Removes all XCB stuff from CMake
* Update french desktop entries
* lxqt-config-session: Use localized comment
* Make CMakeLists.txt more uniform.
* Remove cpack (#83)
0.11.0 / 2016-09-24
===================
* Release 0.11.0: Add changelog
* lockscreenmanager: always listen to the session provider's lock signal (#79)
* Update Polish translation
* Add README.md
* lxqt-config-session: Warn about restart required when removing env variable
* Add Catalan translations
* lockscreenmanager: use categorized logger
* Make screen locking before power actions optional
* Add and Update Arabic Translations for Desktop Files
* lxqt-session: Replace qCInfo() by qCWarning()
* Adds an WITH_LIBUDEV CMake option (#74)
* lockscreenmanager: add more log messages
* Add logic to lock screen before system sleeps
* lxqt-session: Use QLoggingCategory for logging/debug
* lxqt-session: Use the base name to compare Wm's names
* build: Use external translations
* ts-files removal (#72)
* Use const references with the foreach iterator
* leave: ask or not for confirmation from main dialog
* Adjust config dialog's size on startup
* Make it compile using QT_USE_QSTRINGBUILDER
* Fix lxqt-leave tab order
* lxqt-session doesn't copy openbox defaults at session start. startlxqt from lxqt-common will copy it.
* fixup...centering & spacing
* leave: do not set maximum size as minimum size
* Use XdgDir to find default path.
* Openbox default settings removed.
* Load LXQt default settings for Openbox.
* UserLocations: An user entered empty string represents the default value
* lxqt-config-session: Adds tooltips to the User Directories edits
* lxqt-config-session: Replaces Locations by User Directories
* Bump year Fix used licenses. lxqt-session is LGPL only
* Re-arrange the buttons
* lxqt-leave: Reworks window flags
* lxqt-leave: Make all buttons of equal width
* lxqt-leave: Center the dialog relative to the screen
* lxqt-leave: Removes window border and makes it stay on top
* lxqt-leave: Make the icons bigger and improves button alignement
* Updated german translation.
* Fix realloc() usage Check malloc() call result against NULL
* Add HR translations
* lxqt-session: Update man pages and make session the overview
* Update italian translation
* Updated Russian translations Removed ru_RU files
* Makes the dependency on xdg-user-dirs-update explicit
* Fix ending session and stopping modules
* upd: lxqt-config-session_hu.ts del: lxt-config-session_hu_HU.ts
* Fix desktop file
* Make desktop files valid
* CMakeLists.txt: Add cmake minimum required version
0.10.0 / 2015-10-31
===================
* Fix license file
* Update translations
* Use AutostartUtils class
* Use QLatin1String when appropriate
* lxqt-config-session: Handle Basic Settings>Modules 'Restart Needed' trigger
* lxqt-config-session: Adds an 'Restarted Needed' trigger to Autostart page
* Adds a way to edit xdg user-dirs (Personal Files Locations)
* Install missing man pages
* ATTN: Set LIBUDEV_MONITOR to OFF by default
* Improve Session Restart Required info message
* Allow only one Leave Dialog instance
* lxqt-config-session: Adjust Environment and Default Applications 'Restarted Needed' trigger
* lxqt-config-session: Adjust Basic Settings page 'Restarted Needed' trigger
* Fix Japanese translations.
* Fix typos in lxqt-config-session and lxqt-config manpages
* lxqt-session: CMakeLists.txt build fix for X11 module
* lxqt-session: CMakeLists.txt using link/include options from pkg-config modules (xcb, x11, libudev)
* Support automatically turning on numlock after login (X11 only).
* Fix some invalid categories and missed main categories
* Fix typos
* Fix typo in Greek (el) translation
* Rename LxQt to LXQt everywhere
* Update Greek translation Remove country variant from language code
* Update Greek (el) translation
* Updated german translations.
* Better title of leave dialog. Updated template for modified leave strings.
* Handles CMake policy CMP0063
* Use the LXQtCompilerSettings CMake module
* Removes appending to CMAKE_MODULE_PATH
* CMake: Adds Runtime and Devel install COMPONENTs
* Removes already included LXQtTranslate
* Use CMAKE_AUTOUIC, drop qt5_wrap_ui()
* Removes unneeded include_directories()
* Use GNUInstallDirs
* lxqt-session: execute setxkbmap only if there is something to set
* Updates the build system to use the Targets infrastructure
* Updated italian translation, discarding it_IT
* config: fix "leave confirmation dialog" label
* Leave confimation: disable by default if not set
* Remove trailing whitespaces
* Replace LXDE-Qt with LXQt in desktop file
* Replace LXDE-Qt with LXQt
* Fix naming and links
* lxqt-leave: lockscreen button in dialog
* Fix italian translation of lxqt-hibernate.desktop
* Add man page to lxqt-leave
* More german translation
* Update lxqt-config-session_it.desktop
* Create lxqt-hibernate_it.desktop
* Hungarian translations update
* Change CMakeLists.txt for new translation
* Update Russian translation
* Use qt5_wrap_ui macro for CMake 2.8.11
* lxqt-leave: rename folder lxqtleave to lxqt-leave
* lxqt-leave: show the gui by default
* lxqt-session: keyboard layout/settings reload after new input device added
* lxqt-leave: switch to QCommandLineParser to deal with options
* lxqt-leave: close leave dialog before power action
* lxqt-leave: fixed size of leave dialog
* Fix position of lxqt leave dialog and add .desktop
* Better C++11 detection
* Set C++11 to lxqt-session and add leave dialog
* Add KDevelop 4 format to .gitignore
* lxqtleave: *.dekstop translations cleanup
* Update Russian translation
* Create lxqt-suspend_it.desktop
* Moves lxqt-lockscreen_it.desktop to the proper place
* Create lxqt-lockscreen_it.desktop
* Moves lxqt-reboot_it.desktop to the proper place
* Create lxqt-reboot_it.desktop
* Create lxqt-shutdown_it.desktop
* Create lxqt-logout_it.desktop
* remove KF5/ prefix from includes
0.9.0 / 2015-01-29
==================
* Adjust the positions of buttons in autostart and environment variable settings pages.
* Revert "don't show the lxqt-leave actions in the "other" section of the menu"
* don't show the lxqt-leave actions in the "other" section of the menu
* Portuguese update
* add lxqtleave to lxqt-session, refs #22
* - Unify naming for a unique lxqt. No more suffixes
* Use the new LxQt::SingleApplication
* CMakeLists coding style reformatting
* CMakeLists.txt maintenance.
* Removes duplicated cmake_minimum_required()
* Add .gitignore
* Updates translations
* Use the new LXQtTranslate modules
* Linking to X11 again, need it for mouse pointer settings.
* Better window manager detection
* Add Russian translation
* Port to KWindowSystem
* Drop support for very old xdg-utils
* Remove unused startrazor binary
* Drop Qt4 support in code
* CMakeLists.txt cleanup, drop Qt4 support
0.8.0 / 2014-10-10
==================
* Adapt to the translation infrastructure
* Add option to disable confirmation dialogs to leave session
* Fix incorrect waiting for system tray and fix lxde/lxde-qt bug #38 - Battery icon doesn't show.
* Cleanup for Qt5 ready includes
* Fix broken build with Qt4.
* Simplify qt5 support. * Use cmake 2.8.9 for qt4 and 2.8.11 for qt5.
* Initial Qt5 support.
* Use new LXQt header files.
* Minor string fixes
* Update LxQt -> LXQt
* Update LXQt Session Settings title
* Update the shipped xdg-tools
* Update WM selection dialog
0.7.0 / 2014-05-07
==================
* Rename X-LxQt-Module to X-LXQt-Module and fix broken lxqt module configurations.
0.6.99 / 2014-05-01
===================
* Update manpages
* remove old translation templates remove translated icon names
* Avoid using alloca, which is not portable.
* Add AUTHORS and COPYING
* Add CPack rules for creating tarball
* Load xkb settings with setxkbmap when available.
* Improvements to .desktop file
* Stop setting font antialias and hinting with xrdb. (We use fontconfig now)
* Fix bugs in font configurations
* Make lxqt-config-session read/write the same keys as lxqt-sesion.
* Make names of config groups and keys more consistent.
* export LXQT_SESSION_CONFIG environment variable.
* Load font settings, including dpi and antialiasing Fix xrdb merging problems.
* Update copyright info.
* Load keyboard and mouse settings during session startup.
* Do not hard-code "XDG_MENU_PREFIX=lxqt-".
* Avoid using busy loop to wait for creation of the system tray.
* Avoid waiting for the window manager with a busy loop.
* Rename razor(qt) to lxqt and fix broken build.
* X-RAZOR changed to Razor in desktop files
* Qt version check added. Fix for: https://github.com/Razor-qt/razor-qt/issues/531#issuecomment-18248309
* Theme change autodetection
* Allow commandline arguments for windowmanager setting
* Session: Prevent unresponsiveness during startup
* Fix moc warning
* Add autostart entry API into the library
* Prevent run razor-session without WM.
* Preventing run razor-session without WM.
* Some debug prints removed. Timeout for Systray to load increased to 1 minute. Module crash detection improved.
* Simplify and clean up AutoStartItem
* preliminary manpages primary for razorqt and usefully in venenux
* Translations updated
* first part of fixes based on Coverity Scan (code static analysis)
* Delete bad en_GB translations
* Update translations
* Fix dbus race condition during startup
* Minor fixes
* Translations updated
* Removed line num from TS files.
* Do not display blank entries if xfce creates invalid files
* Emit a signal when a module is started/stopped
* Translations
* Deleted old translation methods.
* Translations for librazorqt
* Don't log out if the WM quits
* Fix for when no item is selected
* Rudimentary implementation of start/stop ui
* Start and stop modules over dbus
* Return module configuration to basic settings page
* Split autostart config logic out of the model
* Fixed Issue #395
* razor-session and razor-config-session now have a separate CMakeLists files.
* Updated .ts.src files
* Translation for razor-config-sesion
* Translation for razor-sesion 2
* Translation for razor-sesion
* Updated ts.src files
* Removed dead code from the razormodman (HAL)
* Starting the razor-confupdate from the razor-session.
* Small fixes (typo and a wrong parameter)
* Handle cases where browser/terminal are unset
* add module names to includes and tidy up the coding style
* Ts.src files updated.
* Language name zh_CN.GB2312 braked cmake process.
* Translations updated
* Add a "wait for system tray" checkbox
* Split sessionconfigwindow and remove old module config
* Use XDG autostart for modules
* Improved autostart dialog
* Don't quit session after a crash limit is reached
* Razor-session doesn't do variable expansion, and prepends it literally Closes #280
* add qupzilla to the browser list
* Adding auto start option of global shortcut daemon
* issue #260 - notification: implementation of session module config
* reworked config stuff. No more special config registering. All 'Settings' desktop files are displayed in razor-config (grouped)
* Make bundling xdg-utils optional
* Revert "Make bundling xdg-tools optional"
* Make bundling xdg-tools optional
* Add some missing headers
* Move autostart directory code to XdgDirs
* fix for infinite loop when there is no systray implementation loaded
* Improvement in the WmSelectDialog
* Transifex desktop: sr_BA.ts should be a local
* Transifex desktop: local translations
* Transifex desktop: cmake files
* Transifex desktop: Translations pulled
* Transifex desktop: Reomove translations from desktop.in
* Transifex desktop: desktop->desktop.in
* Update Tradidtional Chinese Translations
* fixed #218 Use <razor-dir>/session.log instead of ~/.razor-session.log
* RazorApplication class implemented; all modules ported to this class
* Translations update
* Added support for the online translation service. www.transifex.net
* Wait until system tray becomes available
* Update razorqt-session/translations/razor-session_it_IT.ts
* Serbian translation files
* Serbian translations (2 variants)
* Greek translation by iosifidis
* Added danish translations
* Make xdg scripts use bash
* X-RAZOR -> Razor for autostart
* Russian translation
* RAZOR -> X-RAZOR
* Razor-session: Wait until the WM loads
* Razor-session: Wait until the WM loads
* fix #169: italian translation
* add razor-policykit-agent into config
* prevent the forever autorestart of still-crashing-app in the session. The count of crashes is limited now.
* Relicense
* XdgAutoStart rewriten (lgpl2+)
* Fix gmail.ru -> gmail.com
* menus are adopted to the new backends; old code removed; check for running razor-session to allow/disallow "logout" item
* Sawfish DE
* Czech translations (cs_CZ) Desktop files
* Replace old autostart
* Make XDG autostart fully editable
* Update german [de] translation
* Add settings page to view and toggle XDG autostart entries
* fixed #138: system settings icons
* SVK translation finalized
* Replaces return"" by return QString()
* License audit
* License audit
* Add Chinese(simplified) translation files.
* HU translation by Kristóf Kiszel
* Initial spanish translation
* Add detection of Xfwm4
* Add Slovak (sk) translation
* Adds newline to the end of .desktop files
* Fixes typo
* Czech translations (cs_CZ)
* huge refactoring of the libraries build organization
* show icons in the config tools
* Razor-session: Added startrazor script (cmake & deb)
* Razor-session: Added startrazor script
* GPL->LGPL where I'm the author
* config: remove toolbars
* Plugins translations
* Russian translation for razorqt-session
* Translation for session
* window manager detection is shared in session and its config tool
* Razor-session: Improved WM handling. * If WM already running we not start new one. * If is a first start we show WM select dialog.
* session: new argument -w windowmanager
* Polish translation part X
* Garbage in the code.
* Fix: Desktop Menu Specification category must be X-RAZOR.
* Russian translations
* better implementation of razor- menu discovering regarding the XDG standards
* removed unneeded parts after new config gui
* Added razor-application.menu
* New design of the razor-config-session
* fixed desktop files
* fix donfig desktp files install for rpm
* issue #37 - settings restore works
* homepage updated + auto replacement script
* show only in RAZOR; close/undo changes actions
* issue #37 config list widgets: no dnd, no editation
* config tools are registered in config center; desktop file for CC
* "pause" session for a while until all razor modules are set up and running
* Fixed incorrect incude <razorqt/xdgicon.h>
* session config: missing actions
* initial version of "session config". In progress.
* XDG-files are splitted into qtxdg library.
* implementation of issue #19: environment variables for razor-session
* The project uses RazorTheme. All except the desktop, switched to RazorSettings.
* initial support for screensaver/screen locking
* Fixed multithreaded building. Thanks Gustavo.
* fix for install 64bit
* install custom xdg-tools into lib directory (LSB requires it)
* set default razor icon for all apps
* our own (temporary) xdg scripts to handle mime/files directly
* copyrights
* removed obsolete/generated files
* XDG autostart for session; session cleanups
* fixed logout calls; ask for confirmation on power management calls
* Allow to call logout over DBus; removed unneeded file
* typo fixes
* allow more sessions for KDM/GDM. razor-session gets optional argument -c for session config file specification
* better logging for session logout
* session: logout from panel works now; splashscreen removed; internals rearranged to be smaller
* logout from openbox works now. Need review
* session simplified; session autostart user apps; qprocesses termination instead of bruteforce killing
* session's splash dialog is back...
* fixed processes restarting in session
* forgotten paths
* configuration reworked (may require to drop ~/.razor); plugins code split; new plugin: spacer
*
* debug outputs to help finding the session xorg resource consuming issue
* src formatted with astyle -A1
* settings refactored a bit: SHARE_DIR dependen on th CMAKE_INSTALL_PREFIX is defined for the compilation phase (it allows to have more razors installed eg. for development); SHARE_DIR is searched in the startup too; optimized cfg file access (1x vs. 4x as before for every file); redundant conversions merged into Razorsettings; usage of QSettings to read the settings (it does the error handling for us).
* fixed cmake stuff (debug,lib location,do not install .svn,make uninstall,etc.); fixes for qss skinning
*
*
*
*

@ -1,78 +0,0 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(lxqt-session)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(GNUInstallDirs)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" OFF)
option(WITH_LIBUDEV "Build with libudev support" ON)
find_package(X11 REQUIRED)
find_package(Qt5DBus REQUIRED)
find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5X11Extras REQUIRED)
message(STATUS "Building with Qt${Qt5Core_VERSION}")
find_package(KF5WindowSystem REQUIRED)
find_package(lxqt REQUIRED)
# Please don't move, must be after lxqt
find_package(XdgUserDirs REQUIRED)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
# Patch Version
set(LXQT_SESSION_PATCH_VERSION 0)
set(LXQT_SESSION_VERSION ${LXQT_MAJOR_VERSION}.${LXQT_MINOR_VERSION}.${LXQT_SESSION_PATCH_VERSION})
add_definitions("-DLXQT_SESSION_VERSION=\"${LXQT_SESSION_VERSION}\"")
include(LXQtCompilerSettings NO_POLICY_SCOPE)
# Translations **********************************
include(LXQtTranslate)
add_subdirectory(lxqt-session)
add_subdirectory(lxqt-config-session)
add_subdirectory(lxqt-leave)
# merged from lxqt-common
include(LXQtConfigVars)
# startlxqt script
set(PREDEF_XDG_DATA_DIRS "$XDG_DATA_HOME")
if(NOT("${LXQT_DATA_DIR}" MATCHES "^/usr(/local)?/share$"))
set(PREDEF_XDG_DATA_DIRS "${PREDEF_XDG_DATA_DIRS}:${LXQT_DATA_DIR}")
endif()
set(PREDEF_XDG_DATA_DIRS "${PREDEF_XDG_DATA_DIRS}:/usr/local/share:/usr/share")
configure_file(startlxqt.in startlxqt @ONLY)
install(PROGRAMS
"${CMAKE_CURRENT_BINARY_DIR}/startlxqt"
DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
startlxqt.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT Runtime
)
# default config files
add_subdirectory(config)
add_subdirectory(autostart)
# xsession *.desktop file for display managers
add_subdirectory(xsession)

@ -1,27 +0,0 @@
include(LXQtTranslateDesktop)
include(LXQtConfigVars)
# startlxqt script
set(PREDEF_XDG_DATA_DIRS "$XDG_DATA_HOME")
if(NOT("${LXQT_DATA_DIR}" MATCHES "^/usr(/local)?/share$"))
set(PREDEF_XDG_DATA_DIRS "${PREDEF_XDG_DATA_DIRS}:${LXQT_DATA_DIR}")
endif()
set(PREDEF_XDG_DATA_DIRS "${PREDEF_XDG_DATA_DIRS}:/usr/local/share:/usr/share")
configure_file(startlxqt.in startlxqt @ONLY)
install(PROGRAMS
"${CMAKE_CURRENT_BINARY_DIR}/startlxqt"
DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
startlxqt.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT Runtime
)
# default config files
add_subdirectory(config)
add_subdirectory(autostart)
# xsession *.desktop file for display managers
add_subdirectory(xsession)

@ -1,458 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
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 this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
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
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser 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 Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "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
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY 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
LIBRARY (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 LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS

@ -1,75 +0,0 @@
# lxqt-session
## Overview
### General
Repository lxqt-session is providing tools to handle LXQt sessions.
First of all there's session manager `lxqt-session`. The binary is launched right at the beginning of LXQt sessions and in turn responsible for launching and monitoring all other components constituting the sessions.
GUI "LXQt Session Settings" (binary `lxqt-config-session`) is used to configure various settings affecting the session, e. g. which window manager to use or which applications to start automatically.
Binary `lxqt-leave` deals with interrupting or terminating sessions. It comes with several options expressing the action they trigger, e. g. `--leave`, `--hibernate`, `--shutdown` or `--reboot`.
### LXQt Modules
Term "LXQt Modules" refers to a way to launch binaries at the beginning of LXQt sessions and to make sure these will be available all over the session.
Technically those binaries are basically launched according to the XDG [Autostart Specification](https://www.freedesktop.org/wiki/Specifications/autostart-spec/). But unlike binaries handled according to this specification only LXQt Modules are monitored all over the session and automatically relaunched should they exit unexpectedly.
## Installation
### Compiling source code
Runtime dependencies are xdg-user-dirs and [liblxqt](https://github.com/lxde/liblxqt).
Additional build dependencies are CMake and optionally Git to pull latest VCS checkouts. The localization files were outsourced to repository [lxqt-l10n](https://github.com/lxde/lxqt-l10n) so the corresponding dependencies are needed, too. Please refer to this repository's `README.md` for further information.
Code configuration is handled by CMake. CMake variable `CMAKE_INSTALL_PREFIX` has to be set to `/usr` on most operating systems.
To build run `make`, to install `make install` which accepts variable `DESTDIR` as usual.
### Binary packages
Official binary packages are provided by all major Linux distributions like Arch Linux, Debian (as of Debian stretch), Fedora and openSUSE. Just use your package manager to search for string `lxqt-session`.
## Configuration, Usage
### LXQt Modules
Basically these are launched by desktop entry files according to the [Autostart Specification](https://www.freedesktop.org/wiki/Specifications/autostart-spec/). An additional key `X-LXQt-Module=true` makes binary `lxqt-session` recognize the binary in question as an LXQt Module and treat as such.
Corresponding configuration can be handled by "LXQt Session Settings", see below.
### LXQt Session Settings
A GUI to tweak all kinds of settings affecting the session as a whole.
![lxqt-config-session](lxqt-config-session.png)
It can be launched from panel's main menu - Preferences - LXQt settings - Session Settings and is provided by "Configuration Center" (binary `lxqt-config`) of [lxqt-config](https://github.com/lxde/lxqt-config) as well.
Notes on some settings:
#### Basic Settings
Window Manager, LXQt Modules and some settings upon leaving the session. See screenshot. As for the LXQt Modules the checkbox at the left refers to launching the module at sessions' beginning, stopping and launching within running sessions works as well.
#### Default Applications
Defines a default terminal emulator and web browser by setting environment variables `TERM` and `BROWSER`.
The usage of `TERM` is faulty in this context, see [lxqt #433](https://github.com/lxde/lxqt/issues/433). Usage of `BROWSER` is correct but not recognized by too many applications any longer.
All in all the configuration of default applications will probably be handled by a different approach one day like improving GUI "File Associations" of [lxqt-config](https://github.com/lxde/lxqt-config) so setting environment variables `TERM` and `BROWSER` with `lxqt-config-session` has actually to be discouraged.
#### User Directories
This refers to defining directories in terms of the [xdg-user-dirs](https://www.freedesktop.org/wiki/Software/xdg-user-dirs/) concept. This is a specification to define a number of directories used for certain kinds of content like documents, audio or video files and to create those directories in each user's home directory in case they do not preexist.
This dialogue allows for setting custom directory names differing from those defined by the specification.
#### Autostart
Applications to launch according to the [Autostart Specification](https://www.freedesktop.org/wiki/Specifications/autostart-spec/).
Term "LXQt Autostart" refers to applications launched in LXQt sessions only, "Global Autostart" to those launched in all kinds of session. The distinction is relying on keys `OnlyShowIn` and `NotShowIn` of the desktop entry files in use.
The underlying desktop entry files can be edited manually, buttons `Add`, `Edit` and `Delete` at the right of pane "Autostart" can serve as some rudimentary editor, too.
#### Environment (Advanced)
Allows for setting arbitrary environment variables which will be available for all software running within LXQt sessions (so not only the components of LXQt itself).
### lxqt-leave
Desktop entry files providing the various invocations of the binary as depicted above are summed up in sub-menu "Leave" of the panel's main menu.
Item "Leave" opens a dialogue window to select from all actions which are available, all other topics trigger the action stated by their title.

@ -1,17 +0,0 @@
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
file(GLOB DESKTOP_FILES_IN *.desktop.in)
# Translations **********************************
lxqt_translate_desktop(DESKTOP_FILES
SOURCES
${DESKTOP_FILES_IN}
)
add_custom_target(lxqt_sesstion_autostart_desktop_files ALL DEPENDS ${DESKTOP_FILES})
#************************************************
install(FILES
${DESKTOP_FILES}
DESTINATION "${LXQT_ETC_XDG_DIR}/autostart"
COMPONENT Runtime
)

@ -1,9 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=XScreenSaver
TryExec=xscreensaver
Exec=xscreensaver -no-splash
OnlyShowIn=LXQt;
#TRANSLATIONS_DIR=translations

@ -1,2 +0,0 @@
# Translations
Name[ar]=حافظ الشَّاشة

@ -1,2 +0,0 @@
# Translations
Name[cs]=Šetřič obrazovky

@ -1,2 +0,0 @@
# Translations
Name[cs_CZ]=Šetřič obrazovky

@ -1,2 +0,0 @@
# Translations
Name[da]=Pauseskærm

@ -1,2 +0,0 @@
# Translations
Name[de]=Bildschirmschoner

@ -1,2 +0,0 @@
# Translations
Name[el]=ΠροφύλαξηOθόνηςΧ

@ -1,2 +0,0 @@
# Translations
Name[eo]=XEkranKurteno

@ -1,2 +0,0 @@
# Translations
Name[es]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[es_VE]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[eu]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[fi]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[fr_FR]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[id_ID]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[it_IT]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[ja]=Xスクリーンセーバ

@ -1,2 +0,0 @@
# Translations
Name[lt]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[nl]=X-schermbeveiliging

@ -1,2 +0,0 @@
# Translations
Name[pl_PL]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[pt]=Proteção de ecrã

@ -1,2 +0,0 @@
# Translations
Name[pt_BR]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[ro_RO]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[ru]=XэкранCпаситель

@ -1,2 +0,0 @@
# Translations
Name[ru_RU]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[sl]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[sr]=Икс-ЧуварЕкрана

@ -1 +0,0 @@
Name[sr@ijekavian]=Икс-ЧуварЕкрана

@ -1,2 +0,0 @@
# Translations
Name[sr@latin]=Iks-ČuvarEkrana

@ -1,2 +0,0 @@
# Translations
Name[th_TH]=โปรแกรมรักษาหน้าจอของX

@ -1,2 +0,0 @@
# Translations
Name[tr]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[uk]=XScreenSaver

@ -1,2 +0,0 @@
# Translations
Name[zh_TW]=螢幕保護程式

@ -1,12 +0,0 @@
# install default config files to /etc/xdg
install(FILES
lxqt.conf
session.conf
windowmanagers.conf
DESTINATION "${LXQT_ETC_XDG_DIR}/lxqt"
COMPONENT Runtime
)
install(DIRECTORY openbox
DESTINATION "${LXQT_ETC_XDG_DIR}"
COMPONENT Runtime
)

@ -1,11 +0,0 @@
[General]
theme=frost
icon_theme=oxygen
single_click_activate=false
tool_button_style=ToolButtonTextBesideIcon
[Qt]
font="Sans,11,-1,5,50,0,0,0,0,0"
doubleClickInterval=400
style=Fusion
wheelScrollLines=3

@ -1,744 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/lxqt-rc.xml instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc"
xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>no</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Primary</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
the active window is, 'Primary' - only on the primary monitor -->
<primaryMonitor>1</primaryMonitor>
<!-- The monitor where Openbox should place popup dialogs such as the
focus cycling popup, or the desktop switch popup. It can be an index
from 1, specifying a particular monitor. Or it can be one of the
following: 'Mouse' - where the mouse is, or
'Active' - where the active window is -->
</placement>
<theme>
<name>Onyx</name>
<titleLayout>NLIMC</titleLayout>
<!--
available characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>sans</name>
<size>10</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>sans</name>
<size>10</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="ActiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>2</number>
<firstdesk>1</firstdesk>
<names>
<!-- set names up here if you want to, like this:
<name>desktop 1</name>
<name>desktop 2</name>
-->
</names>
<popupTime>875</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center', 'Top', or 'Fixed' -->
<popupFixedPosition>
<!-- these are used if popupPosition is set to 'Fixed' -->
<x>10</x>
<!-- positive number for distance from left edge, negative number for
distance from right edge, or 'Center' -->
<y>10</y>
<!-- positive number for distance from top edge, negative number for
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>0</top>
<bottom>0</bottom>
<left>0</left>
<right>0</right>
</margins>
<dock>
<position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="C-A-Left">
<action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
</keybind>
<keybind key="C-A-Right">
<action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
</keybind>
<keybind key="C-A-Up">
<action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
</keybind>
<keybind key="C-A-Down">
<action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
</keybind>
<keybind key="W-F1">
<action name="GoToDesktop"><to>1</to></action>
</keybind>
<keybind key="W-F2">
<action name="GoToDesktop"><to>2</to></action>
</keybind>
<keybind key="W-F3">
<action name="GoToDesktop"><to>3</to></action>
</keybind>
<keybind key="W-F4">
<action name="GoToDesktop"><to>4</to></action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu"><menu>client-menu</menu></action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels><desktop>yes</desktop>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<!-- Keybindings for window switching with the arrow keys -->
<keybind key="W-S-Right">
<action name="DirectionalCycleWindows">
<direction>right</direction>
</action>
</keybind>
<keybind key="W-S-Left">
<action name="DirectionalCycleWindows">
<direction>left</direction>
</action>
</keybind>
<keybind key="W-S-Up">
<action name="DirectionalCycleWindows">
<direction>up</direction>
</action>
</keybind>
<keybind key="W-S-Down">
<action name="DirectionalCycleWindows">
<direction>down</direction>
</action>
</keybind>
<!-- Keybindings for running applications.
Commented out as application shortcuts should be handled by lxqt-globalkeys in LXQt sessions.
<keybind key="W-q">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Qupzilla</name>
</startupnotify>
<command>qupzilla</command>
</action>
</keybind> -->
</keyboard>
<mouse>
<dragThreshold>1</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>500</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<!-- Set this to TRUE to move the mouse pointer across the desktop when
switching due to hitting the edge of the screen -->
<context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="A-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-S-Down" action="Click">
<action name="SendToDesktop"><to>next</to></action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="if">
<shaded>no</shaded>
<then>
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</then>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="if">
<shaded>yes</shaded>
<then>
<action name="Unshade"/>
<action name="Raise"/>
</then>
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>top</edge></action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>left</edge></action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>right</edge></action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>bottom</edge></action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
</context>
<context name="TRCorner BRCorner TLCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Middle" action="Click">
<action name="ToggleMaximize"><direction>vertical</direction></action>
</mousebind>
<mousebind button="Right" action="Click">
<action name="ToggleMaximize"><direction>horizontal</direction></action>
</mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind button="Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Middle" action="Press">
<action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="ShowMenu"><menu>root-menu</menu></action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind button="Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<!-- if a press-release lasts longer than this setting (in milliseconds), the
menu is hidden again -->
<middle>no</middle>
<!-- center submenus vertically about the parent entry -->
<submenuShowDelay>100</submenuShowDelay>
<!-- time to delay before showing a submenu after hovering over the parent
entry.
if this is a negative value, then the delay is infinite and the
submenu will not be shown until it is clicked on -->
<submenuHideDelay>400</submenuHideDelay>
<!-- time to delay before hiding a submenu when selecting another
entry in parent menu
if this is a negative value, then the delay is infinite and the
submenu will not be hidden until a different submenu is opened -->
<showIcons>yes</showIcons>
<!-- controls if icons appear in the client-list-(combined-)menu -->
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
# you may use one or more of the name/class/role/title/type rules to specify
# windows to match
<application name="the window's _OB_APP_NAME property (see obxprop)"
class="the window's _OB_APP_CLASS property (see obxprop)"
groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
role="the window's _OB_APP_ROLE property (see obxprop)"
title="the window's _OB_APP_TITLE property (see obxprop)"
type="the window's _OB_APP_TYPE property (see obxprob)..
(if unspecified, then it is 'dialog' for child windows)">
# you may set only one of name/class/role/title/type, or you may use more
# than one together to restrict your matches.
# the name, class, role, and title use simple wildcard matching such as those
# used by a shell. you can use * to match any characters and ? to match
# any single character.
# the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
# or desktop
# when multiple rules match a window, they will all be applied, in the
# order that they appear in this list
# each rule element can be left out or set to 'default' to specify to not
# change that attribute of the window
<decor>yes</decor>
# enable or disable window decorations
<shade>no</shade>
# make the window shaded when it appears, or not
<position force="no">
# the position is only used if both an x and y coordinate are provided
# (and not set to 'default')
# when force is "yes", then the window will be placed here even if it
# says you want it placed elsewhere. this is to override buggy
# applications who refuse to behave
<x>center</x>
# a number like 50, or 'center' to center on screen. use a negative number
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from
# the right edge (or bottom). use 'default' to specify using value
# provided by the application, or chosen by openbox, instead.
<y>200</y>
<monitor>1</monitor>
# specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
</position>
<size>
# the size to make the window.
<width>20</width>
# a number like 20, or 'default' to use the size given by the application.
# you can use fractions such as 1/2 or percentages such as 75% in which
# case the value is relative to the size of the monitor that the window
# appears on.
<height>30%</height>
</size>
<focus>yes</focus>
# if the window should try be given focus when it appears. if this is set
# to yes it doesn't guarantee the window will be given focus. some
# restrictions may apply, but Openbox will try to
<desktop>1</desktop>
# 1 is the first desktop, 'all' for all desktops
<layer>normal</layer>
# 'above', 'normal', or 'below'
<iconic>no</iconic>
# make the window iconified when it appears, or not
<skip_pager>no</skip_pager>
# asks to not be shown in pagers
<skip_taskbar>no</skip_taskbar>
# asks to not be shown in taskbars. window cycling actions will also
# skip past such windows
<fullscreen>yes</fullscreen>
# make the window in fullscreen mode when it appears
<maximized>true</maximized>
# 'Horizontal', 'Vertical' or boolean (yes/no)
</application>
# end of the example
-->
</applications>
</openbox_config>

@ -1,24 +0,0 @@
[General]
window_manager=openbox
leave_confirmation=true
[Environment]
GTK_CSD=0
GTK_OVERLAY_SCROLLING=0
[Mouse]
cursor_size=18
cursor_theme=whiteglass
acc_factor=20
acc_threshold=10
left_handed=false
[Keyboard]
delay=500
interval=30
beep=false
[Font]
antialias=true
hinting=true
dpi=96

@ -1,26 +0,0 @@
[KnownManagers]
openbox/Name=Openbox
openbox/Comment=Light-weight window manager
kwin/Name=KWin
kwin/Comment=Window manager of the KDE Software Compilation
kwin_x11/Name=KWin
kwin_x11/Comment=Window manager of the KDE Software Compilation
metacity/Name=Metacity
metacity/Comment=Window manager of the GNOME desktop environment
windowmaker/Name=Windowmaker
windowmaker/Comment=A classical lightweight window manager
e16/Name=Enlightenement 16
fvwm2/Name=Fvwm2
fvwm2/Comment=A classical lightweight window manager
xfwm4/Name=Xfwm4
xfwm4/Comment=A window manager for the Xfce desktop environment
sawfish/Name=Sawfish
sawfish/Comment="A lightweight, flexible window manager"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

@ -1,97 +0,0 @@
project(lxqt-config-session)
set(lxqt-sessioncfg_HDRS
sessionconfigwindow.h
basicsettings.h
modulemodel.h
autostartpage.h
autostartmodel.h
autostartitem.h
autostartedit.h
autostartutils.h
defaultappspage.h
environmentpage.h
userlocationspage.h
)
set(lxqt-sessioncfg_SRCS
main.cpp
sessionconfigwindow.cpp
basicsettings.cpp
modulemodel.cpp
autostartpage.cpp
autostartmodel.cpp
autostartitem.cpp
autostartedit.cpp
autostartutils.cpp
defaultappspage.cpp
environmentpage.cpp
userlocationspage.cpp
../lxqt-session/src/windowmanager.cpp
)
set(lxqt-sessioncfg_UI_FILES
basicsettings.ui
autostartpage.ui
autostartedit.ui
defaultappspage.ui
environmentpage.ui
)
# Translations
lxqt_translate_ts(lxqt-sessioncfg_QM_FILES
UPDATE_TRANSLATIONS
${UPDATE_TRANSLATIONS}
SOURCES
${lxqt-sessioncfg_HDRS}
${lxqt-sessioncfg_SRCS}
${lxqt-sessioncfg_UI_FILES}
INSTALL_DIR
"${LXQT_TRANSLATIONS_DIR}/${PROJECT_NAME}"
PULL_TRANSLATIONS
${PULL_TRANSLATIONS}
CLEAN_TRANSLATIONS
${CLEAN_TRANSLATIONS}
TRANSLATIONS_REPO
${TRANSLATIONS_REPO}
TRANSLATIONS_REFSPEC
${TRANSLATIONS_REFSPEC}
REPO_SUBDIR
"lxqt-session/${PROJECT_NAME}"
)
lxqt_app_translation_loader(lxqt-sessioncfg_QM_LOADER ${PROJECT_NAME})
lxqt_translate_desktop(lxqt-sessioncfg_DESKTOP_FILES SOURCES lxqt-config-session.desktop.in)
add_executable(lxqt-config-session
${lxqt-sessioncfg_SRCS}
${lxqt-sessioncfg_DESKTOP_FILES}
${lxqt-sessioncfg_QM_FILES}
${lxqt-sessioncfg_QM_LOADER})
target_link_libraries(lxqt-config-session
KF5::WindowSystem
Qt5::Widgets
Qt5::DBus
Qt5::X11Extras
lxqt
)
INSTALL(TARGETS
lxqt-config-session
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
install(FILES
${lxqt-sessioncfg_DESKTOP_FILES}
DESTINATION
"${CMAKE_INSTALL_DATAROOTDIR}/applications"
COMPONENT Runtime
)
install(FILES
man/lxqt-config-session.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT Runtime
)

@ -1,67 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2011 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <QFileDialog>
#include "autostartedit.h"
#include "ui_autostartedit.h"
AutoStartEdit::AutoStartEdit(QString name, QString command, bool needTray, QWidget *parent) :
QDialog(parent),
ui(new Ui::AutoStartEdit)
{
ui->setupUi(this);
ui->nameEdit->setFocus();
ui->nameEdit->setText(name);
ui->commandEdit->setText(command);
ui->trayCheckBox->setChecked(needTray);
connect(ui->browseButton, SIGNAL(clicked()), SLOT(browse()));
}
QString AutoStartEdit::name()
{
return ui->nameEdit->text();
}
QString AutoStartEdit::command()
{
return ui->commandEdit->text();
}
bool AutoStartEdit::needTray()
{
return ui->trayCheckBox->isChecked();
}
void AutoStartEdit::browse()
{
QString filePath = QFileDialog::getOpenFileName(this, tr("Select Application"), "/usr/bin/");
if (!filePath.isEmpty())
ui->commandEdit->setText(filePath);
}
AutoStartEdit::~AutoStartEdit()
{
delete ui;
}

@ -1,52 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2011 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef AUTOSTARTEDIT_H
#define AUTOSTARTEDIT_H
#include <QDialog>
namespace Ui {
class AutoStartEdit;
}
class AutoStartEdit : public QDialog
{
Q_OBJECT
public:
explicit AutoStartEdit(QString name, QString command, bool needTray, QWidget* parent = 0);
~AutoStartEdit();
QString name();
QString command();
bool needTray();
private slots:
void browse();
private:
Ui::AutoStartEdit *ui;
};
#endif // AUTOSTARTEDIT_H

@ -1,105 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AutoStartEdit</class>
<widget class="QDialog" name="AutoStartEdit">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>296</width>
<height>118</height>
</rect>
</property>
<property name="windowTitle">
<string>Edit</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Name:</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="browseButton">
<property name="text">
<string>Search...</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="nameEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Command:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="commandEdit"/>
</item>
<item row="2" column="1" colspan="2">
<widget class="QCheckBox" name="trayCheckBox">
<property name="text">
<string>Wait for system tray</string>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>nameEdit</tabstop>
<tabstop>commandEdit</tabstop>
<tabstop>trayCheckBox</tabstop>
<tabstop>buttonBox</tabstop>
<tabstop>browseButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>AutoStartEdit</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>254</x>
<y>96</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>102</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>AutoStartEdit</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>322</x>
<y>96</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>102</y>
</hint>
</hints>
</connection>
</connections>
</ui>

@ -1,75 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include "autostartitem.h"
#include <XdgAutoStart>
#include <XdgDirs>
#include <QFileInfo>
AutostartItem::AutostartItem() :
LXQt::AutostartEntry()
{
}
AutostartItem::AutostartItem(const XdgDesktopFile& systemFile) :
LXQt::AutostartEntry()
{
mSystemFile = systemFile;
mSystem = true;
}
void AutostartItem::setLocalFromFile(const XdgDesktopFile& file)
{
mLocalFile = file;
mLocalState = StateExists;
}
QMap<QString,AutostartItem> AutostartItem::createItemMap()
{
QMap<QString,AutostartItem> items;
XdgDesktopFileList systemList = XdgAutoStart::desktopFileList(XdgDirs::autostartDirs(), false);
foreach (const XdgDesktopFile& file, systemList)
{
QString name = QFileInfo(file.fileName()).fileName();
items.insert(name, AutostartItem(file));
}
XdgDesktopFileList localList = XdgAutoStart::desktopFileList(QStringList(XdgDirs::autostartHome()), false);
foreach (const XdgDesktopFile& file, localList)
{
QString name = QFileInfo(file.fileName()).fileName();
if (items.contains(name))
{
items[name].setLocalFromFile(file);
}
else
{
AutostartItem item;
item.setLocalFromFile(file);
items.insert(name, item);
}
}
return items;
}

@ -1,77 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef AUTOSTARTITEM_H
#define AUTOSTARTITEM_H
#include <LXQt/AutostartEntry>
/*! \brief The AutostartItem class provides an interface for staging configuration of individual
autostart items. All changes are made in memory until commit() is called.
- "system" file refers to a read-only file in /etc/xdg/autostart (or a directory in $XDG_CONFIG_DIRS)
- "local" file refers to the file in user's ~/.config/autostart (or in $XDG_CONFIG_HOME/autostart)
When a "local" file has the same name as the "system" file, the local one overrides it. This class
tries to ensure that the "local" file is deleted if it's the same as the "system" file.
*/
class AutostartItem : public LXQt::AutostartEntry
{
public:
//! \brief Default constructor
AutostartItem();
/*! Creates an autostart item with a "system" file
* \param systemFile
*/
AutostartItem(const XdgDesktopFile& systemFile);
//! Returns the "system" file
const XdgDesktopFile& systemfile() const { return mSystemFile; }
/*! Sets the local version that exists on disk
* \param file the desktop file, must already exist in user's autostart directory
*/
void setLocalFromFile(const XdgDesktopFile &file);
/*! Removes the "local" version of the file
* \return true if there is no "system" version left (i.e. the item was entirely deleted)
*/
bool removeLocal() { return LXQt::AutostartEntry::removeLocal(); }
//! Returns true if both the "local" and "system" versions exist
bool overrides() const { return mSystem && isLocal(); }
//! Returns true if the local version exists
bool isLocal() const { return LXQt::AutostartEntry::isLocal(); }
//! Returns true if the local file does not exist on disk
bool isTransient() const { return mLocalState == StateTransient; }
//! Creates a mapping of file name (a unique ID) to AutostartItem for the running system
static QMap<QString, AutostartItem> createItemMap();
};
#endif // AUTOSTARTITEM_H

@ -1,300 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - The Lightweight Desktop Environment
* http://lxqt.org
*
* Copyright (C) 2011 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <QFileInfo>
#include <XdgDirs>
#include <XdgIcon>
#include "autostartmodel.h"
#include "autostartutils.h"
AutoStartItemModel::AutoStartItemModel(QObject* parent) :
QAbstractItemModel(parent),
mItemMap(AutostartItem::createItemMap()),
mGlobalIndex(QAbstractItemModel::createIndex(0, 0)),
mLXQtIndex(QAbstractItemModel::createIndex(1, 0))
{
QMap<QString,AutostartItem>::iterator iter;
for (iter = mItemMap.begin(); iter != mItemMap.end(); ++iter)
{
if (!AutostartUtils::isLXQtModule(iter.value().file()))
{
if (showOnlyInLXQt(iter.value().file()))
mLXQtItems.append(iter.key());
else
mGlobalItems.append(iter.key());
}
}
}
AutoStartItemModel::~AutoStartItemModel()
{
}
/*
* All actual file operations are perfomed here when the window is closed.
*/
bool AutoStartItemModel::writeChanges()
{
foreach (AutostartItem item, mItemMap.values())
item.commit();
return true;
}
QMap<QString, AutostartItem> AutoStartItemModel::items()
{
QMap<QString, AutostartItem> allItems;
foreach(const QString &s, mLXQtItems)
allItems[s] = mItemMap.value(s);
foreach(const QString &s, mGlobalItems)
allItems[s] = mItemMap.value(s);
return allItems;
}
/*
* Creates or replaces an autostart entry
*/
bool AutoStartItemModel::setEntry(const QModelIndex& index, XdgDesktopFile entry, bool overwrite)
{
QModelIndex parent;
if (index.parent().isValid())
parent = index.parent();
else if (index.isValid())
parent = index;
else
parent = mGlobalIndex;
QString fileName = QFileInfo(entry.fileName()).fileName();
bool replacing = mItemMap.contains(fileName);
if (!overwrite && replacing)
return false;
if (parent == mLXQtIndex)
entry.setValue("OnlyShowIn", "LXQt;");
mItemMap[fileName].setFile(entry);
if (replacing)
{
emit dataChanged(index, index);
return true;
}
beginInsertRows(parent, 0, 0);
if (parent == mGlobalIndex)
mGlobalItems.append(fileName);
else
mLXQtItems.append(fileName);
endInsertRows();
return true;
}
bool AutoStartItemModel::setData(const QModelIndex& index, const QVariant& value, int role)
{
if (role == Qt::CheckStateRole)
{
QString name;
if (index.parent() == mGlobalIndex)
name = mGlobalItems.value(index.row());
else
name = mLXQtItems.value(index.row());
mItemMap[name].setEnabled(value == Qt::Checked);
emit dataChanged(index, index);
return true;
}
return false;
}
/*
* When user clicks "Delete", removes the local item. If there is a "system" item,
* it replaces it.
*/
bool AutoStartItemModel::removeRow(int row, const QModelIndex& parent)
{
if (!parent.isValid())
return false;
QString item;
if (parent == mGlobalIndex)
item = mGlobalItems[row];
else
item = mLXQtItems[row];
if (!mItemMap[item].removeLocal())
{
QModelIndex index = parent.child(row, 0);
emit dataChanged(index, index);
return false;
}
beginRemoveRows(parent, row, row);
if (parent == mGlobalIndex)
mGlobalItems.removeAt(row);
else
mLXQtItems.removeAt(row);
endRemoveRows();
if (mItemMap.value(item).isEmpty())
mItemMap.remove(item);
return true;
}
QModelIndex AutoStartItemModel::index(int row, int column, const QModelIndex& parent) const
{
if (!parent.isValid())
{
if (row == 0)
return mGlobalIndex;
else if (row == 1)
return mLXQtIndex;
}
else if (parent == mGlobalIndex && row < mGlobalItems.size())
return QAbstractItemModel::createIndex(row, column, (void*)&mGlobalItems[row]);
else if (parent == mLXQtIndex && row < mLXQtItems.size())
return QAbstractItemModel::createIndex(row, column, (void*)&mLXQtItems[row]);
return QModelIndex();
}
QVariant AutoStartItemModel::data(const QModelIndex& index, int role) const
{
if (!index.parent().isValid())
{
if (role == Qt::DisplayRole)
{
if (index.row() == 0)
return QString(tr("Global Autostart"));
else if (index.row() == 1)
return QString(tr("LXQt Autostart"));
}
return QVariant();
}
QString name = indexToName(index);
const AutostartItem& item = mItemMap.value(name);
if (role == Qt::DisplayRole)
{
QString title = item.file().name();
if (title.isEmpty())
return name;
return title;
}
else if (role == Qt::ToolTipRole)
{
QStringList tooltip;
if (!item.isTransient())
tooltip << tr("Location: %1").arg(item.file().fileName());
if (item.overrides())
tooltip << tr("Overrides: %1").arg(item.systemfile().fileName());
return tooltip.join("\n");
}
else if (role == Qt::DecorationRole)
{
if (item.overrides())
return XdgIcon::fromTheme("dialog-warning");
else if (!item.isLocal())
return XdgIcon::fromTheme("computer");
}
else if (role == Qt::CheckStateRole)
{
return item.isEnabled() ? Qt::Checked : Qt::Unchecked;
}
return QVariant();
}
Qt::ItemFlags AutoStartItemModel::flags(const QModelIndex& index) const
{
if (index.parent().isValid())
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable;
if (index.isValid())
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
return 0;
}
/*
* Controls which buttons are enabled/disabled based on the selecton.
*/
AutoStartItemModel::ActiveButtons AutoStartItemModel::activeButtons(const QModelIndex& selection) const
{
if (!selection.isValid() || !selection.parent().isValid())
return AddButton;
else if (!mItemMap.value(indexToName(selection)).isLocal())
return AddButton | EditButton;
else
return AddButton | EditButton | DeleteButton;
}
QModelIndex AutoStartItemModel::parent(const QModelIndex& child) const
{
QString name = indexToName(child);
if (!name.isEmpty())
{
if (showOnlyInLXQt(mItemMap.value(name).file()))
return mLXQtIndex;
return mGlobalIndex;
}
return QModelIndex();
}
int AutoStartItemModel::columnCount(const QModelIndex& parent) const
{
Q_UNUSED(parent);
return 1;
}
int AutoStartItemModel::rowCount(const QModelIndex& parent) const
{
if (!parent.isValid())
return 2;
if (parent == mGlobalIndex)
return mGlobalItems.size();
if (parent == mLXQtIndex)
return mLXQtItems.size();
return 0;
}
bool AutoStartItemModel::showOnlyInLXQt(const XdgDesktopFile& file)
{
return file.value("OnlyShowIn") == "LXQt;";
}
/*
* Maps the index to file name
*/
QString AutoStartItemModel::indexToName(const QModelIndex& index)
{
QString* data = static_cast<QString*>(index.internalPointer());
if (data)
return *data;
return QString();
}
XdgDesktopFile AutoStartItemModel::desktopFile(const QModelIndex& index) const
{
return mItemMap.value(indexToName(index)).file();
}

@ -1,78 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2011 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef AUTOSTARTMODEL_H
#define AUTOSTARTMODEL_H
#include <QAbstractItemModel>
#include <XdgAutoStart>
#include "autostartitem.h"
class AutoStartItemModel : public QAbstractItemModel
{
Q_OBJECT
public:
enum ActiveButton
{
AddButton = 1,
EditButton = 2,
DeleteButton = 4
};
Q_DECLARE_FLAGS(ActiveButtons, ActiveButton)
explicit AutoStartItemModel(QObject* parent = 0);
~AutoStartItemModel();
int columnCount(const QModelIndex& parent = QModelIndex()) const;
int rowCount(const QModelIndex& parent = QModelIndex()) const;
QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
Qt::ItemFlags flags(const QModelIndex& index) const;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
QModelIndex parent(const QModelIndex &child) const;
bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
bool removeRow(int row, const QModelIndex& parent = QModelIndex());
bool setEntry(const QModelIndex& index, XdgDesktopFile entry, bool overwrite=false);
ActiveButtons activeButtons(const QModelIndex& selection) const;
XdgDesktopFile desktopFile(const QModelIndex& index) const;
public slots:
bool writeChanges();
public:
QMap<QString, AutostartItem> items();
private:
QMap<QString, AutostartItem> mItemMap;
QPersistentModelIndex mGlobalIndex;
QPersistentModelIndex mLXQtIndex;
QStringList mGlobalItems;
QStringList mLXQtItems;
static QString indexToName(const QModelIndex& index);
static bool showOnlyInLXQt(const XdgDesktopFile& file);
};
Q_DECLARE_OPERATORS_FOR_FLAGS(AutoStartItemModel::ActiveButtons)
#endif // AUTOSTARTMODEL_H

@ -1,180 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include "autostartpage.h"
#include "ui_autostartpage.h"
#include "autostartedit.h"
#include "autostartutils.h"
#include <QMessageBox>
AutoStartPage::AutoStartPage(QWidget* parent) :
QWidget(parent),
ui(new Ui::AutoStartPage)
{
ui->setupUi(this);
connect(ui->addButton, SIGNAL(clicked()), SLOT(addButton_clicked()));
connect(ui->editButton, SIGNAL(clicked()), SLOT(editButton_clicked()));
connect(ui->deleteButton, SIGNAL(clicked()), SLOT(deleteButton_clicked()));
restoreSettings();
}
AutoStartPage::~AutoStartPage()
{
delete ui;
}
void AutoStartPage::restoreSettings()
{
QAbstractItemModel* oldModel = ui->autoStartView->model();
mXdgAutoStartModel = new AutoStartItemModel(ui->autoStartView);
ui->autoStartView->setModel(mXdgAutoStartModel);
delete oldModel;
ui->autoStartView->setExpanded(mXdgAutoStartModel->index(0, 0), true);
ui->autoStartView->setExpanded(mXdgAutoStartModel->index(1, 0), true);
updateButtons();
connect(mXdgAutoStartModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), SLOT(updateButtons()));
connect(ui->autoStartView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
SLOT(selectionChanged(QModelIndex)));
}
void AutoStartPage::save()
{
bool doRestart = false;
/*
* Get the previous settings
*/
QMap<QString, AutostartItem> previousItems(AutostartItem::createItemMap());
QMutableMapIterator<QString, AutostartItem> i(previousItems);
while (i.hasNext()) {
i.next();
if (AutostartUtils::isLXQtModule(i.value().file()))
i.remove();
}
/*
* Get the settings from the Ui
*/
QMap<QString, AutostartItem> currentItems = mXdgAutoStartModel->items();
QMutableMapIterator<QString, AutostartItem> j(currentItems);
while (j.hasNext()) {
j.next();
if (AutostartUtils::isLXQtModule(j.value().file()))
j.remove();
}
/* Compare the settings */
if (previousItems.count() != currentItems.count())
{
doRestart = true;
}
else
{
QMap<QString, AutostartItem>::const_iterator k = currentItems.constBegin();
while (k != currentItems.constEnd())
{
if (previousItems.contains(k.key()))
{
if (k.value().file() != previousItems.value(k.key()).file())
{
doRestart = true;
break;
}
}
else
{
doRestart = true;
break;
}
++k;
}
}
if (doRestart)
emit needRestart();
mXdgAutoStartModel->writeChanges();
}
void AutoStartPage::addButton_clicked()
{
AutoStartEdit edit(QString(), QString(), false);
bool success = false;
while (!success && edit.exec() == QDialog::Accepted)
{
QModelIndex index = ui->autoStartView->selectionModel()->currentIndex();
XdgDesktopFile file(XdgDesktopFile::ApplicationType, edit.name(), edit.command());
if (edit.needTray())
file.setValue("X-LXQt-Need-Tray", true);
if (mXdgAutoStartModel->setEntry(index, file))
success = true;
else
QMessageBox::critical(this, tr("Error"), tr("File '%1' already exists!").arg(file.fileName()));
}
}
void AutoStartPage::editButton_clicked()
{
QModelIndex index = ui->autoStartView->selectionModel()->currentIndex();
XdgDesktopFile file = mXdgAutoStartModel->desktopFile(index);
AutoStartEdit edit(file.name(), file.value("Exec").toString(), file.contains("X-LXQt-Need-Tray"));
if (edit.exec() == QDialog::Accepted)
{
file.setLocalizedValue("Name", edit.name());
file.setValue("Exec", edit.command());
if (edit.needTray())
file.setValue("X-LXQt-Need-Tray", true);
else
file.removeEntry("X-LXQt-Need-Tray");
mXdgAutoStartModel->setEntry(index, file, true);
}
}
void AutoStartPage::deleteButton_clicked()
{
QModelIndex index = ui->autoStartView->selectionModel()->currentIndex();
mXdgAutoStartModel->removeRow(index.row(), index.parent());
}
void AutoStartPage::selectionChanged(QModelIndex curr)
{
AutoStartItemModel::ActiveButtons active = mXdgAutoStartModel->activeButtons(curr);
ui->addButton->setEnabled(active & AutoStartItemModel::AddButton);
ui->editButton->setEnabled(active & AutoStartItemModel::EditButton);
ui->deleteButton->setEnabled(active & AutoStartItemModel::DeleteButton);
}
void AutoStartPage::updateButtons()
{
selectionChanged(ui->autoStartView->selectionModel()->currentIndex());
}

@ -1,63 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef AUTOSTARTPAGE_H
#define AUTOSTARTPAGE_H
#include <QModelIndex>
#include <QWidget>
#include "autostartmodel.h"
namespace Ui {
class AutoStartPage;
}
class AutoStartPage : public QWidget
{
Q_OBJECT
public:
explicit AutoStartPage(QWidget* parent = 0);
~AutoStartPage();
signals:
void needRestart();
public slots:
void save();
void restoreSettings();
private:
AutoStartItemModel* mXdgAutoStartModel;
Ui::AutoStartPage* ui;
private slots:
void addButton_clicked();
void editButton_clicked();
void deleteButton_clicked();
void selectionChanged(QModelIndex curr);
void updateButtons();
};
#endif // AUTOSTARTPAGE_H

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AutoStartPage</class>
<widget class="QWidget" name="AutoStartPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>320</width>
<height>240</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="4" column="1">
<widget class="QPushButton" name="deleteButton">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="addButton">
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="editButton">
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Application Autostart</string>
</property>
</widget>
</item>
<item row="5" column="1">
<spacer name="verticalSpacer_1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" rowspan="5">
<widget class="QTreeView" name="autoStartView">
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -1,33 +0,0 @@
/* This file is part of the LXQt project. <http://lxqt.org>
* Copyright (C) 2015 Luís Pereira <luis.artur.pereira@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "autostartutils.h"
#include <XdgDesktopFile>
#include <QString>
bool AutostartUtils::showOnlyInLXQt(const XdgDesktopFile &file)
{
return file.value(QLatin1String("OnlyShowIn")) == QLatin1String("LXQt;");
}
bool AutostartUtils::isLXQtModule(const XdgDesktopFile& file)
{
return file.value(QLatin1String("X-LXQt-Module"), false).toBool();
}

@ -1,31 +0,0 @@
/* This file is part of the LXQt project. <http://lxqt.org>
* Copyright (C) 2015 Luís Pereira <luis.artur.pereira@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AUTOSTARTUTILS_H
#define AUTOSTARTUTILS_H
class XdgDesktopFile;
class AutostartUtils
{
public:
static bool showOnlyInLXQt(const XdgDesktopFile& file);
static bool isLXQtModule(const XdgDesktopFile& file);
};
#endif // AUTOSTARTUTILS_H

@ -1,157 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include "basicsettings.h"
#include "ui_basicsettings.h"
#include "../lxqt-session/src/windowmanager.h"
#include "sessionconfigwindow.h"
#include "autostartutils.h"
static const QLatin1String windowManagerKey("window_manager");
static const QLatin1String leaveConfirmationKey("leave_confirmation");
static const QLatin1String lockBeforePowerActionsKey("lock_screen_before_power_actions");
static const QLatin1String openboxValue("openbox");
BasicSettings::BasicSettings(LXQt::Settings *settings, QWidget *parent) :
QWidget(parent),
m_settings(settings),
m_moduleModel(new ModuleModel()),
ui(new Ui::BasicSettings)
{
ui->setupUi(this);
connect(ui->findWmButton, SIGNAL(clicked()), this, SLOT(findWmButton_clicked()));
connect(ui->startButton, SIGNAL(clicked()), this, SLOT(startButton_clicked()));
connect(ui->stopButton, SIGNAL(clicked()), this, SLOT(stopButton_clicked()));
restoreSettings();
ui->moduleView->setModel(m_moduleModel);
ui->moduleView->header()->setSectionResizeMode(0, QHeaderView::Stretch);
ui->moduleView->header()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
}
BasicSettings::~BasicSettings()
{
delete ui;
}
void BasicSettings::restoreSettings()
{
QStringList knownWMs;
foreach (const WindowManager &wm, getWindowManagerList(true))
{
knownWMs << wm.command;
}
QString wm = m_settings->value(windowManagerKey, openboxValue).toString();
SessionConfigWindow::handleCfgComboBox(ui->wmComboBox, knownWMs, wm);
m_moduleModel->reset();
ui->leaveConfirmationCheckBox->setChecked(m_settings->value(leaveConfirmationKey, false).toBool());
ui->lockBeforePowerActionsCheckBox->setChecked(m_settings->value(lockBeforePowerActionsKey, true).toBool());
}
void BasicSettings::save()
{
/* If the setting actually changed:
* * Save the setting
* * Emit a needsRestart signal
*/
bool doRestart = false;
const QString windowManager = ui->wmComboBox->currentText();
const bool leaveConfirmation = ui->leaveConfirmationCheckBox->isChecked();
const bool lockBeforePowerActions = ui->lockBeforePowerActionsCheckBox->isChecked();
QMap<QString, AutostartItem> previousItems(AutostartItem::createItemMap());
QMutableMapIterator<QString, AutostartItem> i(previousItems);
while (i.hasNext()) {
i.next();
if (!AutostartUtils::isLXQtModule(i.value().file()))
i.remove();
}
if (windowManager != m_settings->value(windowManagerKey, openboxValue).toString())
{
m_settings->setValue(windowManagerKey, windowManager);
doRestart = true;
}
if (leaveConfirmation != m_settings->value(leaveConfirmationKey, false).toBool())
{
m_settings->setValue(leaveConfirmationKey, leaveConfirmation);
doRestart = true;
}
if (lockBeforePowerActions != m_settings->value(lockBeforePowerActionsKey, true).toBool())
{
m_settings->setValue(lockBeforePowerActionsKey, lockBeforePowerActions);
doRestart = true;
}
QMap<QString, AutostartItem> currentItems = m_moduleModel->items();
QMap<QString, AutostartItem>::const_iterator k = currentItems.constBegin();
while (k != currentItems.constEnd())
{
if (previousItems.contains(k.key()))
{
if (k.value().file() != previousItems.value(k.key()).file())
{
doRestart = true;
break;
}
}
else
{
doRestart = true;
break;
}
++k;
}
if (doRestart)
emit needRestart();
m_moduleModel->writeChanges();
}
void BasicSettings::findWmButton_clicked()
{
SessionConfigWindow::updateCfgComboBox(ui->wmComboBox, tr("Select a window manager"));
}
void BasicSettings::startButton_clicked()
{
m_moduleModel->toggleModule(ui->moduleView->selectionModel()->currentIndex(), true);
}
void BasicSettings::stopButton_clicked()
{
m_moduleModel->toggleModule(ui->moduleView->selectionModel()->currentIndex(), false);
}

@ -1,66 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef BASICSETTINGS_H
#define BASICSETTINGS_H
#include <QWidget>
#include <LXQt/Settings>
#include "modulemodel.h"
namespace Ui {
class BasicSettings;
}
class BasicSettings : public QWidget
{
Q_OBJECT
public:
explicit BasicSettings(LXQt::Settings *settings, QWidget *parent = 0);
~BasicSettings();
signals:
void needRestart();
public slots:
void restoreSettings();
void save();
private:
LXQt::Settings* m_settings;
ModuleModel* m_moduleModel;
Ui::BasicSettings* ui;
private slots:
void findWmButton_clicked();
void startButton_clicked();
void stopButton_clicked();
};
#endif // BASICSETTINGS_H

@ -1,135 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BasicSettings</class>
<widget class="QWidget" name="BasicSettings">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>322</width>
<height>380</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Basic Settings</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Window Manager</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QComboBox" name="wmComboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="findWmButton">
<property name="text">
<string>Search...</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>LXQt Modules</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="7" column="1">
<widget class="QPushButton" name="startButton">
<property name="text">
<string>Start</string>
</property>
</widget>
</item>
<item row="7" column="2">
<widget class="QPushButton" name="stopButton">
<property name="text">
<string>Stop</string>
</property>
</widget>
</item>
<item row="7" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" colspan="3">
<widget class="QTreeView" name="moduleView">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<property name="headerHidden">
<bool>true</bool>
</property>
<attribute name="headerStretchLastSection">
<bool>false</bool>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>Leave Session</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="leaveConfirmationCheckBox">
<property name="text">
<string>Ask for confirmation to leave session</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="lockBeforePowerActionsCheckBox">
<property name="text">
<string>Lock screen before suspending/hibernating</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -1,88 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <QLineEdit>
#include "defaultappspage.h"
#include "ui_defaultappspage.h"
#include "sessionconfigwindow.h"
DefaultApps::DefaultApps(QWidget *parent) :
QWidget(parent),
ui(new Ui::DefaultAppsPage)
{
ui->setupUi(this);
connect(ui->terminalButton, SIGNAL(clicked()), this, SLOT(terminalButton_clicked()));
connect(ui->terminalComboBox->lineEdit(), SIGNAL(editingFinished()),
SLOT(terminalChanged()));
connect(ui->browserButton, SIGNAL(clicked()), this, SLOT(browserButton_clicked()));
connect(ui->browserComboBox->lineEdit(), SIGNAL(editingFinished()),
SLOT(browserChanged()));
}
DefaultApps::~DefaultApps()
{
delete ui;
}
void DefaultApps::updateEnvVar(const QString& var, const QString& val)
{
if (var == "BROWSER")
{
QStringList knownBrowsers;
knownBrowsers << "firefox" << "qupzilla" << "arora" << "konqueror" << "opera";
SessionConfigWindow::handleCfgComboBox(ui->browserComboBox, knownBrowsers, val);
}
else if (var == "TERM")
{
QStringList knownTerms;
knownTerms << "qterminal" << "xterm" << "konsole" << "uterm";
SessionConfigWindow::handleCfgComboBox(ui->terminalComboBox, knownTerms, val);
}
}
void DefaultApps::terminalButton_clicked()
{
SessionConfigWindow::updateCfgComboBox(ui->terminalComboBox, tr("Select a terminal emulator"));
}
void DefaultApps::browserButton_clicked()
{
SessionConfigWindow::updateCfgComboBox(ui->browserComboBox, tr("Select a web browser"));
}
void DefaultApps::terminalChanged()
{
emit defaultAppChanged("TERM", ui->terminalComboBox->lineEdit()->text());
}
void DefaultApps::browserChanged()
{
emit defaultAppChanged("BROWSER", ui->browserComboBox->lineEdit()->text());
}

@ -1,61 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef DEFAULTAPPS_H
#define DEFAULTAPPS_H
#include <QWidget>
namespace Ui {
class DefaultAppsPage;
}
class DefaultApps : public QWidget
{
Q_OBJECT
public:
explicit DefaultApps(QWidget *parent = 0);
~DefaultApps();
signals:
void defaultAppChanged(const QString&, const QString&);
public slots:
void updateEnvVar(const QString &var, const QString &val);
private:
Ui::DefaultAppsPage *ui;
private slots:
void browserButton_clicked();
void terminalButton_clicked();
void browserChanged();
void terminalChanged();
};
#endif // DEFAULTAPPS_H

@ -1,102 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DefaultAppsPage</class>
<widget class="QWidget" name="DefaultAppsPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>340</width>
<height>135</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="0">
<widget class="QLabel" name="label_1">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Default Applications</string>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Terminal Emulation:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="terminalComboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="terminalButton">
<property name="text">
<string>Search...</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Web Browser:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="browserComboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="browserButton">
<property name="text">
<string>Search...</string>
</property>
</widget>
</item>
<item row="2" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>118</width>
<height>186</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -1,150 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include "environmentpage.h"
#include "ui_environmentpage.h"
EnvironmentPage::EnvironmentPage(LXQt::Settings *settings, QWidget *parent) :
QWidget(parent),
m_settings(settings),
ui(new Ui::EnvironmentPage)
{
ui->setupUi(this);
connect(ui->addButton, SIGNAL(clicked()), SLOT(addButton_clicked()));
connect(ui->deleteButton, SIGNAL(clicked()), SLOT(deleteButton_clicked()));
connect(ui->treeWidget, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
SLOT(itemChanged(QTreeWidgetItem*,int)));
/* restoreSettings() is called from SessionConfigWindow
after connections with DefaultApps have been set up */
}
EnvironmentPage::~EnvironmentPage()
{
delete ui;
}
void EnvironmentPage::restoreSettings()
{
m_settings->beginGroup("Environment");
QString value;
ui->treeWidget->clear();
foreach (const QString& i, m_settings->childKeys())
{
value = m_settings->value(i).toString();
QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget, QStringList() << i << value);
item->setFlags(item->flags() | Qt::ItemIsEditable);
ui->treeWidget->addTopLevelItem(item);
emit envVarChanged(i, value);
}
if (m_settings->value("BROWSER").isNull())
emit envVarChanged("BROWSER", "");
if (m_settings->value("TERM").isNull())
emit envVarChanged("TERM", "");
m_settings->endGroup();
}
void EnvironmentPage::save()
{
bool doRestart = false;
QMap<QString, QString> oldSettings;
m_settings->beginGroup("Environment");
/* We erase the Enviroment group and them write the Ui settings. To know if
they changed or not we need to save them to memory.
*/
foreach (const QString &key, m_settings->childKeys())
oldSettings[key] = m_settings->value(key, QString()).toString();
m_settings->remove("");
const int nItems = ui->treeWidget->topLevelItemCount();
for(int i = 0; i < nItems; ++i)
{
QTreeWidgetItem *item = ui->treeWidget->topLevelItem(i);
const QString key = item->text(0);
const QString value = item->text(1);
if (oldSettings.value(key) != value)
doRestart = true;
m_settings->setValue(item->text(0), item->text(1));
}
m_settings->endGroup();
if (oldSettings.size() != nItems)
doRestart = true;
if (doRestart)
emit needRestart();
}
void EnvironmentPage::addButton_clicked()
{
QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget, QStringList() << "" << "");
item->setFlags(item->flags() | Qt::ItemIsEditable);
ui->treeWidget->addTopLevelItem(item);
ui->treeWidget->setCurrentItem(item);
}
void EnvironmentPage::deleteButton_clicked()
{
foreach (QTreeWidgetItem* item, ui->treeWidget->selectedItems())
{
emit envVarChanged(item->text(0), "");
delete item;
}
}
void EnvironmentPage::itemChanged(QTreeWidgetItem *item, int column)
{
Q_UNUSED(column);
emit envVarChanged(item->text(0), item->text(1));
}
void EnvironmentPage::updateItem(const QString& var, const QString& val)
{
QList<QTreeWidgetItem*> itemList = ui->treeWidget->findItems(var, Qt::MatchExactly);
if (itemList.isEmpty())
{
QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget, QStringList() << var << val);
item->setFlags(item->flags() | Qt::ItemIsEditable);
ui->treeWidget->addTopLevelItem(item);
return;
}
foreach (QTreeWidgetItem* item, itemList)
{
if (!val.isEmpty())
item->setText(1, val);
else
delete item;
}
}

@ -1,65 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2012 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef ENVIRONMENTPAGE_H
#define ENVIRONMENTPAGE_H
#include <QTreeWidgetItem>
#include <LXQt/Settings>
namespace Ui {
class EnvironmentPage;
}
class EnvironmentPage : public QWidget
{
Q_OBJECT
public:
explicit EnvironmentPage(LXQt::Settings *settings, QWidget *parent = 0);
~EnvironmentPage();
signals:
void needRestart();
void envVarChanged(const QString&, const QString&);
public slots:
void restoreSettings();
void save();
void updateItem(const QString &var, const QString &val);
private:
LXQt::Settings *m_settings;
Ui::EnvironmentPage *ui;
private slots:
void addButton_clicked();
void deleteButton_clicked();
void itemChanged(QTreeWidgetItem *item, int column);
};
#endif // ENVIRONMENTPAGE_H

@ -1,75 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>EnvironmentPage</class>
<widget class="QWidget" name="EnvironmentPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>320</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="2" column="1">
<widget class="QPushButton" name="addButton">
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="deleteButton">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item row="4" column="1">
<spacer name="verticalSpacer_1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>59</width>
<height>96</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Environment Variables (Advanced)</string>
</property>
</widget>
</item>
<item row="1" column="0" rowspan="4">
<widget class="QTreeWidget" name="treeWidget">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<column>
<property name="text">
<string>Variable Name</string>
</property>
</column>
<column>
<property name="text">
<string>Value</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

@ -1,11 +0,0 @@
[Desktop Entry]
Type=Application
Name=Session Settings
GenericName=LXQt Session Settings
Comment=Configuration for LXQt sessions
Exec=lxqt-config-session
Icon=preferences-system-session-services
Categories=Settings;DesktopSettings;Qt;LXQt;
OnlyShowIn=LXQt;
#TRANSLATIONS_DIR=translations

@ -1,56 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2011 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <LXQt/SingleApplication>
#include <XdgIcon>
#include <LXQt/Settings>
#include <QCommandLineParser>
#include "sessionconfigwindow.h"
int main(int argc, char** argv)
{
LXQt::SingleApplication a(argc, argv);
a.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
QCommandLineParser parser;
parser.setApplicationDescription(QStringLiteral("LXQt Config Session"));
const QString VERINFO = QStringLiteral(LXQT_SESSION_VERSION
"\nliblxqt " LXQT_VERSION
"\nQt " QT_VERSION_STR);
a.setApplicationVersion(VERINFO);
parser.addVersionOption();
parser.addHelpOption();
parser.process(a);
SessionConfigWindow w;
a.setActivationWindow(&w);
w.show();
return a.exec();
}

@ -1,20 +0,0 @@
.TH lxqt-config-session "1" "2015-11-05" "LXQt 0.10.0" "LXQt Application/Environment Configuration"
.SH NAME
\fBlxqt-config-session\fR \- Application settings of \fBLXQt\fR: The Lightweight
Qt Desktop Environment
.SH SYNOPSIS
.B lxqt-config-session
.br
.SH DESCRIPTION
This application handles \fBLXQt\fR default applications settings, autostart
configuration, and environment settings.
.SH "REPORTING BUGS"
Report bugs to https://github.com/lxde/lxqt/issues
.SH "SEE ALSO"
.\" any module must refer to the session application, for module overview and initiation
\fBstartlxqt.1\fR LXQt session initialization and launch script (e.g. in \fB.xinitrc\fR)
.P
\fBlxqt-session.1\fR LXQt \fIoverview\fR and complete session environment
.P
\fBlxqt-config.1\fR LXQt settings Configuration Center interface
.P

@ -1,151 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusReply>
#include <QDebug>
#include <XdgIcon>
#include "modulemodel.h"
#include "autostartutils.h"
ModuleModel::ModuleModel(QObject* parent)
: QAbstractListModel(parent)
{
mInterface = new QDBusInterface("org.lxqt.session", "/LXQtSession", "",
QDBusConnection::sessionBus(), this);
connect(mInterface, SIGNAL(moduleStateChanged(QString,bool)), SLOT(updateModuleState(QString,bool)));
}
ModuleModel::~ModuleModel()
{
delete mInterface;
}
void ModuleModel::reset()
{
mKeyList.clear();
mStateMap.clear();
mItemMap = AutostartItem::createItemMap();
QMap<QString,AutostartItem>::iterator iter;
for (iter = mItemMap.begin(); iter != mItemMap.end(); ++iter)
{
if (AutostartUtils::isLXQtModule(iter.value().file()))
mKeyList.append(iter.key());
}
QDBusReply<QVariant> reply = mInterface->call("listModules");
const QStringList moduleList = reply.value().toStringList();
foreach (const QString& moduleName, moduleList)
{
if (mItemMap.contains(moduleName))
mStateMap[moduleName] = true;
}
}
QVariant ModuleModel::data(const QModelIndex& index, int role) const
{
QString name = mKeyList.at(index.row());
if (index.column() == 0)
{
switch (role)
{
case Qt::DisplayRole:
return mItemMap.value(name).file().name();
case Qt::CheckStateRole:
return mItemMap.value(name).isEnabled() ? Qt::Checked : Qt::Unchecked;
case Qt::ToolTipRole:
return mItemMap.value(name).file().comment();
}
}
else if (index.column() == 1 && (role == Qt::DisplayRole || role == Qt::DecorationRole))
{
if (role == Qt::DisplayRole && mStateMap[name] == true)
return QString(tr("Running") + QLatin1Char(' '));
}
return QVariant();
}
bool ModuleModel::setData(const QModelIndex& index, const QVariant& value, int role)
{
if (role == Qt::CheckStateRole)
{
QString key = mKeyList.at(index.row());
mItemMap[key].setEnabled(value == Qt::Checked);
emit dataChanged(index, index);
return true;
}
return false;
}
Qt::ItemFlags ModuleModel::flags(const QModelIndex& index) const
{
Q_UNUSED(index);
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable;
}
QMap<QString, AutostartItem> ModuleModel::items()
{
QMap<QString, AutostartItem> allItems;
foreach(const QString &s, mKeyList)
allItems[s] = mItemMap.value(s);
return allItems;
}
int ModuleModel::rowCount(const QModelIndex& parent) const
{
Q_UNUSED(parent);
return mKeyList.size();
}
void ModuleModel::writeChanges()
{
foreach (const QString& key, mKeyList)
mItemMap[key].commit();
}
void ModuleModel::updateModuleState(QString moduleName, bool state)
{
if (mItemMap.contains(moduleName))
{
mStateMap[moduleName] = state;
QModelIndex i = index(mKeyList.indexOf(moduleName), 1);
emit dataChanged(i, i);
}
}
void ModuleModel::toggleModule(const QModelIndex &index, bool status)
{
if (!index.isValid())
return;
QList<QVariant> arg;
arg.append(mKeyList.at(index.row()));
mInterface->callWithArgumentList(QDBus::NoBlock,
status ? "startModule" : "stopModule",
arg);
}

@ -1,61 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright (C) 2012 Alec Moskvin <alecm@gmx.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef MODULEMODEL_H
#define MODULEMODEL_H
#include <QStringListModel>
#include <QtDBus/QDBusInterface>
#include "autostartitem.h"
class ModuleModel : public QAbstractListModel
{
Q_OBJECT
public:
ModuleModel(QObject *parent = 0);
~ModuleModel();
void reset();
void writeChanges();
void toggleModule(const QModelIndex &index, bool status);
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
bool setData(const QModelIndex& index, const QVariant& value, int role);
int rowCount(const QModelIndex& parent) const;
int columnCount(const QModelIndex&) const { return 2; }
Qt::ItemFlags flags(const QModelIndex& index) const;
QMap<QString, AutostartItem> items();
private slots:
void updateModuleState(QString moduleName, bool state);
private:
QMap<QString,AutostartItem> mItemMap;
QMap<QString,bool> mStateMap;
QStringList mKeyList;
QDBusInterface* mInterface;
};
#endif // MODULEMODEL_H

@ -1,144 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2011 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#include <QLineEdit>
#include <QMessageBox>
#include <QFileDialog>
#include <LXQt/Settings>
#include "sessionconfigwindow.h"
#include "../lxqt-session/src/windowmanager.h"
#include "basicsettings.h"
#include "autostartpage.h"
#include "defaultappspage.h"
#include "environmentpage.h"
#include "userlocationspage.h"
SessionConfigWindow::SessionConfigWindow() :
LXQt::ConfigDialog(tr("LXQt Session Settings"), new LXQt::Settings("session"), 0)
{
BasicSettings* basicSettings = new BasicSettings(mSettings, this);
addPage(basicSettings, tr("Basic Settings"), "preferences-desktop-display-color");
connect(basicSettings, SIGNAL(needRestart()), SLOT(setRestart()));
connect(this, SIGNAL(reset()), basicSettings, SLOT(restoreSettings()));
connect(this, SIGNAL(save()), basicSettings, SLOT(save()));
DefaultApps* defaultApps = new DefaultApps(this);
addPage(defaultApps, tr("Default Applications"), "preferences-desktop-filetype-association");
UserLocationsPage* userLocations = new UserLocationsPage(this);
addPage(userLocations, tr("User Directories"), QStringLiteral("folder"));
connect(userLocations, SIGNAL(needRestart()), SLOT(setRestart()));
connect(this, SIGNAL(reset()), userLocations, SLOT(restoreSettings()));
connect(this, SIGNAL(save()), userLocations, SLOT(save()));
AutoStartPage* autoStart = new AutoStartPage(this);
addPage(autoStart, tr("Autostart"), "preferences-desktop-launch-feedback");
connect(autoStart, SIGNAL(needRestart()), SLOT(setRestart()));
connect(this, SIGNAL(reset()), autoStart, SLOT(restoreSettings()));
connect(this, SIGNAL(save()), autoStart, SLOT(save()));
EnvironmentPage* environmentPage = new EnvironmentPage(mSettings, this);
addPage(environmentPage, tr("Environment (Advanced)"), "preferences-system-session-services");
connect(environmentPage, SIGNAL(needRestart()), SLOT(setRestart()));
connect(this, SIGNAL(reset()), environmentPage, SLOT(restoreSettings()));
connect(this, SIGNAL(save()), environmentPage, SLOT(save()));
// sync Default Apps and Environment
connect(environmentPage, SIGNAL(envVarChanged(QString,QString)),
defaultApps, SLOT(updateEnvVar(QString,QString)));
connect(defaultApps, SIGNAL(defaultAppChanged(QString,QString)),
environmentPage, SLOT(updateItem(QString,QString)));
environmentPage->restoreSettings();
connect(this, SIGNAL(reset()), SLOT(clearRestart()));
m_restart = false;
adjustSize();
}
SessionConfigWindow::~SessionConfigWindow()
{
delete mSettings;
}
void SessionConfigWindow::closeEvent(QCloseEvent * event)
{
LXQt::ConfigDialog::closeEvent(event);
if (m_restart) {
QMessageBox::information(this, tr("Session Restart Required"),
tr("Some settings will not take effect until the next log in.")
);
}
}
void SessionConfigWindow::handleCfgComboBox(QComboBox * cb,
const QStringList &availableValues,
const QString &value
)
{
QStringList realValues;
foreach (const QString &s, availableValues)
{
if (findProgram(s))
realValues << s;
}
cb->clear();
cb->addItems(realValues);
int ix = cb->findText(value);
if (ix == -1)
cb->lineEdit()->setText(value);
else
cb->setCurrentIndex(ix);
}
void SessionConfigWindow::updateCfgComboBox(QComboBox * cb,
const QString &prompt
)
{
QString fname = QFileDialog::getOpenFileName(cb, prompt, "/usr/bin/");
if (fname.isEmpty())
return;
QFileInfo fi(fname);
if (!fi.exists() || !fi.isExecutable())
return;
cb->lineEdit()->setText(fname);
}
void SessionConfigWindow::setRestart()
{
m_restart = true;
}
void SessionConfigWindow::clearRestart()
{
m_restart = false;
}

@ -1,63 +0,0 @@
/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* LXQt - a lightweight, Qt based, desktop toolset
* http://razor-qt.org, http://lxde.org/
*
* Copyright: 2010-2011 LXQt team
* Authors:
* Petr Vanek <petr@scribus.info>
*
* This program or library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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 library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* END_COMMON_COPYRIGHT_HEADER */
#ifndef SESSIONCONFIGWINDOW_H
#define SESSIONCONFIGWINDOW_H
#include <QComboBox>
#include <LXQt/ConfigDialog>
class SessionConfigWindow : public LXQt::ConfigDialog
{
Q_OBJECT
public:
SessionConfigWindow();
~SessionConfigWindow();
static void handleCfgComboBox(QComboBox * cb,
const QStringList &availableValues,
const QString &value
);
static void updateCfgComboBox(QComboBox * cb, const QString &prompt);
void closeEvent(QCloseEvent * event);
public slots:
void setRestart();
private:
// display restart warning
bool m_restart;
private slots:
void clearRestart();
};
#endif

@ -1,4 +0,0 @@
# Translations
Comment[ar]=ضبط جلسات لكسكيوت
GenericName[ar]=إعدادات لكسكيوت للجلسات
Name[ar]=إعدادات الجلسات

@ -1,4 +0,0 @@
# Translations
Name[ca]=Ajusts de la sessió
GenericName[ca]=Ajusts de la sessió de LXQt
Comment[ca]=Configuració per a les sessions de LXQt

@ -1,4 +0,0 @@
# Translations
Comment[cs]=Nastavit modul sezení LXQt
GenericName[cs]=Nastavení sezení LXQt
Name[cs]=Nastavení sezení LXQt

@ -1,4 +0,0 @@
# Translations
Comment[cs_CZ]=Nastavit modul sezení LXQtu
GenericName[cs_CZ]=Nastavení sezení LXQtu
Name[cs_CZ]=Nastavení sezení LXQtu

@ -1,3 +0,0 @@
# Translations
Name[da]=Sessionsindstillinger
Comment[da]=Konfiguration af LXQt-sessioner

@ -1,3 +0,0 @@
Name[de]=Sitzungskonfiguration
GenericName[de]=LXQt Sitzungskonfiguration
Comment[de]=Die LXQt Sitzung konfigurieren

@ -1,4 +0,0 @@
# Translations
Name[el]=Ρυθμίσεις συνεδρίας
GenericName[el]=Ρυθμίσεις συνεδρίας του LXQt
Comment[el]=Διαμόρφωση των συνεδριών LXQt

@ -1,4 +0,0 @@
# Translations
Comment[eo]=Agordi modulon de seanco de LXQt
GenericName[eo]=Agordilo de seanco de LXQt
Name[eo]=Agordilo de seanco de LXQt

@ -1,4 +0,0 @@
# Translations
Comment[es]=Configura el módulo de sesiones de LXQt
GenericName[es]=Configuración de sesiones LXQt
Name[es]=Configuración de sesiones LXQt

@ -1,4 +0,0 @@
# Translations
Comment[es_VE]=Configuracion de modulo de LXQt
GenericName[es_VE]=Configuracion de sesion de LXQt
Name[es_VE]=Configuracion de sesion de LXQt

@ -1,4 +0,0 @@
# Translations
Comment[eu]=LXQt saioen konfigurazioa
GenericName[eu]=LXQt saioaren ezarpenak
Name[eu]=Saioaren ezarpenak

@ -1,4 +0,0 @@
# Translations
Comment[fi]=Hallinnoi LXQt:n istuntomoduulia
GenericName[fi]=LXQtin istunnonhallinta
Name[fi]=LXQtin istunnonhallinta

@ -1,4 +0,0 @@
# Translations
Comment[fr]=Configurer le module 'session' de LXQt
GenericName[fr]=Paramétreur de session LXQt
Name[fr]=Paramétreur de session LXQt

@ -1,4 +0,0 @@
# Translations
Comment[hu]=A LXQt munkamenetmodul beállítása
GenericName[hu]=LXQt munkamenetbeállíó
Name[hu]=LXQt munkamenetbeállíó

@ -1,4 +0,0 @@
# Translations
Comment[id_ID]=Konfigurasi modul sesi LXQt
GenericName[id_ID]=Konfigurator Sesi LXQt
Name[id_ID]=Konfigurator Sesi LXQt

@ -1,3 +0,0 @@
# Translations
Name[it]=Impostazioni della sessione
Comment[it]=Configura i moduli della sessione di LXQt

@ -1,4 +0,0 @@
# Translations
Comment[ja]=LXQtセッションもジュールを設定
GenericName[ja]=LXQtセッションの設定
Name[ja]=LXQtセッションの設定

@ -1,4 +0,0 @@
# Translations
Comment[lt]=LXQt seansų konfigūravimas
GenericName[lt]=LXQt seansų nustatymai
Name[lt]=Seanso nustatymai

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save