LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   plugdev & xfce without desktop icons (https://www.linuxquestions.org/questions/slackware-14/plugdev-and-xfce-without-desktop-icons-570764/)

cmk77 07-19-2007 02:55 PM

plugdev & xfce without desktop icons
 
After making the changes suggested in the sticky about HAL, I could plug in my usb stick and a desktop icon would appear, which could be mounted etc... So far so good. Checking the media directory it turned out to be called /media/disk.

Now I disabled the desktop icons ('Desktop Icons none' in Desktop preferences of XFCE). This seems to disable the whole thing:

Code:

bash-3.1$ mount /media/disk
mount: can't find /media/disk in /etc/fstab or /etc/mtab
bash-3.1$ mount /dev/sda1 /media/disk
mount: only root can do that

The problem is not the mounting of the usb stick. I just want to understand why this happens. Could anyone explain?

I like the idea of having a mount point created automagically for whatever I plug in and being able to mount it as user instead of root; I just don't want to click on some desktop icon...

MS3FGX 07-20-2007 08:41 AM

As I understand it, you need to have Thunar running for automounting to work under XFCE. Since Thunar handles the desktop, if the desktop is disabled, Thunar is not running. You can test this by starting Thunar and then plugging in a USB device, you should see it get mounted in Thunar's left panel.

To get Thunar starting without the desktop icons, run the program "xfce4-autostart-editor", and then click "Add". Here you will see fields for the name, description, and command. Put whatever you want for the first two, and for the command put "thunar --daemon".

When you restart XFCE (no need to restart the machine) Thunar will now be running in the background, but not displaying any desktop icons. Automounting should then work. At the very least, this is what I have been doing since -current to get automouting working without the desktop icons.

cmk77 07-21-2007 01:13 PM

Thanks MS3FGX, you're the chef!

But it's still a bit unsatisfactory. Now we've got to click on a thunar icon for /media/disk to show up; instead of a desktop icon. Same difference :-( I like to do my file management on the CLI. Any suggestion for bypassing thunar? Let's suppose we're not running X at all.

MS3FGX 07-22-2007 07:10 AM

In that case you would need to use something like ivman, which is a HAL event handler that operates outside of X or any window manager or desktop environment.

There is no Slackware package for it that I can find, but there is a SlackBuild for it.

cmk77 07-23-2007 12:12 PM

thanks, I'll check it out. I'm a bit scared of slackbuilds though, the build for libdvdcss broke my X :-(


All times are GMT -5. The time now is 01:58 PM.