From: Danny Milosavljevic <dannym@scratchpost.org>
To: 35584@debbugs.gnu.org
Cc: raghavgururajan@disroot.org, luis.felipe.la@protonmail.com
Subject: bug#35584: CD/DVD does not work
Date: Wed, 29 Jul 2020 15:18:49 +0200 [thread overview]
Message-ID: <20200729151849.084ac748@scratchpost.org> (raw)
In-Reply-To: <AZCGxCSn22wfzWlkCYXFgOY6376tUGSNgMtxsf2Vvvs-n9VbciDvBYnyZzhXaxNp-Ejd3RpmzgnYWwhG1nbBTfcWg1F1j4uyZAnBvV9fTnc=@protonmail.com>
[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]
Hi,
On Wed, 29 Jul 2020 00:15:39 +0000
Luis Felipe via Bug reports for GNU Guix <bug-guix@gnu.org> wrote:
> There is one thing I hadn't noticed before, though. If I insert a DVD while I'm in a GNOME session, it doesn't work (that's the bug), but if I reboot with the DVD still in, log in to GNOME and open Nautilus, the DVD is listed and it works correctly. After doing this, if I extract the DVD and insert it again, it still doesn't work.
Checking nautilus sources, it uses GVolumeMonitor which is part of glib (gio).
That uses GUnixMountMonitor, and that checks /proc/mounts and fstab.
fstab is found like this:
static char *
get_fstab_file (void)
{
#ifdef HAVE_LIBMOUNT
return (char *) mnt_get_fstab_path ();
#else
#if defined(HAVE_SYS_MNTCTL_H) && defined(HAVE_SYS_VMOUNT_H) && defined(HAVE_SYS_VFS_H)
/* AIX */
return "/etc/filesystems";
#elif defined(_PATH_MNTTAB)
return _PATH_MNTTAB;
#elif defined(VFSTAB)
return VFSTAB;
#else
return "/etc/fstab";
#endif
#endif
}
libmount is part of util-linux, which has:
/**
* mnt_get_fstab_path:
*
* Returns: path to /etc/fstab or $LIBMOUNT_FSTAB.
*/
const char *mnt_get_fstab_path(void)
{
const char *p = safe_getenv("LIBMOUNT_FSTAB");
return p ? : _PATH_MNTTAB;
}
In order to debug this problem, please try setting the environment variable
before starting nautilus, like this:
killall nautilus
export LIBMOUNT_FSTAB=/etc/fstab
nautilus
Then check whether detecting changes in CD/DVD state work fine like this.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-07-29 13:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-05 16:52 bug#35584: CD/DVD does not work sirgazil
2019-05-05 18:11 ` pelzflorian (Florian Pelz)
2019-05-05 20:17 ` Ricardo Wurmus
2019-05-11 20:23 ` Pierre Neidhardt
2019-11-04 23:05 ` sirgazil via Bug reports for GNU Guix
2020-07-29 0:15 ` Luis Felipe via Bug reports for GNU Guix
2020-07-29 13:18 ` Danny Milosavljevic [this message]
2020-07-29 13:42 ` Luis Felipe via Bug reports for GNU Guix
2020-12-08 15:56 ` Luis Felipe via Bug reports for GNU Guix
2021-03-25 19:45 ` bug#35584: CDs and DVDs aren't auto-mounted raingloom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200729151849.084ac748@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=35584@debbugs.gnu.org \
--cc=luis.felipe.la@protonmail.com \
--cc=raghavgururajan@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).