mate-desktop / mate-user-share Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
mate-user-share is a small package that binds together various free software projects to bring easy to use user-level file sharing to the masses. The program is meant to run in the background when the user is logged in, and when file sharing is enabled a webdav server is started that shares the $HOME/Public folder. The share is then published to all computers on the local network using mDNS/rendezvous, so that it shows up in the Network location in Gnome. The dav server used is apache, so you need that installed. Avahi or Howl is used for mDNS support, so you need to have that installed and mDNSResolver running.
Orginal report at fedora bugzilla.
https://bugzilla.redhat.com/show_bug.cgi?id=1013385
see all details at fedora bugzilla.
In short, without setting a password to access the share folder, connecting to this folder fails.
no-manual-page-for-binary mate-file-share-properties
Each executable in standard binary directories should have a man page.
For some odd reason this package crashes the desktop when trying to access ~/Downloads folder or a symlink with the name Downloads that point to some directory.
The desktop or file manager to be more precise (caja) restarts but every window that was opened in caja does not reopen.
No other folder or symlink do that, or if I rename "Downloads" to "Download" or "downloads" the file manager doesn't crash upon opening the folder, it has to do something with the name "Downloads"...
$HOME/Downloads is not a bookmark BTW.
If I open ~/Downloads with thunar on mate-desktop nothing happens...
I even created a new user and tested it to be sure that is not related to some odd config...
~/.xsession-errors doesn't say anything...
The permissions are fine, I even created the folder manually and after with xdg-user-dirs and logout - login and still the same.
No matter how I open the "Downloads" folder/symlink to a directory, be it double click, context menu > Open in New Tab or Open in New Window...
I've managed to reproduce the bug on virtualbox with archlinux but I can't be sure if it's present on other distros (with the latest packages).
I first installed (on arch-virtualbox) the mate group "pacman -S mate" then saw that everything was fine and caja didn't crashed, then installed the extra packages with "pacman -S mate-extra" and caja crashed when opening ~/Downloads.
So I knew that some package in "mate-extra" was to blame so I removed them one by one...
After removing mate-user-share the desktop crashes once maybe because it was still loaded in memory but after that everything was ok, no more crashes.
Culprit found :D
Xmas morning and I'm writing novels ... I mean reporting bugs... haha.
At the moment, files via bluetooth recieving to the hard-coded folder ~/Downloads. It's will be good to take location of folder via xdg, because in various localizations it is called by the different names.
In short, mate-user-share doesn't work on port 80, which everybody would expected.
It doesn't use a any pre-defined port but a random port (from range 32768-65535).
This behaviour makes it impossible to handle by a firewall.
see https://bugzilla.redhat.com/show_bug.cgi?id=1018204
https://bugzilla.redhat.com/show_bug.cgi?id=1013385#c17
Same with old versions of gnome-user-share, see
https://bugzilla.redhat.com/show_bug.cgi?id=179187#c23
https://bugzilla.gnome.org/show_bug.cgi?id=336201#c5
It seems that gnome found a solution, but i didn't really understand how this work.
For me using a system without a firewall is a huge security risk nowadays,
which prevent me to bring in the package to rhel7.
Debian has raised the following bug:
This MATE component needs migrating to GtkApplication:
Selecting only "Receive files over bluetooth" doesn't work.
It needs the first option (share files over network)
If i install/uninstall this new package i get an minor rpm scriptlet output error.
In /etc/xdg/autostart/mate-user-share.desktop are two entries with gconf instead of expected mateconf.
Changing gconf to mateconf in mate-user-share/data/desktop_mate_file_sharing.schemas.in fix the error.
mate-user-share/data/dav_user_2.4.conf
Line 11 in 4e4027f
apache2: Syntax error on line 11 of /usr/share/mate-user-share/dav_user_2.4.conf: module unixd_module is built-in and can't be loaded
spawning httpd failed
I: mate-user-share: desktop-entry-lacks-keywords-entry usr/share/applications/mate-user-share-properties.desktop
N:
N: This .desktop file does either not contain a "Keywords" entry or it does
N: not contain any keywords not already present in the "Name" or
N: "GenericName" entries.
N:
N: .desktop files are organized in key/value pairs (similar to .ini files).
N: "Keywords" is the name of the entry/key in the .desktop file containing
N: keywords relevant for this .desktop file.
N:
N: The desktop-file-validate tool in the desktop-file-utils package is
N: useful for checking the syntax of desktop entries.
N:
N: Refer to
N: http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html,
N: http://bugs.debian.org/693918, and
N: https://wiki.gnome.org/Initiatives/GnomeGoals/DesktopFileKeywords for
N: details.
N:
N: Severity: wishlist, Certainty: certain
N:
N: Check: menu-format, Type: binary
N:
Intact *.desktop files in /etc/xdg/autostart/
OnlyShowIn= key gets appended to Categories= key and thus "disables" OnlyShowIn= field. Consequently, mate-user-share-*.desktop application get launched in every other desktop env installed on the system
Launch non-MATE desktop env, inspect /etc/xdg/autostart/mate-user-share*.desktop
1.24
1.24.0-1
Debian
After last update from branch, bluetooth file receiving was broken. I haven't add any log files, because doesn't know where it are. I'll show it to you if you say where i can get it.
mate-bluetooth version is 1.4.0-1
Hi,
This bit here:
https://github.com/mate-desktop/mate-user-share/blob/master/src/user_share.c#L376
is very weird and won't make GCC very happy either:
user_share.c: In function 'main':
user_share.c:376:16: warning: type defaults to 'int' in declaration of 'x_fd' [-Wimplicit-int]
G_GNUC_UNUSED x_fd;
^
I don't know what the point of an unused local variable is, but an unused local variable without a type is certainly worse.
Best,
Michael
Like it's done in the caja-extensions repo.
@stefano-k: since the fix for GLib issue needs to make it to 1.8.x releases, please create 1.8 branch in this repo from 191f78c.
After that, #29 should be merged there. It's release critical for a new 1.8 tarball as agreed with @flexiondotorg.
Hi,
in the debian/ folder obtained from mate-desktop/debian-packages there was a patch file provided originally authored by Steve Zesch [1].
I have kept this patch and also spread it out to the Apache2.4 config file [2].
Please considering, applying that patch upstream (or tell me to drop the patch from the mate-user-share Debian package).
Thanks!
Mike
Arch Linux current (not testing). MATE from official repo.
:::/usr/lib/mate-applets/mate-user-share
** (mate-user-share:19168): WARNING **: Couldn't request the name: Unable to lookup session information for process '19168'
(mate-user-share:19168): GLib-GIO-CRITICAL **: g_settings_get_value: assertion `G_IS_SETTINGS (settings)' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_get_boolean: assertion `g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed
(mate-user-share:19168): GLib-GIO-CRITICAL **: g_settings_get_value: assertion `G_IS_SETTINGS (settings)' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_get_type: assertion `value != NULL' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion `g_variant_type_check (type)' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_get_boolean: assertion `g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)' failed
(mate-user-share:19168): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed
Version 1.6.0-1
Could this be replaced with a dependency on blueman ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.