Results 1 to 8 of 8

Thread: Prevent gvfs from starting

  1. #1
    Join Date
    Aug 2005
    Location
    India
    Beans
    419

    Prevent gvfs from starting

    Hi,

    I was using Gnome earlier, but then I installed kubuntu-desktop. I liked it, so I started using KDE.

    When I insert a USB drive, it gets mounted, but I cannot unmount it in KDE if gvfs is running in the background. If the gvfs daemons are killed before mounting the drive, things work fine.

    Is there any way I can prevent gvfs from starting? It's Gnome-specific and I can do without it, right?

    Thanks!

    (PS: Using Karmic and KDE 4.3 from the kubuntu ppa)

  2. #2
    Join Date
    Aug 2005
    Location
    India
    Beans
    419

    Re: Prevent gvfs from starting

    *bump*

  3. #3
    Join Date
    Apr 2007
    Location
    /dev/random
    Beans
    3,052

    Re: Prevent gvfs from starting

    I don't have it installed, though I know that keeping it that way has been something of a chore, since a lot of packages recommend GNOME-specific stuff that you have to explicitly opt out of installing alongside your wanted package (gvfs being no exception).

    You should be able to do without it. Try removing it and see what it says.
    Code:
    $ sudo aptitude remove gvfs -P
    ...

  4. #4
    Join Date
    Aug 2005
    Location
    India
    Beans
    419

    Re: Prevent gvfs from starting

    Thanks for replying.

    A lot of packages depend of gvfs, some of which I use. So uninstalling wasn't really an option. I want to keep Gnome installed for now.

    After a lot of digging around, I did manage to find a workaround:
    Create a file named .xsessionrc in the $HOME directory with the following contents:
    Code:
    #!/bin/bash
    GVFS_DISABLE_FUSE=1
    export GVFS_DISABLE_FUSE
    (Might need to do a chmod +x as well)

    After restarting the X session, the ~/.gvfs thingy isn't mounted, and my USB thumb drive mounts/unmounts properly in KDE. gvfsd is still running in the background, but doesn't seem to be causing any trouble.

    (PS: Zorael - It was because of some of your posts and your sig that I decided to try out KDE again )

  5. #5
    Join Date
    Jun 2009
    Beans
    26

    Re: Prevent gvfs from starting

    Quote Originally Posted by akudewan View Post
    Thanks for replying.

    A lot of packages depend of gvfs, some of which I use. So uninstalling wasn't really an option. I want to keep Gnome installed for now.

    After a lot of digging around, I did manage to find a workaround:
    Create a file named .xsessionrc in the $HOME directory with the following contents:
    Code:
    #!/bin/bash
    GVFS_DISABLE_FUSE=1
    export GVFS_DISABLE_FUSE
    (Might need to do a chmod +x as well)

    After restarting the X session, the ~/.gvfs thingy isn't mounted, and my USB thumb drive mounts/unmounts properly in KDE. gvfsd is still running in the background, but doesn't seem to be causing any trouble.

    (PS: Zorael - It was because of some of your posts and your sig that I decided to try out KDE again )
    No joy. Absolutely love KDE but need dropbox and hence need nautilus too... if anyone has a fix please let me know!

  6. #6
    Join Date
    Oct 2007
    Beans
    2
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Prevent gvfs from starting

    This is what worked for me:
    Code:
    gconftool --type Boolean --set /apps/nautilus/preferences/media_automount  false
    See also: https://help.ubuntu.com/community/Mount/USB

  7. #7
    Join Date
    Jun 2009
    Beans
    26

    Re: Prevent gvfs from starting

    thanks man!

  8. #8
    Join Date
    Jun 2006
    Location
    Washington State, USA
    Beans
    16
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Prevent gvfs from starting

    Quote Originally Posted by NissePisse123 View Post
    This is what worked for me:
    Code:
    gconftool --type Boolean --set /apps/nautilus/preferences/media_automount  false
    See also: https://help.ubuntu.com/community/Mount/USB
    Worked like a charm--thanks!
    Front line Penguinista since 2005.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •