summaryrefslogtreecommitdiffstats
path: root/sesman
Commit message (Collapse)AuthorAgeFilesLines
* chansrv: include display number in chansrv log filenameKoichiro IWAO2017-07-061-5/+5
| | | | | since xrdp-chansrv may be run multiple instances per user. For example, Xvnc backend creates one session per screen geometry.
* sesman: exit with failure status if listen failedKoichiro IWAO2017-06-201-3/+55
|
* sesman: install empty reconnectwm.sh as a templateKoichiro IWAO2017-06-202-1/+5
| | | | | | as it was undocumented and few people know reconnectwm.sh is executed on client reconnect. The behaviour of startwm.sh / reconnectwm.sh should be documented. This is a first step of documenting them.
* pulse: respect XRDP_SOCKET_PATH environment variableKoichiro IWAO2017-05-163-6/+18
|
* sesman: pass xrdp socket path to user sessionKoichiro IWAO2017-05-161-0/+2
| | | | via environment variable.
* startwm.sh: do not call pseudo shell code for /etc/X11/xdm/XsessionFuminobu TAKEYAMA2017-05-091-31/+37
| | | | | | Since /etc/X11/xdm/Xsession calls user's login shell, startwm.sh should not execute the pseudo code; It causes to execute ~/.profile twice.
* pulse: define default socket directory in MakefileKoichiro IWAO2017-04-061-1/+4
|
* sesman: LOGNAME should be set to usernameKoichiro IWAO2017-04-061-0/+1
| | | | | | | | | | | which is used to store login name. The login name shall be the string that would be returned by the getlogin() function [1]. Some applications only refers LOGNAME environment variable and don't fallback to other variables such as USER. Fixes #725. Reported by @seidler2547. [1] The Single UNIX Specification, Issue 7
* Rename file_loc.h to xrdp_sockets.h, install itPavel Roskin2017-03-287-6/+6
| | | | Include xrdp_sockets.h directly, not through headers.
* pulse: refer correct path to file_loc.hKoichiro IWAO2017-03-242-2/+2
|
* pulse: use correct macro for audio in/out socketsKoichiro IWAO2017-03-242-2/+2
|
* sesman: move auth/pam calls to main processJay Sorg2017-03-213-9/+26
|
* xrdp-chansrv: default to INFO log level rather than ERRORPavel Roskin2017-03-201-1/+1
|
* sesman: remove sessvc, one less process to manageJay Sorg2017-03-197-334/+136
|
* Make socket directory configurable, don't hardcode /tmp/.xrdpPavel Roskin2017-03-177-3/+9
| | | | | | | | | | Use XRDP_SOCKET_PATH in file_loc.h Don't define any non-socket paths in file_loc.h, they should come from the makefiles. Define all paths unconditionally, they should not be defined elsewhere. Pass XRDP_SOCKET_PATH as environment variable to the backends.
* Remove chansrv_cleanup(), it doesn't do anything usefulPavel Roskin2017-03-171-25/+0
| | | | | | | | | | | | | xrdp_chansrv_%8.8x_main_term and xrdp_chansrv_%8.8x_thread_done are both wait objects, not sockets. They are created and cleaned up in chansrv.c Wait objects are pairs of file descriptors on POSIX. They are closed automatically when the process exits. On Windows, wait objects are handles that are closed by CloseHandle(). Those handles should also be closed on the process exit. In any case, there is no way for a parent process to clean up file handles of the child process.
* chansrv: dvc, check channel exists on get/remove api structspeidy2017-03-161-2/+4
|
* Eliminate APP_CC and DEFAULT_CCPavel Roskin2017-03-1460-572/+572
|
* Don't include config_ac.h from any header filesPavel Roskin2017-03-042-7/+0
|
* Include config_ac.h from all source filesPavel Roskin2017-03-0447-0/+188
|
* Remove trailing whitespacePavel Roskin2017-02-081-1/+1
|
* chansrv: fix warnings in pulse moduleKoichiro IWAO2017-02-021-4/+4
|
* xrdp-sesadmin: show sessions in human readable formatPavel Roskin2017-02-021-7/+15
|
* xrdp-sesadmin: refactor array accessPavel Roskin2017-02-021-4/+7
|
* xrdp-sesadmin: fix crash on network or authentication errorPavel Roskin2017-02-021-5/+8
| | | | | | | | If scp_v1c_mng_get_session_list() returns an error, report it to the user and exit. Session list is not initialized in that case and should not be freed. g_free() already checks its argument for being to NULL, remove an extra check.
* docs: remove IdleTimeLimit until it is actually implementedKoichiro IWAO2017-01-311-7/+0
| | | | it gives users false hope and finally disappoints them.
* change log message to long longJay Sorg2017-01-291-2/+2
|
* sesman: fix warning for 32 bit / 64 bit log entry, trunc to 32 bitJay Sorg2017-01-291-2/+2
|
* sesman: remove unnecessary fork for FreeBSD (#650)metalefty2017-01-281-21/+12
| | | it is not only unnecessary but causes another bug.
* Add GNU/kFreeBSD support (#645)mirabilos2017-01-261-1/+1
| | | | | | * GNU/kFreeBSD is a FreeBSD variant, for code purposes. * GNU/kFreeBSD uses GNU/Linux-ish init scripts, however.
* Constify string arguments in xrdp-chansrv sourcesPavel Roskin2017-01-226-28/+30
|
* Merge pull request #630 from selu/develIdan Freiberg2017-01-231-1/+1
|\ | | | | Fix calling XChangeProperty in clipboard provide
| * Fix calling XChangeProperty in clipboard provideSzabolcs Seláf2017-01-171-1/+1
| | | | | | | | XChangeProperty's last parameter is number of elements, not number of bytes as it's in https://tronche.com/gui/x/xlib/window-information/XChangeProperty.html Because of this bug Paste did not work in any java applications.
* | Improve xrdp-sesman help textPavel Roskin2017-01-171-16/+17
|/ | | | Don't document "-ns", as "-n" and "--nodaemon" should be enough. Always refer to the program as xrdp-sesman, not sesman.
* Don't log device_data_len in the code where it may be uninitializedPavel Roskin2017-01-111-3/+2
| | | Log device_data_len only in the code that reads it.
* Remove redundant function declarationsPavel Roskin2017-01-112-11/+0
|
* Remove send_channel_data() from devredir.h, it's declared in chansrv.hPavel Roskin2017-01-112-2/+1
| | | | Include "chansrv.h" from devredir.c to have send_channel_data() declaration.
* Merge pull request #618 from metalefty/max_disc_timeIdan Freiberg2017-01-121-1/+1
|\ | | | | sesman: print max_disc_time as DisconnectedTimeLimit
| * sesman: print max_disc_time as DisconnectedTimeLimitKoichiro IWAO2017-01-101-1/+1
| | | | | | | | not max_idle_time.
* | rail: remove unneeded call to XGetWindowAttributes()Pavel Roskin2017-01-061-3/+0
|/ | | | It is already called above "if" with the same arguments.
* Use "void" for empty argument list in declarationsPavel Roskin2017-01-0515-27/+27
| | | | | | In C, an empty argument list in a declaration means that the function can accept any arguments. Use "void" instead, it means "no arguments". C++ treats void and empty list as "no arguments".
* Merge pull request #612 from proski/includesjsorg712017-01-052-3/+4
|\ | | | | Use <> for system includes, move system includes above local ones
| * Use <> for system includes, move system includes above local onesPavel Roskin2017-01-042-3/+4
| |
* | fix build with --enable-xrdpdebug=yesvolth2017-01-044-8/+0
| |
* | fix build with --enable-xrdpdebug=yesvolth2017-01-046-7/+31
|/
* Fix help text to match the manual and the actual behaviorPavel Roskin2016-12-191-2/+2
| | | | | The help text mentions "LIST" and "KILL" commands, but the manual says "list" and "kill", and the command line parser expects the later.
* Merge pull request #545 from moobyfr/fix-xauthIdan Freiberg2016-12-194-0/+129
|\ | | | | Fix xauth
| * Fix typoBLINDAUER Emmanuel2016-12-171-1/+1
| |
| * - Removed tailing spaceBLINDAUER Emmanuel2016-12-162-6/+4
| | | | | | | | - Fixed the copyright and year
| * - Update copyrightBLINDAUER Emmanuel2016-12-152-18/+13
| | | | | | | | | | | | | | - remove test on filename for xauth as we know what we send - better names for variables in xauth - if xauth fails, exit sesman - g_bytes_to_hexstr returns a null-teminated string, don't set it twice.