Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2014 15:24:50 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xwindow advise needed
Message-ID:  <20141231142450.GA88804@slackbox.erewhon.home>
In-Reply-To: <20141231102627.c66b098b.freebsd@edvax.de>
References:  <55358.128.135.70.2.1419874589.squirrel@cosmo.uchicago.edu> <20141229235045.b8156cdf.freebsd@edvax.de> <alpine.BSF.2.11.1412292017100.13536@wonkity.com> <20141231044147.fe7a9983.freebsd@edvax.de> <20141231090208.GA23105@slackbox.erewhon.home> <20141231102627.c66b098b.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 31, 2014 at 10:26:27AM +0100, Polytropon wrote:
> On Wed, 31 Dec 2014 10:02:08 +0100, Roland Smith wrote:
> > On Wed, Dec 31, 2014 at 04:41:47AM +0100, Polytropon wrote:
> > > On Mon, 29 Dec 2014 20:25:53 -0700 (MST), Warren Block wrote:
> > > > On Mon, 29 Dec 2014, Polytropon wrote:
> > > > >
> > > > > For a long time, Xfce has been considered the "less fatty
> > > > > desktop" in comparison to the "big players" Gnome and KDE.
> > > > > But with the growing incompatibilities btweeen FreeBSD and
> > > > > Linux (the system Xfce is primarily being developed on and
> > > > > for), you might experience missing functionality.
> > > >=20
> > > > I use xfce.  The only thing that does not work on FreeBSD, as far a=
s I=20
> > > > know, is automounting.  There are other ways to do that.  I just=20
> > > > manually mount stuff.  Otherwise, xfce has the standard desktop fea=
tures=20
> > > > without being resource-hungry or having a huge list of dependencies.
> > >=20
> > > The problem is not the automounter itself. It's its
> > > integration with the GUI elements, in two ways:
> > >=20
> > > 1st, when the automounter mounts a device which has
> > > been appearing, either by a label or by a device name,
> > > this new mountpoint must be "picked up" by the GUI
> > > and be shown on the desktop.
> >=20
> > It was my impression that the new automount/autofs in 10.1 does *not* d=
o that.
> > AFAICT it tries to mount a filesystem when a directory is accessed.
> > Which is nice for say NFS or SMBFS, but doesn't cater to the common use=
 of
> > using a memstick.
>=20
> As far as I remember, the system's amd itsel (not the=20
> "automounter" port) is intended for exactly that task,
> and primary targeting the use of NFS. It's not intended
> primarily for the use with removable media, but _can_
> be used for that task.
>=20
> The different approach via devd (in Linux: based on
> HAL and DBus, now deprecated, replaced by udisk et al.,
> probably on the road to deprecation, replaced by kdbus)
> is that if a matching device appears, the device is
> being identified and mounted. A notification is then
> provided in some way, for example via FAM (file alteration
> monitor) that watches the mountpoint root directory
> (for example /media) for a new entry, causing the GUI
> to display an icon shortcut, with a context menu entry
> of matching actions (like unmount). As there is no
> "timeout", unmounting has to be ordered manually,
> either by point & click, or via command line.
>=20
> Today's automatical mounts have become a great mystery
> to me, I don't entirely understand which parts are involved
> in which way, and how they work, or why they work, so
> I'd be happy about a working solution for the settings
> where this is an "urgent" requirement... :-)

The sysutils/automount shell-script
(https://github.com/vermaden/automount/blob/master/automount)
is activated via devd, latching on to DEVFS CREATE and DESTROY events, see:
https://github.com/vermaden/automount/blob/master/automount_devd.conf.

The script can handle all natively supported filesystems as well as some th=
at
are provided by FUSE (such as NTFS, ext4 and exfat).

If you read the script, it is not that difficult to follow.Since I prefer a
plain window manager to a desktop environment (=E2=80=9CDE=E2=80=9D), I cou=
ldn't say what the
effort would be to integrate it with a DE. Adding on-screen notifications v=
ia
libnotify's ``notify-send`` was pretty easy.


Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAABAgAGBQJUpAcyAAoJEED21dyjijPgX1wP/A1SgPwHll3JP+qhZRoxBBZ0
PZgjwEsaxu8RPEYx1ozrMtMcGiUAMLs1/al9HrceFKYHNufjcp09wM9NsSzEWWf0
NULlmQ2RnsWgXIPH7zZXtQ+1o8Sr+y2zEXHbPD1Y9uUMXIT4lqzBMVp+LRYYEv0r
Ol5IpbGhDvW8/upGrJyOxC3pcY61Msq3jkbyJIvIzGO7EBT3ktEitz5Sh6m78Tu3
Os6yV4TV9wYHub3ITOm0VAswpQM8R6xrfXUkociW0ZlSJAr5bFoBLZ4t27qDCgVO
sH4pSYiLUQXYHRgOOYVEwIrr4ipjHgbJZotQXkU6Pd79JN1qUYI12Wn0xBkhZpNl
4WkYeDm8407iNdPIm2Ccp+F4B6GUjBPwPOztwE6YqtKEcPWCva3rhjkFfOgp0FNW
C28JrRJz+nxTaPzcnTvHIwJHqwLxf4vtPEIe5T+uflu4wpZlyIXEig9hJbBmxWio
g/pcG//I1wBQfJ6yQiTN9VzGhVpEmMh/mhLHqRkTqReETEWTZ3sudDNBGjBA8CBc
yPleNrugOGOkpwhPrQiesZQqk4cmbUPxEzBBOtBXo3jHwoMJ+hFSeX8CqqpzpdVY
14jC1/7j+UHs/jjTYNz/GaPmf+U+vPaIPpqsSQp1rxpvOVvhpspC10faVjeC5qLT
LPsW1Aok8n1d97gyMFyK
=AYSj
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141231142450.GA88804>