Changeset 5feea08 for xsoft


Ignore:
Timestamp:
05/04/2012 12:25:06 AM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
9166fa4
Parents:
ea3e0afa
Message:

Added a script to unmount fuse mountpoints to the Rox page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10075 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/other/rox-filer.xml

    rea3e0afa r5feea08  
    205205
    206206      <para>
     207        That works fine for mounting, but to unmount it we need to run the
     208        command <command>fusermount -u ${MOUNTPOINT}</command>. You could set
     209        that as your default umount command in your rox preferences, but you
     210        would then be unable to unmount any normal mountpoints (that need
     211        umount). What we need is a script that will unmount a Fuse mountpoint
     212        with <command>fusermount -u ${MOUNTPOINT}</command> and everything else
     213        with <command>umount</command>. As the
     214        <systemitem class="username">root</systemitem> user:
     215      </para>
     216
     217<screen role="root"><userinput>cat &gt; /usr/bin/myumount &lt;&lt; "HERE_DOC" &amp;&amp;
     218#!/bin/bash
     219sync
     220if mount | grep "${@}" | grep -q fuse
     221then fusermount -u "${@}"
     222else umount "${@}"
     223fi
     224HERE_DOC
     225chmod 755 /usr/bin/myumount</userinput></screen>
     226
     227      <para>
     228        Now, to make Rox use this simple script, open a Rox window, right click
     229        on it and choose Options from the menu. In the left hand list choose
     230        "Action windows" and then on the right hand side, where it says
     231        "Unmount command" change <command>umount</command> to
     232        <command>myumount</command>.
     233      </para>
     234
     235      <para>
    207236        If you use a desktop environment like
    208237        <application>Gnome</application> or <application>KDE</application> you
Note: See TracChangeset for help on using the changeset viewer.