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
|
--- main.py.orig 2007-11-14 12:17:36.000000000 +0100
+++ main.py 2008-01-22 10:27:43.000000000 +0100
@@ -50,7 +50,7 @@
## Default icon for apps with no icons!
- return '~/.marchfluxmenu/icons/application-default-icon.png'
+ return '/usr/share/marchfluxmenu/icons/application-default-icon.png'
class ExecMenuItem:
def __init__(self, label, command, icon, submenu):
@@ -122,16 +122,16 @@
## Variables Defined :
#############################
-m8 = SubMenuItem('Sound & Video','~/.marchfluxmenu/icons/applications-multimedia.png',[])
-m7 = SubMenuItem('Programming','~/.marchfluxmenu/icons/applications-development.png',[])
-m1 = SubMenuItem('Education','~/.marchfluxmenu/icons/applications-education.png',[])
-m2 = SubMenuItem('Games','~/.marchfluxmenu/icons/applications-games.png',[])
-m3 = SubMenuItem('Graphics','~/.marchfluxmenu/icons/applications-graphics.png',[])
-m4 = SubMenuItem('Internet','~/.marchfluxmenu/icons/applications-internet.png',[])
-m5 = SubMenuItem('Office','~/.marchfluxmenu/icons/applications-office.png',[])
-m9 = SubMenuItem('System Tools','~/.marchfluxmenu/icons/applications-system.png',[])
-m0 = SubMenuItem('Accessories','~/.marchfluxmenu/icons/applications-accessories.png',[])
-m6 = SubMenuItem('Others','~/.marchfluxmenu/icons/applications-other.png',[])
+m8 = SubMenuItem('Sound & Video','/usr/share/marchfluxmenu/icons/applications-multimedia.png',[])
+m7 = SubMenuItem('Programming','/usr/share/marchfluxmenu/icons/applications-development.png',[])
+m1 = SubMenuItem('Education','/usr/share/marchfluxmenu/icons/applications-education.png',[])
+m2 = SubMenuItem('Games','/usr/share/marchfluxmenu/icons/applications-games.png',[])
+m3 = SubMenuItem('Graphics','/usr/share/marchfluxmenu/icons/applications-graphics.png',[])
+m4 = SubMenuItem('Internet','/usr/share/marchfluxmenu/icons/applications-internet.png',[])
+m5 = SubMenuItem('Office','/usr/share/marchfluxmenu/icons/applications-office.png',[])
+m9 = SubMenuItem('System Tools','/usr/share/marchfluxmenu/icons/applications-system.png',[])
+m0 = SubMenuItem('Accessories','/usr/share/marchfluxmenu/icons/applications-accessories.png',[])
+m6 = SubMenuItem('Others','/usr/share/marchfluxmenu/icons/applications-other.png',[])
#submenu_list = [m0,m1,m2,m3,m4,m5,m7,m8,m9,m6]
--- mfmdaemon.orig 2007-11-09 13:58:22.000000000 +0100
+++ mfmdaemon 2008-01-22 10:32:27.000000000 +0100
@@ -2,7 +2,7 @@
## Variables
DIRECTORY=/usr/share/applications/ # Directory to watch for changes
-PROGRAM=~/.marchfluxmenu/trigger.py # Initiation!
+PROGRAM=@@PYDIR@@/marchfluxmenu/trigger.py # Initiation!
start_count=`ls $DIRECTORY | wc -l`
@@ -19,7 +19,7 @@
if [ "$start_count" -gt "$count" ] # Package Removed
then
#sleep 1
- exec python ~/.marchfluxmenu/onremove.py &
+ exec python @@PYDIR@@/marchfluxmenu/onremove.py &
start_count=$count
@@ -29,7 +29,7 @@
if [ "$start_count" -lt "$count" ] # Package Installed
then
#sleep 1
- exec python ~/.marchfluxmenu/onadd.py &
+ exec python @@PYDIR@@/marchfluxmenu/onadd.py &
start_count=$count
--- installer.orig 2007-11-11 20:16:35.000000000 +0100
+++ installer 2008-01-22 10:43:57.000000000 +0100
@@ -17,33 +17,20 @@
echo '-----------------------------------'
echo 'This will rewrite your current fluxbox menu.'
echo 'You can find a backup called menu.mfm.bak under ~/.fluxbox'
- mkdir ~/.marchfluxmenu 2>/dev/null
- cp -R ../marchfluxmenu/. ~/.marchfluxmenu/ 2>/dev/null
mv ~/.fluxbox/menu ~/.fluxbox/menu.mfm.bak 2>/dev/null
touch ~/.fluxbox/menu 2>/dev/null
- exec python ~/.marchfluxmenu/mfm_generate.py & 2>/dev/null
- #sed '/bash/ i\~/.marchfluxmenu/./mfmdaemon &' ~/.fluxbox/startup > temp
- #mv temp ~/.fluxbox/startup
- ~/.marchfluxmenu/./mfmdaemon & 2>/dev/null
+ exec python @@PYDIR@@/marchfluxmenu/mfm_generate.py & 2>/dev/null
echo '-----------------------------------'
echo 'Installation Complete'
echo '-----------------------------------'
- echo 'Please add the line :'
- echo ' ~/.marchfluxmenu/./mfmdaemon & '
+ echo 'Please see mfmdaemon example script and'
+ echo 'put to somewhere under your $PATH and add the line'
+ echo ' mfmdaemon & '
echo 'to your fluxbox startup file if you want Marchfluxmenu'
echo 'to function everytime fluxbox starts (RECOMMENDED)'
echo '-----------------------------------'
exit 1
-
-
-
-
-
-
-
-
-
-fi
\ No newline at end of file
+fi
--- README.orig 2007-11-10 19:07:26.000000000 +0100
+++ README 2008-01-22 10:50:51.000000000 +0100
@@ -12,13 +12,10 @@
--------------------
Marchfluxmenu is written in python, which you need to have in your system.
-To run the GUI menu editor, fluxMenu, you'll also need pygtk.
-Get the tarball, untar it and run the installer script there.
-This will create a ~/.marchfluxmenu directory where the program will be 'installed'.The installer also generates a new fluxbox menu. The current menu will be backed up as ~/.fluxbox/menu.mfm.bak
-The mfmdaemon is also started by the installer.
+Running marchfluxmenu generates a new fluxbox menu. The current menu will be backed up as ~/.fluxbox/menu.mfm.bak
You might want to add the 'daemon' to your fluxbox startup file as well, if you want it to run everytime fluxbox starts (Recommended!).
-Just add the line
- ~/.marchfluxmenu/.mfmdaemon &
+Just copy the example script somewhere under $PATH and add the line
+ mfmdaemon &
at the appropriate place of ~/.fluxbox/startup
--- mfm_generate.py.orig 2007-11-11 19:58:01.000000000 +0100
+++ mfm_generate.py 2008-01-22 11:42:21.000000000 +0100
@@ -24,7 +24,7 @@
string += ExecMenuItem('Web Browser', 'firefox', IconFind('firefox.png'), '').GenerateMenuLine()
string += ExecMenuItem('Terminal', 'xterm', IconFind('term.png'), '').GenerateMenuLine()
string +=''' [separator] (--------)
- [submenu] (Settings) {settings} <~/.marchfluxmenu/icons/preferences-system.png>
+ [submenu] (Settings) {settings} </usr/share/marchfluxmenu/icons/preferences-system.png>
[config] (Fluxbox Menu)
[reconfig] (Reload Config)
[restart] (Restart Fluxbox)
@@ -39,7 +39,7 @@
string += m.body
string += '\n'
-string += '[separator] (tag end)\n' + '[exit] (Exit) <~/.marchfluxmenu/icons/exit.png>\n'+ '[end]\n'
+string += '[separator] (tag end)\n' + '[exit] (Exit) </usr/share/marchfluxmenu/icons/exit.png>\n'+ '[end]\n'
#print string
filename = os.path.expanduser('~/.fluxbox/menu')
|