Pierre Ossman
a92aec4fbb
Stop searching for Xvnc
Assume we are part of a complete and proper installation and encode the
full expected path in to the vncserver script.
4 anni fa
Pierre Ossman
c67a5f2557
Start the sessions using xinit
It keeps much better track of the X server and startup files than
we can do.
5 anni fa
Pierre Ossman
c24a9a5d8c
Make vncserver always run in the foreground
We need to be started as a system service for things to work correctly
anyway, so delegate the work of starting and stopping things to the
system service manager (e.g. systemd).
5 anni fa
Pierre Ossman
537a39373c
Start sessions using session desktop file
This is how display managers (e.g. gdm or lightdm) start sessions
and is necessary to get the proper set of environment variables.
5 anni fa
Pierre Ossman
a290ab8e28
Don't create a default user config
We don't want to create files in the users home directory unless we
have to. Users can read about how this file works in our man pages.
5 anni fa
Pierre Ossman
1a4ebd8e72
Don't accept arbitrary arguments to vncserver
We now have config files for more fine grained control of these
things, so avoid duplicating the functionality.
5 anni fa
Pierre Ossman
c68196700e
Stop unsetting environment variables
These might contain values we want if we are start from a proper
environment.
6 anni fa
Pierre Ossman
df25ae4119
Always install systemd services
It is the most common init system these days so it should not be
hidden in the contrib/ directory.
This also removes all old SysV files from the contrib packages.
6 anni fa
Pierre Ossman
ebaa948e46
Add default configuration files
Install some example files to make things more easily discoverable.
5 anni fa
Pierre Ossman
bb8d82ad3c
Remove old distribution packaging
These are EOL (or soon to be) and we want to start relying on things
present in current distributions.
4 anni fa
Pierre Ossman
bc1fc22df1
Merge branch 'xorg-server-1.20.7' of https://github.com/lheckemann/tigervnc
4 anni fa
Pierre Ossman
1688e8cd57
Fix error check for zlib calls
There are multiple "okay" return values, not just Z_OK. Make sure we
don't bail out needlessly.
4 anni fa
Pierre Ossman
ea85e8b32b
Fix framebuffer setup in encperf
We adapted to the wrong new callback in a previous commit.
4 anni fa
Pierre Ossman
954ad21da2
Provide dummy output for dummy client connections
The CConnection base class wants to be able to write things these days,
so we need to provide it a place to do so.
4 anni fa
Samuel Mannehed
2b45fb3950
Merge pull request #958 from sequencer/env_userpass
Read username and passwrod from env.
4 anni fa
Jiuyang liu
d68c64e669
bug fix for user is NULL
4 anni fa
Jiuyang liu
34435ea135
add man
4 anni fa
Jiuyang liu
38f0d2c389
implement username/password from env.
4 anni fa
Linus Heckemann
920d9c4d65
xserver: add no-op input thread init function
This allows Xvnc to build with xorg-server 1.20.7, which requires OS
layers to implement a ddxInputThreadInit function when configured with
--enable-input-thread (the default).
relevant xorg-server commit: e3f26605d8
4 anni fa
Pierre Ossman
57da16bbcf
Include Carbon when statically linking gettext on macOS
As gettext needs some stuff from Carbon and we don't want to rely on it
being pulled in as a side effect.
4 anni fa
Pierre Ossman
6d39667c42
Update copyright year to 2020
4 anni fa
Pierre Ossman
da89c40be6
Merge branch 'emulateMB' of https://github.com/CendioAlex/tigervnc
4 anni fa
Pierre Ossman
4e58ac18af
Use sys/time.h on Windows as well
Modern MinGW seems to provide this, so simplify things a bit. This also
side steps some of the issue of the windows.h/winsock2.h include
ordering.
4 anni fa
Alex Tanskanen
bab9d1fa18
Add emulated middle mouse button
Not every mouse has three buttons e.g. laptops. Some OS might not
have support for middle mouse button emulation.
This commit adds emulation for middle mouse button when pressing both
left and right mouse button simultaneously.
4 anni fa
Alex Tanskanen
b9b7f68b40
Remove "Dismiss menu" from context menu
This was not necessary since you could use ESC key or simply just
clicking outside of the context menu to close the menu.
4 anni fa
Pierre Ossman
81e114f29f
Allow XK_Scroll_Lock when LED state isn't supported
Otherwise such clients cannot use Scroll Lock at all, and that is
probably worse than any effects we might get from getting out of sync.
4 anni fa
Pierre Ossman
73014910f5
Clean up initialization of DIBSectionBuffer
We had an unintentional conflict with PixelBuffer::setSize() here.
But we can simplify this further as this initialization is only used
by the subclass DeviceFrameBuffer, and only once.
4 anni fa
Pierre Ossman
0f1ded057d
Provide correct dimensions for XShm setup
Since 53f913a
we initialize the underlying PixelBuffer with 0x0
dimensions, which means we need to keep more explicit track of what
we are trying to allocate in the setup methods.
4 anni fa
Pierre Ossman
6208f47dcb
Remove unneeded memory checks
new throws an exception on allocation errors rather than return NULL.
4 anni fa
Pierre Ossman
dbad687182
Fix saving of bad server certificates
This check is completely backwards and it is currently unknown how
this ever worked.
4 anni fa
Brian P. Hinz
5e4957a3d4
el6 build improvements. dependency updates, link order fixes
4 anni fa
Felipe Castro
f580719ffa
Update Esperanto translation
4 anni fa
Pierre Ossman
2cd3cb4816
Set initial blank cursor
If the server doesn't support local cursors and want to render them
itself then we need to make sure the local cursor is invisible.
This also makes sure we always have some cursor allocated, so we can
remove the checks in some places.
4 anni fa
Brian P. Hinz
50c72dccc7
Update source URLs in el6 spec file
4 anni fa
Brian P. Hinz
cc3e2118c9
Remove hard coded source URLs from travis-ci build script
4 anni fa
Brian P. Hinz
efaa81c170
Allow non-interactive installs for bionic (travis-ci)
4 anni fa
Brian P. Hinz
4b1be9de90
Add ubuntu-bionic to travis-ci builds
4 anni fa
Brian P. Hinz
cdd5fabfb5
Make sure travis-ci builds java viewer with latest openjdk 8
4 anni fa
Brian P. Hinz
a356a70652
Mostly stylistic changes to java viewer to match recent changes to native viewer
4 anni fa
Brian P. Hinz
ce04c4c892
Fix travis-ci build scripts broken by c59f195
4 anni fa
Samuel Mannehed
7ccf7faa6b
Fix maximum compress lvl in parameter list
Commit 4e61f8dbc5
fixed the GUI but forgot
to change the other places in the code.
4 anni fa
Samuel Mannehed
c2184f9bf3
Use the correct minimum value for compression lvl
There was even some confusion in the RFB protocol regarding this, but
the zlib implementation confirms that accepted values for compression
level is 0-9.
4 anni fa
Samuel Mannehed
4e61f8dbc5
Use the correct maximum value for compression lvl
The GUI incorrectly noted the max level to be 6 while it in fact is 9.
4 anni fa
Samuel Mannehed
bab2e05e4b
Remove confusing note about compression level
Even if this note is true it just adds confusion.
4 anni fa
Samuel Mannehed
103066e658
Simplify color level descriptions
The number of colors used isn't something the end-users should have to
concern themselves with. I intentionally left the information in the
man-pages.
4 anni fa
Pierre Ossman
d461f7fdb8
Merge branch 'secfix' of https://github.com/CendioOssman/tigervnc
4 anni fa
Brian P. Hinz
c59f195d0e
Remove support for ubuntu trusty since it's been EoL for 6 months
4 anni fa
Pierre Ossman
10c40dbc86
Check the correct stream if there is more data pending
The input stream might no longer be the raw socket, so we need to
query what's currently active. That wrapping stream might have its
own buffering and may have more data even if the socket is drained.
4 anni fa
Pierre Ossman
ec3899ecd1
Handle pending data in TLS buffers
There might be more bytes left in the current TLS record, even if
there is nothing on the underlying stream. Make sure we properly
return this when we aren't being requested to block.
4 anni fa
Pierre Ossman
86f4f47365
Correctly calculate rects with no CopyRect support
The copied rects have already been merged in to the changed rects
at this point if the client doesn't support the CopyRect encoding.
4 anni fa