Skip to content

Commit 236e371

Browse files
authored
Migrating Desktop Client documentation (#12543)
Signed-off-by: Rello <[email protected]>
1 parent 526fd4a commit 236e371

36 files changed

+946
-5
lines changed

user_manual/desktop/autoupdate.rst

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
=====================
2+
The Automatic Updater
3+
=====================
4+
5+
The Automatic Updater ensures that you always have the
6+
latest features and bug fixes for your Nextcloud synchronization client.
7+
8+
The Automatic Updater updates only on macOS and Windows computers; Linux
9+
users only need to use their normal package managers. However, on Linux systems
10+
the Updater will check for updates and notify you when a new version is
11+
available.
12+
13+
Basic Workflow
14+
--------------
15+
16+
The following sections describe how to use the Automatic Updater on different
17+
operating systems.
18+
19+
Windows
20+
^^^^^^^
21+
22+
The Nextcloud client checks for updates and downloads them when available. You
23+
can view the update status under ``Settings -> General -> Updates`` in the
24+
Nextcloud client.
25+
26+
If an update is available, and has been successfully downloaded, the Nextcloud
27+
client starts a silent update prior to its next launch and then restarts
28+
itself. Should the silent update fail, the client offers a manual download.
29+
30+
.. note:: Administrative privileges are required to perform the update.
31+
32+
macOS
33+
^^^^^
34+
35+
The macOS client has an autoupdater which uses the Sparkle framework.
36+
This autoupdater is bundled into the client App Bundle and checks for updates
37+
on launch, notifying you if an update is available. This will present a pop-up
38+
that can let you automatically download and install the latest client update
39+
with one click.
40+
41+
In versions of the client where the Sparkle-based autoupdater is not bundled,
42+
a clickable notification will appear informing of an update being available.
43+
Upon clicking on said notification, the download page for the latest version
44+
of the client will be opened in the system's web browser.
45+
46+
Like on other systems, you can view the update status under
47+
``Settings -> General -> Updates`` in the Nextcloud client.
48+
49+
Linux
50+
^^^^^
51+
52+
Linux distributions provide their own update tools, so Nextcloud clients that use
53+
the Linux operating system do not perform any updates on their own. The client
54+
will inform you (``Settings -> General -> Updates``) when an update is
55+
available.
56+
57+
Preventing Automatic Updates
58+
----------------------------
59+
60+
In controlled environments, such as companies or universities, you might not
61+
want to enable the auto-update mechanism, as it interferes with controlled
62+
deployment tools and policies. To address this case, it is possible to disable
63+
the auto-updater entirely. The following sections describe how to disable the
64+
auto-update mechanism for different operating systems.
65+
66+
Preventing Automatic Updates in Windows Environments
67+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68+
69+
Users may disable automatic updates by adding this line to the [General]
70+
section of their ``nextcloud.cfg`` files::
71+
72+
skipUpdateCheck=true
73+
74+
Windows administrators have more options for preventing automatic updates in
75+
Windows environments by using one of two methods. The first method allows users
76+
to override the automatic update check mechanism, whereas the second method
77+
prevents any manual overrides.
78+
79+
To prevent automatic updates, but allow manual overrides:
80+
81+
1. Edit these Registry keys:
82+
83+
a. (32-bit-Windows) ``HKEY_LOCAL_MACHINE\Software\Nextcloud\Nextcloud``
84+
b. (64-bit-Windows) ``HKEY_LOCAL_MACHINE\Software\Wow6432Node\Nextcloud\Nextcloud``
85+
86+
2. Add the key ``skipUpdateCheck`` (of type DWORD).
87+
88+
3. Specify a value of ``1`` to the machine.
89+
90+
To manually override this key, use the same value in ``HKEY_CURRENT_USER``.
91+
92+
To prevent automatic updates and disallow manual overrides:
93+
94+
.. note:: This is the preferred method of controlling the updater behavior using
95+
Group Policies.
96+
97+
1. Edit this Registry key:
98+
99+
``HKEY_LOCAL_MACHINE\Software\Policies\Nextcloud GmbH\Nextcloud``
100+
101+
2. Add the key ``skipUpdateCheck`` (of type DWORD).
102+
103+
3. Specify a value of ``1`` to the machine.
104+
105+
.. note:: branded clients have different key names
106+
107+
108+
Preventing Automatic Updates in Linux Environments
109+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110+
111+
Because the Linux client does not provide automatic updating functionality, there is no
112+
need to remove the automatic-update check. However, if you want to disable it edit your desktop
113+
client configuration file, ``$HOME/.config/Nextcloud/nextcloud.cfg``.
114+
Add this line to the [General] section::
115+
116+
skipUpdateCheck=true

user_manual/desktop/conflicts.rst

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
=========
2+
Conflicts
3+
=========
4+
5+
Overview
6+
--------
7+
8+
The Nextcloud desktop client uploads local changes and downloads remote changes.
9+
When a file has changed on the local side and on the remote between synchronization
10+
runs the client will be unable to resolve the situation on its own. It will
11+
create a conflict file with the local version, download the remote version and
12+
notify the user that a conflict occurred which needs attention.
13+
14+
Example
15+
-------
16+
17+
Imagine there is a file called ``mydata.txt`` your synchronized folder. It has
18+
not changed for a while and contains the text "contents" locally and remotely.
19+
Now, nearly at the same time you update it locally to say "local contents" while
20+
the file on the server gets updated to contain "remote contents" by someone else.
21+
22+
When attempting to upload your local changes the desktop client will notice that
23+
the server version has also changed. It creates a conflict and you will now have
24+
two files on your local machine:
25+
26+
- ``mydata.txt`` containing "remote contents"
27+
- ``mydata (conflicted copy 2018-04-10 093612).txt`` containing "local contents"
28+
29+
In this situation the file ``mydata.txt`` has the remote changes (and will continue
30+
to be updated with further remote changes when they happen), but your local
31+
adjustments have not been sent to the server (unless the server enables conflict
32+
uploading, see below).
33+
34+
The desktop client notifies you of this situation via system notifications, the
35+
system tray icon and a yellow "unresolved conflicts" badge in the account settings
36+
window. Clicking this badge shows a list that includes the unresolved conflicts
37+
and clicking one of them opens an explorer window pointing at the relevant file.
38+
39+
To resolve this conflict, open both files, compare the differences and copy your
40+
local changes from the "conflicted copy" file into the base file where applicable.
41+
In this example you might change ``mydata.txt`` to say "local and remote contents"
42+
and delete the file with "conflicted copy" in its name. With that, the conflict
43+
is resolved.
44+
45+
Uploading conflicts (experimental)
46+
----------------------------------
47+
48+
By default the conflict file (the file with "conflicted copy" in its name that
49+
contains your local conflicting changes) is not uploaded to the server. The idea
50+
is that you, the author of the changes, are the best person for resolving the
51+
conflict and showing the conflict to other users might create confusion.
52+
53+
However, in some scenarios it makes a lot of sense to upload these conflicting
54+
changes such that local work can become visible even if the conflict won't be
55+
resolved immediately.
56+
57+
In the future there might be a server-wide switch for this behavior. For now it
58+
can already be tested by setting the environment variable
59+
``OWNCLOUD_UPLOAD_CONFLICT_FILES=1``.

user_manual/desktop/faq.rst

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
===
2+
FAQ
3+
===
4+
5+
How the "Edit locally" functionality works
6+
------------------------------------------
7+
This functionality depends on the desktop client ability to register the mime to handle the nc:// scheme. That is the handler used by the server to open a file locally. This will allow the desktop client to open a document with the local editor when you click on the option "Edit locally" in your Nextcloud instance.
8+
9+
.. note::
10+
Without properly registering the mime, independent of the browser and distro being used, the desktop client will fail to open a document with the local editor when you click on the option "Edit locally" in your Nextcloud instance.
11+
12+
The browser will warn you of the failure: "Failed to launch 'nc://...' because the scheme does not have a registered handler."
13+
14+
How to enable it
15+
^^^^^^^^^^^^^^^^^
16+
17+
In order to do that, you need to install the desktop client with the MSI installer on Windows or use a third party software to integrate the AppImage in your system on Linux.
18+
19+
On Linux
20+
^^^^^^^^
21+
22+
We use AppImage due to its universal compatibility but to take full advantage of the desktop client features you will need a third part software to integrate the AppImage in your system: we have tested `AppImageLauncher <https://github.com/TheAssassin/AppImageLauncher>`_ and alternatively there is `Go AppImage <https://github.com/probonopd/go-appimage>`_.
23+
24+
On Windows
25+
^^^^^^^^^^
26+
27+
The MSI installer will alter your system registry to register the mime to handle the nc:// scheme.
28+
29+
Alternatively, you can manually register the mime to handle the nc:// scheme:
30+
31+
1. Save the following content to a .reg file:
32+
33+
.. code-block:: none
34+
35+
Windows Registry Editor Version 5.00
36+
37+
[HKEY_CLASSES_ROOT\nc\shell\open\command]
38+
@="\"C:\\Program Files\\Nextcloud\\nextcloud.exe\" \"%1\""
39+
40+
2. Double click on the .reg file to import it into the registry.
41+
42+
See https://nextcloud.com/blog/nextcloud-office-release-solves-document-compatibility-overhauls-knowledge-management/ for more information.
43+
44+
Some Files Are Continuously Uploaded to the Server, Even When They Are Not Modified.
45+
------------------------------------------------------------------------------------
46+
47+
It is possible that another program is changing the modification date of the file.
48+
If the file is uses the ``.eml`` extension, Windows automatically and
49+
continually changes all files, unless you remove
50+
``\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PropertySystem\PropertyHandlers``
51+
from the windows registry.
52+
See http://petersteier.wordpress.com/2011/10/22/windows-indexer-changes-modification-dates-of-eml-files/ for more information.
53+
54+
Syncing Stops When Attempting To Sync Deeper Than 100 Sub-directories.
55+
----------------------------------------------------------------------
56+
57+
The sync client has been intentionally limited to sync no deeper than 100
58+
sub-directories. The hard limit exists to guard against bugs with cycles
59+
like symbolic link loops.
60+
When a deeply nested directory is excluded from synchronization it will be
61+
listed with other ignored files and directories in the "Not synced" tab of
62+
the "Activity" pane.
63+
64+
There Was A Warning About Changes In Synchronized Folders Not Being Tracked Reliably.
65+
-------------------------------------------------------------------------------------
66+
67+
On linux when the synchronized folder contains very many subfolders the
68+
operating system may not allow for enough inotify watches to monitor the
69+
changes in all of them.
70+
71+
In this case the client will not be able to immediately start the
72+
synchronization process when a file in one of the unmonitored folders changes.
73+
Instead, the client will show the warning and manually scan folders for changes
74+
in a regular interval (two hours by default).
75+
76+
This problem can be solved by setting the fs.inotify.max_user_watches
77+
sysctl to a higher value. This can usually be done either temporarily::
78+
79+
echo 524288 > /proc/sys/fs/inotify/max_user_watches
80+
81+
or permanently by adjusting ``/etc/sysctl.conf``.
82+
83+
I Want To Move My Local Sync Folder
84+
-----------------------------------
85+
86+
The Nextcloud desktop client does not provide a way to change the local sync directory.
87+
However, it can be done, though it is a bit unorthodox.
88+
Specifically, you have to:
89+
90+
1. Remove the existing connection which syncs to the wrong directory
91+
2. Add a new connection which syncs to the desired directory
92+
93+
.. figure:: images/setup/remove.png
94+
:alt: Remove an existing connection
95+
96+
To do so, in the client UI, which you can see above, click the "**Account**" drop-down menu and then click "Remove".
97+
This will display a "**Confirm Account Removal**" dialog window.
98+
99+
.. figure:: images/setup/confirm.png
100+
:alt: Remove existing connection confirmation dialog
101+
102+
If you're sure, click "**Remove connection**".
103+
104+
Then, click the Account drop-down menu again, and this time click "**Add new**".
105+
106+
.. figure:: images/setup/wizard.png
107+
:alt: Replacement connection wizard
108+
109+
This opens the Nextcloud Connection Wizard, which you can see above, *but* with an extra option.
110+
This option provides the ability to either: keep the existing data (synced by the previous connection) or to start a clean sync (erasing the existing data).
111+
112+
.. important::
113+
114+
Be careful before choosing the "Start a clean sync" option. The old sync folder *may* contain a considerable amount of data, ranging into the gigabytes or terabytes. If it does, after the client creates the new connection, it will have to download **all** of that information again. Instead, first move or copy the old local sync folder, containing a copy of the existing files, to the new location. Then, when creating the new connection choose "*keep existing data*" instead. The Nextcloud client will check the files in the newly-added sync folder and find that they match what is on the server and not need to download anything.
115+
116+
Make your choice and click "**Connect...**".
117+
This will then step you through the Connection Wizard, just as you did when you setup the previous sync connection, but giving you the opportunity to choose a new sync directory.
Loading
1.13 KB
Loading
1.11 KB
Loading
997 Bytes
Loading
980 Bytes
Loading
1.78 KB
Loading

user_manual/desktop/images/icon.png

1.19 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
20.7 KB
Loading
Loading
25.5 KB
Loading
35.4 KB
Loading
105 KB
Loading
128 KB
Loading
160 KB
Loading
Loading
13.1 KB
Loading
6.6 KB
Loading
Loading
Loading
21.5 KB
Loading
11.8 KB
Loading
15.4 KB
Loading
15.9 KB
Loading

user_manual/desktop/index.rst

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@
22
Desktop Clients
33
===============
44

5-
You can share one or more files and folders on your computer, and synchronize
6-
them with your Nextcloud server. Place files in your local shared directories,
7-
and those files are immediately synchronized to the server and to other devices
8-
using the Nextcloud Desktop Sync Client, Android app, or iOS app. To
9-
learn more about the Nextcloud desktop client, please refer to:
5+
Available for Windows, macOS, and various Linux distributions, the Nextcloud
6+
Desktop Sync client enables you to:
107

8+
- Specify one or more directories on your computer that you want to synchronize
9+
to the Nextcloud server.
10+
- Always have the latest files synchronized, wherever they are located.
11+
12+
Your files are always automatically synchronized between your Nextcloud server, computer and mobile device.
13+
14+
You can find the old documentation here:
1115
* `Nextcloud Desktop Client`_
1216

1317
.. _`Nextcloud Desktop Client`: https://docs.nextcloud.com/desktop/latest/
18+
19+
20+
.. toctree::
21+
:maxdepth: 1
22+
23+
installation
24+
usage
25+
macosvfs
26+
autoupdate
27+
conflicts
28+
faq

0 commit comments

Comments
 (0)