File: README

package info (click to toggle)
wmmount 1.0beta1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 164 kB
  • ctags: 86
  • sloc: cpp: 583; sh: 71; makefile: 43; perl: 41
file content (195 lines) | stat: -rw-r--r-- 7,415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
wmmount - The WindowMaker universal mount point
05/09/98  Release 1.0 Beta1
Copyright (C) 1998  Sam Hawker <shawkie@geocities.com>
This software comes with ABSOLUTELY NO WARRANTY
This software is free software, and you are welcome to redistribute it
under certain conditions
See the COPYING file for details.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


THE AUTHOR:
===========

Sam Hawker (17/m/uk)

shawkie@geocities.com
http://www.geocities.com/SiliconValley/Vista/2471/


INSTALLING:
===========

xmkmf
make
strip wmmount
make install

mkdir /usr/X11R6/lib/X11/wmmount
cp EXTRAS/* /usr/X11R6/lib/X11/wmmount/


CONFIGURATION:
==============

The system-wide configuration file can now be generated automagically,
from /etc/fstab, by means of the system.wmmount.awk awk (or gawk) program.

awk -f system.wmmount.awk /etc/fstab >system.wmmount
cp system.wmmount /usr/X11R6/lib/X11/wmmount/

In addition, individual users can create their own configuration files,
saving them as ~/.wmmount


NOTE:
=====

I do not recommend giving wmmount suid or sgid permissions.
In fact, I strongly recommend not giving it such permissions.


USAGE:
======

Press the "<" and ">" arrow buttons to select a mount point.
Press the mount button (the one with a bolt symbol) to mount or unmount.
Double-click on the information box to open a program at the mount point
(Midnight Commander for example).

What else can i say? Enjoy!


AFTERSTEP USERS:
================
(thanks to tygris@erols.com)

This release includes in a new command line option.
The effect this has is to enable shape support (it implies "-s"), and
to reduce the size of the window to 56x56 pixels.
The "-position position" option has also been added, so you can push
wmcdplay off the edge of the screen while it gets swallowed.
To put wmmount in your Wharf, add the following line in the appropriate
part of your .steprc

*Wharf wmmount nil MaxSwallow "wmmount" wmmount -a -position -0-0 &

It is also possible (by editing and recompiling the afterstep sources),
to make Wharf handle the new 56x56 pixel window properly - yes, I add
an option to use a 56x56 pixel window, even though the AfterStep Wharf
really wants 55x57 pixel ones.

I am told (by tygris@erols.com):

"Locate Wharf.c (or is it Wharf.cc?)  Should be in
AfterStep-1.0/modules/Wharf.  Locate this:

            if (Buttons[button].maxsize) {
              Buttons[button].icons[0].w = 55;
              Buttons[button].icons[0].h = 57;
            }

and change the 55 and 57 to 56's.  Save and compile."


BUILD PROBLEMS:
===============

You may have trouble linking wmmount with the compiler supplied on some
recent distributions (eg. Debian 2.0 & RedHat 5.1).
It can be made to build by adding the following line to the top of the
Imakefile, before executing xmkmf:

CC = c++

I am not sure of the effect this has on memory usage, etc.


RELEASE HISTORY:
================

Release 0.1    25/01/98    Does not update shape transparency properly under
                              WindowMaker. This is a fault with WindowMaker.

Release 0.2    31/01/98    Now free's ALL pixmaps on exit (I think).

Release 0.3    04/02/98    Free's GC's too now.
                           Displays % capacity on mounted devices.
                           New set of icons (use a common palette of about 10 colors).
                           New format for ~/.wmmount.

Release 0.4    24/02/98    Fixed bug relating to manual window positioning.

Release 0.5    04/03/98    Updates capacity display correctly.
                              (thanks to aseltine@cs.umass.edu)
                           Reduced CPU Load.
                              (thanks to aseltine@cs.umass.edu)

Release 0.6    12/03/98    New option in .wmmount makes 'showcapacity' specific to
                              each mount.
                              (thanks to steeve@minet.net)
                           Now works on DEC Unix systems.
                              (thanks to aseltine@cs.umass.edu)
                           Now gives same capacity values as df.
                              (thanks to steeve@minet.net)
                           Now notices unmounts promptly (don't remove the floppy disk
                              just coz wmmount says its unmounted already!).
                           Now works on 8bpp displays with full colormaps.
                              (thanks to devernay@istar.fr on the mailing-list)
                           New fiend look.

Release 0.7    25/04/98    Compiles again now.
                           NFS and loopback mounts should work again now.
                           Now GPL.
                           Removed DEC Unix code.
                              (sorry, aseltine@cs.umass.edu)
                           Sensible CPU load.
                           New FAQ.
                           Yet another new face.
                              (thanks to warp@xs4all.nl)
                           Minor changes to ~/.wmmount.

Release 0.8    07/05/98    Removed broken display code.
                           Now looks for system.wmmount as a last resort.
                              (thanks to ssadiqr@pheonix.Princeton.EDU)
                           Added "-b back_color" command line argument.
                           Should work on FreeBSD now.
                              (thanks to dalroi@wit401310.student.utwente.nl)
                           Fixed permissions problem with NFS mounts.
                           Now uses execv(3) instead of system(3).

Release 1.0    05/09/98    Improved error messaging.
Beta1                      Fixed checkMount problem.
                              (thanks to unit@lgcy.com and others)
                           Less strict mountpoints, eg. "/mnt/dosc/" is now valid.
                           Added "-a" command line argument for AfterStep users.
                           Added "-position position" command line argument.
                           Command line arguments, "-a", "-w" and "-s" are now toggle,
                              so if you enable one at compile-time, you can override it
                              at run-time.
                           Added awk program for automatic generation of system.wmmount.
                              (thanks to rolfwr@ii.uib.no)
                           Added more options for device usage display.
                           Executes open command from the mount point directory (useful
                              for xterms, filemanagers, etc.).


KNOWN BUGS:
===========

Does not read symlinks properly when testing for mounted filesystems.
So, if it incorrectly reports devices as mounted, make sure the mountpoint
specified in the config file does not include symlinks.