summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* client: Prevent socket leaks if socket dir is inaccessiblewip/oholy/admin-fixesOndrej Holy2021-03-311-13/+75
| | | | | | | | | | | | | GVfs fallbacks to session bus if it is not possible to establish peer-to-peer connection (e.g. inside Flatpak sandbox). However, the DBus server is not terminated and the socket is leaked. The named sockets are counted as open files, so it can easily lead to "Too many open files" errors. Let's fallback to the session bus immediately if the socket dir is not accessible to prevent the leaks. This should fix the most common case, when the sockets are leaked. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/542
* admin: Fail when peer credentials are not availableOndrej Holy2021-03-311-0/+9
| | | | | | | | | Currently, critical errors are printed when peer credentials aren't available (i.e. session bus fallback is used). Let's return an error immediately to prevent the criticals. Also add warning with suggestion to allow `--filesystem=xdg-run/gvfsd` access. https://gitlab.gnome.org/GNOME/gvfs/-/issues/305
* admin: Pass also XDG_RUNTIME_DIR to pkexec environmentOndrej Holy2021-03-312-1/+6
| | | | | | | | | | | Recently, GVfs switched from abstract sockets to named sockets. The sockets are created in the `XDG_RUNTIME_DIR` directory. This directory is not unfortunatelly set for `gvfsd-admin` and thus the root's cache dir is used instead, which is wrong. Let's pass the `XDG_RUNTIME_DIR` environment variable to the `pkexec` environment similarly to `DBUS_SESSION_BUS_ADDRESS`. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/552
* daemon: Fix socket owner for gvfsd-adminOndrej Holy2021-03-311-0/+13
| | | | | | | | | | Recently, GVfs switched from abstract sockets to named sockets. The named sockets honors file permissions and thus the socket owner is root in the case `gvfsd-admin`. This obviously prevents client from connecting. Let's change the owner to the value of `PKEXEC_UID` to ensure that the socket is usable by the client. https://gitlab.gnome.org/GNOME/gvfs/-/issues/552
* daemon: Create socket dir from gvfsd daemonOndrej Holy2021-03-304-2/+14
| | | | | | | | | | | Recently, GVfs switched from abstract sockets to named sockets. The socket dir is currently created by the individual daemons immediately before starting DBus server. If gvfsd-admin is started at first, the socket dir is owned by root user and thus it isn't accesible for other daemons and clients. Let's create the socket dir early from the gvfsd daemon to ensure correct ownership. https://gitlab.gnome.org/GNOME/gvfs/-/issues/552
* daemon: Remove connection socket properlyJan Alexander Steffens (heftig)2021-03-241-67/+28
| | | | | | | | | | The naming scheme for the non-abstract socket was changed but `new_connection_data_free` was not adjusted to match. `GDBusServer` will remove the socket when it stops, but only if `g_dbus_server_start` was called. So we can simplify the process somewhat. Also don't bother removing the directory now that all sockets share it.
* Update Vietnamese translationNgọc Quân Trần2021-03-231-325/+410
|
* udisks2: Report unmount progress after showing blocking processesDamjan Jovanovic2021-03-191-11/+3
| | | | | | | | | | | | | | | The "show-unmount-progress" signal isn't emitted when unmounting is successful while the "show-processes" dialog is open. The "aborted" signal is sent to close the dialog, not to indicate an error, and shouldn't be taken into consideration when deciding whether to emit "show-unmount-progress". Further details on the bug report. Get gvfs_udisks2_unmount_notify_stop() to send "show-unmount-progress" whether there was a prior "aborted" or not. Closes https://gitlab.gnome.org/GNOME/gvfs/-/issues/546
* Post release version bumpOndrej Holy2021-03-191-1/+1
|
* Update NEWS for 1.48.0 release1.48.0Ondrej Holy2021-03-191-0/+4
|
* Update Italian translationMilo Casagrande2021-03-151-397/+482
|
* Update Norwegian Bokmål translationKjartan Maraas2021-03-131-339/+419
|
* Post release version bumpOndrej Holy2021-03-121-1/+1
|
* Update NEWS for 1.47.91 release1.47.91Ondrej Holy2021-03-121-0/+4
|
* Update Kazakh translationBaurzhan Muftakhidinov2021-03-111-358/+444
|
* Update Friulian translationFabio Tomat2021-03-101-141/+154
|
* Update Catalan translationJordi Mas2021-03-091-84/+81
|
* Update Finnish translationJiri Grönroos2021-03-091-54/+44
|
* Update French translationCharles Monzat2021-03-091-406/+496
|
* Updated Czech translationMarek Černocký2021-03-081-77/+89
|
* Update Catalan translationJordi Mas2021-03-071-353/+417
|
* Update Polish translationPiotr Drąg2021-03-071-399/+485
|
* Update British English translationZander Brown2021-03-071-402/+532
|
* Update Korean translationChangwoo Ryu2021-03-061-417/+482
|
* Update German translationPhilipp Kiemle2021-02-261-81/+92
|
* Update Indonesian translationKukuh Syafaat2021-02-261-403/+500
|
* Update Finnish translationJiri Grönroos2021-02-251-416/+538
|
* Update Portuguese translationHugo Carvalho2021-02-241-145/+155
|
* admin: Fix typo in .rules fileRené Genz2021-02-241-1/+1
| | | | | The comment in the .rules file contains `another prompts` phrase which is wrong. Let's use `another prompt` instead of it.
* Update Galician translationFran Dieguez2021-02-241-20/+19
|
* Updated Danish translationAsk Hjorth Larsen2021-02-231-3036/+2251
|
* Updated Lithuanian translationAurimas Černius2021-02-211-176/+155
|
* Update Basque translationAsier Sarasua Garmendia2021-02-201-144/+154
|
* Update Slovenian translationMatej Urbančič2021-02-181-78/+88
|
* Update Brazilian Portuguese translationRafael Fontenelle2021-02-181-144/+155
|
* Update German translationPhilipp Kiemle2021-02-161-307/+383
|
* Update Turkish translationEmin Tufan Çetin2021-02-151-80/+90
|
* Updated Spanish translationDaniel Mustieles2021-02-151-110/+89
|
* Update Hungarian translationBalázs Úr2021-02-141-406/+540
|
* Update Swedish translationAnders Jonsson2021-02-131-144/+154
|
* Update Romanian translationDaniel Șerbănescu2021-02-131-144/+154
|
* Update Galician translationFran Dieguez2021-02-121-176/+156
|
* Post release version bumpOndrej Holy2021-02-121-1/+1
|
* Update NEWS for 1.47.90 release1.47.90Ondrej Holy2021-02-122-1/+10
|
* Update Ukrainian translationYuri Chornoivan2021-02-121-177/+159
|
* google: Add Shared drives folderOndrej Holy2021-02-121-13/+146
| | | | | | | | Currently, it is not possible to browse files available over Shared drives (formerly Team drives). Let's add Shared drives folder to the root to make them available. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/377
* google: Set G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE and _READ attributesOndrej Holy2021-02-121-0/+4
| | | | | | The G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE and G_FILE_ATTRIBUTE_ACCESS_CAN_READ attributes are not set currently. Let's use the newly added libgdata API to set them.
* google: Provide volatile entries for old URIsOndrej Holy2021-02-121-2/+20
| | | | | | The My Drive folder was added to the root, which changed URIs from /file-id to /root-id/file-id. Let's provide volatile entries in the old locations to not break user bookmarks...
* google: Add Shared with me folderOndrej Holy2021-02-122-33/+192
| | | | | | | | Currently, it is not possible to browse files which are shared with the user (the Shared with me folder on the web). Let's add My Drive and Shared with me folder to the root to make them available. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/444
* google: Increase number of results in batches for better performanceOndrej Holy2021-02-121-3/+1
| | | | | | | | | Currently, only 50 results are returned in one batch, which means that multiple network requests are needed for folders with a lot files, which makes it slow. I am not sure there was some reason for this limitation earlier (e.g. before the cache rework), however, I don't see any rationals for it currently. Let's increase this to its maximum for better performance.