From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QREgJ-0008Mm-Kq for garchives@archives.gentoo.org; Tue, 31 May 2011 02:27:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5CCF61C0AE; Tue, 31 May 2011 02:26:16 +0000 (UTC) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 066B61C0AE for ; Tue, 31 May 2011 02:26:15 +0000 (UTC) Received: by bwg12 with SMTP id 12so4586559bwg.40 for ; Mon, 30 May 2011 19:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=KisOwXZAMaIwrJXDbCOOTGu2duJbswhzCMC1wSNpvTU=; b=kSrw41H7plSpoV0/lGzsfsVumOSQRGObw6JeNblESv3znvc8y6+RpoFkDqhr8lcFgf FGco4u5CcphnZ1JJ1Y4Bgm76VHCcqopREYjkcVYRtsjyZnH0P0Jds2p5PBUjxPgikzGN kOr81gkMaUdwHiqg58T/QKA0ntlpFvVYSkEeo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=mxFzZCffopGA9ywOgGCRvvER/rttPtK4NjQWrVf4m2HMkDu/TG+ZQ8w6uhfH3ZgxXp dzInZqXrN4HPj0ob5jbneh09kNvhclZWIXxbqMS3kVy0gvO05NnS8Twxbaq9XEs9Tkcj zCACpbVcnSlbmdQp+cjZVz8yc6CCButl/H9kE= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.81.196 with SMTP id y4mr4914508bkk.111.1306808775038; Mon, 30 May 2011 19:26:15 -0700 (PDT) Received: by 10.204.114.193 with HTTP; Mon, 30 May 2011 19:26:14 -0700 (PDT) In-Reply-To: <201105301233.02522.alan.mckinnon@gmail.com> References: <20110529204905.GA5736@acm.acm> <201105292356.10969.alan.mckinnon@gmail.com> <20110530101021.GA3749@acm.acm> <201105301233.02522.alan.mckinnon@gmail.com> Date: Mon, 30 May 2011 22:26:14 -0400 Message-ID: Subject: Re: [gentoo-user] How do I eject an audio CD inside Gnome? From: daid kahl To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5c8cec6c14cc94c9c616409738b59be7 >> > I can't be of much more help to you, I don't use Gnome at all (see abo= ve) >> >> Can't say I blame you. =A0What's the choice, though? =A0I appreciate the >> spare uncluttered desktop of Gnome. =A0Last time I tried KDE (about 7 ye= ars >> ago) it was anything but uncluttered. =A0I tried XFCE briefly, but could= n't >> get it to run stably. =A0Besides, it was missing an application to switc= h >> between keyboard layouts, something I absolutely need. > > I hear good things about XFCE these days. If you haven't tried it lately,= it > might be worth a new look. And you can always write a small script to cha= nge > your keyboard layout if there's no gui app. Not as convenient as a systra= y > icon, but probably a small price to pay if everything else suits your nee= ds > My basic response was in fact that I now use XFCE, and I basically do not have any auto-mounting software even installed. I don't mind mounting and umounting manually for some stuff, and then using udev rules and scripts for like my regular USB items (harddisks, flash memory...). So yeah, you go mount the CD yourself, but then the eject button will work if you just set up a script in the very worst case, as long as all permissions are satisfied (group, whatever). Usually an eject call on the device will work fine for the hotkey. Just use some keyboard tweaking program to fix it up. And for me that's just fine. Other people may prefer it differently. But auto-mounting will do annoying stuff on my laptop every time it goes to sleep and wakes up and...it's just annoying to me personally. If you don't have much experience setting up you own custom 'automonting' tools, I'll give just a couple examples. I think with the comments it's clear enough. daid@titan ~ % cat /etc/udev/rules.d/10-local.rules # external USB, Seagate FreeAgent GO aka cyclops SUBSYSTEMS=3D=3D"usb", DRIVERS=3D=3D"usb", ATTRS{serial}=3D=3D" 5LZ2XQJ5", SYMLINK+=3D"cyclops" ACTION=3D=3D"add", RUN+=3D"/etc/udev/scripts/mount_cyclops.sh" daid@titan ~ % more /etc/udev/scripts/mount_cyclops.sh #!/bin/bash #mount Seagate FreeAgent Go with serial 5LZ2XQJ5 to /mnt/cyclops on ACTION= =3D'add' mount -t ext3 /dev/cyclops /mnt/cyclops chown root:users /mnt/cyclops chmod 775 /mnt/cyclops daid@titan ~ % ls -l /etc/udev/scripts/mount_cyclops.sh -rwxr--r-- 1 root root 186 Apr 27 04:21 /etc/udev/scripts/mount_cyclops.sh daid@titan ~ % ls -l /etc/udev/rules.d/10-local.rules -rw-r--r-- 1 root root 1409 May 25 13:43 /etc/udev/rules.d/10-local.rules The udev rule will do a tricky thing making the /dev/cyclops symlink so it doesn't matter what *order* the device was connected. Rather than 'naming' it like in some other operating systems, you just give it a static mount point. When you're done, just manually umount the mount point. Cheers, daid