You are not logged in.
Pages: 1
EDIT 2009/3/29: Working with this script for some time already, I've found that the script works on fresh new 700, 900 and 1000H models. But after some Asus updates and using the Launcher Tools to modify the simple mode icons myself, the script fails to work any more.
One of the bugs I have noticed with Asus Update is a locale (probably Arabic) that is causing problem with my script. I am not sure if the Launcher Tools also add to the problem. But the conclusion is that this script only work for fresh new machines.
Dear icewm start menu fans,
I have written a script that can extract the Asus tabbed menu items from the simpleui.rc file and convert it to icewm start menu items (under a menu folder "Asus") in your selected language (provided it is available in the simpleui.rc file). You can download the script asus_menu.tgz here, unzip and save it to "My Home". Next you have to give it exec permission by right click on it, select [Properties] > [Permissions], and check all the [Exec] boxes. Then you can double-click to run it.
The script will backup existing icewm start menu file, check for the last modified simpleui.rc in your system, also check for errors in ~/.icewm/menu, then delete old "Asus" menu folder, ask user to select language, and finally built the new menu items.
During the process, you will have chances to override choice of the script, and be offered a menu for selection (e.g. which simpleui.rc file), if you enter "n" when prompted.
This is part of my effort to make easy the process of enabling the icewm start menu and tweaking some icewm program preferences. There will be more scripts to come.
I have tested this script many many times. But still I dare not say it is bug free. Please try it out and revert any comments.
albkwan
Last edited by albkwan (2009-08-16 1:43:33 am)
Offline
I did not try it, as i already installed icewm, and yes, it was quite long and painful:
so your idea is very good.
It would be perfect with some script to extract the advanced menu items, so as to be able to save this script somewhere and then re-inject it after re-installation in stock easy mode.
Offline
Since I didn't want to run your script on my "virgin" 901, I copied it onto my ubuntu workstation and ran it in a "safe" set of directories. Here is one minor error I found:
./asus_menu.sh: line 529: /home/user/.icewm/menu_temp: No such file or directory mv: cannot stat `/home/user/.icewm/menu_temp': No such file or directory
I changed line 8 to set MENUFILE to "./icewm/menu" and I changed line 25 to:
SIMPLEUI1-'./simpleui.rc'
That produced the error at line 529. I then created /home/user/.icewm and put a menu file in it and repeated the test. It still didn't produce a menu file that resembles the 901 "Internet" tab.
You can get a copy of the 901 simpleui.rc file from:
http://www.jlk.net/701_travels/901_simpleui.rc
I hope we can get this working as it would be very useful.
regards
Offline
claude j greengrass wrote:
Since I didn't want to run your script on my "virgin" 901, I copied it onto my ubuntu workstation and ran it in a "safe" set of directories. Here is one minor error I found:
Code:
./asus_menu.sh: line 529: /home/user/.icewm/menu_temp: No such file or directory mv: cannot stat `/home/user/.icewm/menu_temp': No such file or directoryI changed line 8 to set MENUFILE to "./icewm/menu" and I changed line 25 to:
SIMPLEUI1-'./simpleui.rc'
That produced the error at line 529. I then created /home/user/.icewm and put a menu file in it and repeated the test. It still didn't produce a menu file that resembles the 901 "Internet" tab.
You can get a copy of the 901 simpleui.rc file from:
http://www.jlk.net/701_travels/901_simpleui.rc
I hope we can get this working as it would be very useful.
regards
Try this:
touch /home/user/.icewm/menu_temp
and run the script again. I have deleted this line at last moment thinking it is not necessary.
Also, as the script is looking for absolute path, you should chroot to your "safe set of directories" to run it.
Offline
The problem with absolute paths, as I see it, in this particular instance, is not all of the exist! Not everyone will have make a copy to /home/user/.AsusLauncher or /var/lib/AusuLauncher I feel that your code needs to cope with these cases.
The current ausu_menu.sh file seems to have had a round trip to MSDOS and back as there are ^M characters at the end of each line.
Having worked around this problem, and insured that all the absolute paths were resollved, I re-ran the script with the default 901 simpleui.rc Unfortunately the output menu files didn't reflect the applications displayed in the 901's tabbed interface.
I encourage you to test your script against the very large 901 simpleui.rc
Hope to hear from you shortly.
regards
Offline
I've looked a bit deeper at your code. Unfortunately "they've" (ASUS/Xandros/whoever) have changed the format of simpleui.rc between the 701 and the 901. Here is one example
from the original 701 simpleui.rc
<parcel simplecat="Internet" extraargs="/opt/firefox/firefox http://www.igoogle.com"
icon="igoogle_norm.png"
selected_icon="igoogle_hi.png" >
<name lang="en">iGoogle</name>
<name lang="zh_TW">iGoogle</name>
<name lang="zh_CN">iGoogle</name>
<include>en zh_CN zh_TW</include>
</parcel>and the 'same' section of code from the 901 simpleui.rc
<parcel extraargs="/opt/xandros/bin/p701-igoogle.sh" simplecat="Internet" selected_icon="igoogle_hi.png" icon="igoogle_norm.png" > <name lang="en" >iGoogle</name> <name lang="pt_BR" >iGoogle</name> <name lang="zh_TW" >個人化網頁</name> <name lang="zh_HK" >個人化網頁</name> <name lang="zh_CN" >个人化网页</name> <name lang="da_DK" >iGoogle</name> <name lang="de_DE" >iGoogle</name> <name lang="es_AR" >iGoogle</name> <name lang="es_ES" >iGoogle</name> <name lang="fr_FR" >iGoogle</name> <name lang="it_IT" >iGoogle</name> <name lang="nb_NO" >iGoogle</name> <name lang="nl_NL" >iGoogle</name> <name lang="pt_PT" >iGoogle</name> <name lang="ru_RU" >iGoogle</name> <name lang="th_TH" >iGoogle</name> <name lang="tr_TR" >iGoogle</name> <name lang="ja_JP" >iGoogle</name> <name lang="ko_KR" >정보</name> <name lang="cs_CZ" >iGoogle</name> <name lang="hu_HU" >Információ</name> <name lang="sk_SK" >Aktuálne správy</name> <name lang="el_GR" >Πληροφορίες</name> <name lang="pl_PL" >Informacje</name> <name lang="fi_FI" >iGoogle</name> <name lang="sv_SE" >iGoogle</name> <name lang="ar_AE" >iGoogle</name> <exclude>zh_HK zh_CN</exclude> </parcel>
IMOSHO parsing simpleui.rc is beyond the scope of bash/sed/grep I think you will need to utilize an XML library parser in YFSL (Your Favorite Scripting Language)
regards
Offline
claude j greengrass wrote:
Not everyone will have make a copy to /home/user/.AsusLauncher or /var/lib/AusuLauncher I feel that your code needs to cope with these cases.
Correct me if I were wrong. As far as I know, there are only 3 default locations for the simpleui.rc file:
- system default in /opt/xandros/share/AsusLauncher/simpleui.rc
- user for 701 models in /home/user/.AsusLauncher/simpleui.rc
- user for new models in /var/lib/AsusLauncher/simpleui.rc
claude j greengrass wrote:
The current ausu_menu.sh file seems to have had a round trip to MSDOS and back as there are ^M characters at the end of each line.
Hmm, it seems that when I tried to edit the script in my office (MS Windows of course) this morning, the editor have added those ^M.
claude j greengrass wrote:
Having worked around this problem, and insured that all the absolute paths were resollved, I re-ran the script with the default 901 simpleui.rc Unfortunately the output menu files didn't reflect the applications displayed in the 901's tabbed interface.
This script will only work in an Eeepc running default Xandros because it need to extract the "Exec=" command from the kde desktop shortcut files.
claude j greengrass wrote:
I encourage you to test your script against the very large 901 simpleui.rc
I have downloaded your 901 simpleui.rc file. The major difference is that there are more languages for program names (24) compared with mine for 701 (13) for mine (also in different order). So I will have to give up the lazy way for specifying locales and employ a more accurate way to grep the name of the folders.
There are also some minor differences here and there. I will need to rewrite some part of the code to cater for these differences for 901 users.
So I am sad to say that the script currently only work for 701 models.
EDIT: Currently I am working on building Xandros on USB with a 900 Linux Recovery Disk. Only after I get this working, then I can really test this script on a 900 system.
Last edited by albkwan (2008-09-03 11:36:55 am)
Offline
albkwan wrote:
claude j greengrass wrote:
Not everyone will have make a copy to /home/user/.AsusLauncher or /var/lib/AusuLauncher I feel that your code needs to cope with these cases.
Correct me if I were wrong. As far as I know, there are only 3 default locations for the simpleui.rc file:
- system default in /opt/xandros/share/AsusLauncher/simpleui.rc
- user for 701 models in /home/user/.AsusLauncher/simpleui.rc
- user for new models in /var/lib/AsusLauncher/simpleui.rc
I think you will find on both the 701 and 901 that the default is:
/opt/xandros/share/AsusLauncher/simpleui.rc
The other two locations for simpleui.rc have been created by the user.
albkwan wrote:
claude j greengrass wrote:
Having worked around this problem, and insured that all the absolute paths were resollved, I re-ran the script with the default 901 simpleui.rc Unfortunately the output menu files didn't reflect the applications displayed in the 901's tabbed interface.
This script will only work in an Eeepc running default Xandros because it need to extract the "Exec=" command from the kde desktop shortcut files.
It will run on any Linux/Unix/BSD...os that includes bash or sh and a few standard command line utilities and include simpleui.rc and the files for /usr/share/applications in the appropriate directories. I did all my testing on Ubuntu 7.10. It works ok for 701 simpleui.rc files but not for 901.
albkwan wrote:
There are also some minor differences here and there. I will need to rewrite some part of the code to cater for these differences for 901 users.
So I am sad to say that the script currently only work for 701 models.
EDIT: Currently I am working on building Xandros on USB with a 900 Linux Recovery Disk. Only after I get this working, then I can really test this script on a 900 system.
I look forward to testing your next version
Offline
UPDATE:
I have come up with a new version of the script (same download link as above). This time it should work on both the 701 and 901.
I have tested this new version on my 4G with my original simpleui.rc and the one supplied by claude j greengrass from his 901. For the 701 simpleui.rc, it is 100% working. For the 901 one, it seems to work (at least from the menu items it generated), but since I don't have some of those programs installed on my 4G, I cannot actually run the commands one by one to verify them.
Here is a screenshot of the menu generated with the 901 simpleui.rc for French locale:
Also, as I don't have Japanese and Korean fonts, etc. installed in my 4G, I cannot verify if it runs OK for these additional languages specific to 901. Users of other languages are encouraged to test the script and report any problem.
Pls note that I have found the 901 simpleui.rc to be very buggy (the 701 one is much more orderly). With repeated testing, I have worked out hacks to overcome those bugs. But you can never be sure what will happen with another Asus update. ![]()
For users of other not tested models (besides 701 and 901), you can either test run it and report problem, or better still send me a copy of your simpleui.rc for me to verify any problem in running the script.
Cheers
albkwan
Offline
Just tried your script on my 701 and obtained a series of grep errors
now I do not have anything in the start menu above the PROGRAMS entry!
Looked in ~/.icewm but cannot find any backup file of the menu listed (where is the backup made so I can restore it ?)
Offline
enviroman wrote:
Just tried your script on my 701 and obtained a series of grep errors
now I do not have anything in the start menu above the PROGRAMS entry!
Looked in ~/.icewm but cannot find any backup file of the menu listed (where is the backup made so I can restore it ?)
It should be in /home/user/.icewm/menu.bak or menu.bak1, menu.bak2, menu.bak3
What model do you have? Have you edited your simpleui.rc manually in the past. If possible, pls send me a copy of your simpleui.rc file.
Offline
First time I ran it by clicking in file manager gave the problem of no backup. Running it from shell did give a backup - most strange.
The new menu had only an Asus folder. The other copy I had (from an old backup) also had an Asus folder which did not show up for some reason.
My simpleui.rc has been edited several times using altools - never manually.
I have since recovered the menu file from a backup I made after losing it several times on F9ing and edited it manually to move the entries I wanted from the no show Asus folder to the relevant tab entries, so I no longer have the originals.
I have localepurge installed if that could cause a problem.
Last edited by enviroman (2008-09-11 7:33:13 pm)
Offline
enviroman wrote:
First time I ran it by clicking in file manager gave the problem of no backup. Running it from shell did give a backup - most strange.
Really strange! Can't think of any reason. But I will test on it tonight when I get home to my Eeepc.
enviroman wrote:
The new menu had only an Asus folder. The other copy I had (from an old backup) also had an Asus folder which did not show up for some reason.
My script is checking for the first occurence of the string 'menu Asus' to locate the old menu. Perhaps I should make the search condition more restrictive. Probably altools has also added a similiar clause into your menu file.
enviroman wrote:
My simpleui.rc has been edited several times using altools - never manually.
This brings up a good point. I need to modify the script to be compatible with other Easy Mode tabs editors like altools and EmEditor. I will have to check their behaviour first though.
enviroman wrote:
I have since recovered the menu file from a backup I made after losing it several times on F9ing and edited it manually to move the entries I wanted from the no show Asus folder to the relevant tab entries, so I no longer have the originals.
This probably means there are errors somewhere when the Asus folder menu item was generated. Where the error occur, the menu items after that will not show up. I would appreciate if you can send me a copy of your menu and simpleui.rc, then I can verify what is causing the problem.
Also, this makes me think I should check the insanity of each line of the menu items generated before adding them to the menu file. I will work on a new version for this.
enviroman wrote:
I have localepurge installed if that could cause a problem.
The script is not actually making use of your locale, just what simpleui.rc indicates. So this is not a problem.
Offline
enviroman,
I have tested the script over and over again. Can't understand why backup don't work for you. Anyway, I have modified the script to verify that backup file exist before proceeding to modify the menu file.
Other changes include more restrictive search condition for locating the old Asus menu to avoid mistake, get only 1st occurence of icon filename to avoid mistake from buggy simpleui.rc.
Also, download server has changed as geocities.com is always too busy. Now the download location is here.
Any brave one to test this script?
albkwan
Offline
Thanks albkwan
No idea what was happening either. As I've already posted I fixed it manually and don't really want to risk messing my files up again.
It is probably some library that is missing. I also have a problem trying to install some other files after updateing my sda1 with the install_firefox.sh script. Don't know if it's related.
Offline
tarant8l wrote:
Manual worker here. I would like to ad window maker.
Please do not hijack threads. You are very unlikely to get a response and besides, you did not actually ask a question. If you have a question about Window Maker please create a new post.
Offline
albkwan wrote:
Dear icewm start menu fans,
I have written a script that can extract the Asus tabbed menu items from the simpleui.rc file and convert it to icewm start menu items (under a menu folder "Asus") in your selected language (provided it is available in the simpleui.rc file). You can download the script asus_menu.tgz here, unzip and save it to "My Home".
albkwan
Can you please explain how to do this in Linux. I know how to do it in Windows, but when I double click on the downloaded file I am invited to select an application, but nothing in the drop down menu seems appropriate.
I'm afraid I am right at the bottom of a steep learning curve!
Robin
Offline
I don't get why you go to all the trouble with this script. There is a debian package named - appropriately enough - menu that sets up menu entries for all installed packages in all used menu programs and hooks into the package manager so newly installed packages are put into the menu. That way I have almost all programs in the start menu and use the simpleUI for programs I use very often.
Holger
Offline
Robin2 wrote:
Can you please explain how to do this in Linux. I know how to do it in Windows, but when I double click on the downloaded file I am invited to select an application, but nothing in the drop down menu seems appropriate.
In Linux, files have different attributes: read, write, exec. To be able to exec a file, you need to make it executable. In File Manager, right click on it and select [Properties] > [Permissions], then check all the [Exec] boxes. Then you can double-click to run it.
HolgerGehrke wrote:
I don't get why you go to all the trouble with this script.
Simply because I am already used to the Asus tabbed menu icon - easier to find the application I want with this. I also have the Debian Menu installed (in fact I wrote the wiki section for this). But sometimes it is just faster to locate an application the Asus way.
Offline
HolgerGehrke, does your solution work in Easy mode which uses icewm as the desktop manager? albkwan's solution was for those of us who prefer to run Easy Mode and not the Advanced desktop, based on KDE.
Offline
Hello
Plodr: Yes, it works perfectly in Easy Mode. This way I have most of everything in the menu and the programs I need to reach quickly on the AsusLauncher.
Albkwan, setting the icewm menu to (more or less) mirror the AsusLauncher seems more restrictive to me than using the debian menu system, because lots of useful programs are not on the Launcher by default and don't need to be there because they are not used all that often.
Holger
Last edited by HolgerGehrke (2008-11-16 1:07:55 pm)
Offline
HolgerGehrke, erm, I think you're preaching to the choir. I'm sure plodr remembers this http://forum.eeeuser.com/viewtopic.php? … 78#p336278 and as albkwan has mentioned, he's been very strong in developing it further.
Looking back, it seems odd that with some many thousands of registered users no one knew about this, or at least, no one commented. As mentioned in my thread, I'd used this for some time but lost it during one of my devices many incarnations
and was eager to re-acquire it. Don't you agree that it works well?? Have you installed the Gnome Desktop on your eee?? (I think they make a great combination with the Epiphany Browser). Anyways -- just a short note of little consequence. ![]()
Offline
I have been tweaking my eee (4gb, black, 701) a little recently. At the moment I am using the icewm menu (with all the added programs), AsusLauncher (for the things I use most often or need to see in dim light), and PCMan File manager. It's a good combination and I am pleased.
However, now I am curious about your set-up winotree? What is the current incarnation of your computer? Could you go into a bit more detail about the Gnome Desktop/ Epiphany Browser combo?
I always learn so much from you. Thanks, demill ![]()
Offline
winotree wrote:
As mentioned in my thread, I'd used this for some time but lost it during one of my devices many incarnations
and was eager to re-acquire it. Don't you agree that it works well??
That's exactly why I mentioned it :-;
winotree wrote:
Have you installed the Gnome Desktop on your eee?? (I think they make a great combination with the Epiphany Browser).
I'm not really a fan of the big 'be everything to everybody' desktop environments. On my desktop machine I'm using WindowMaker, mainly because it's a windowmanager that does it's humble best to be unobtrusive and stay out of the user's way. I am very much a command line fan, so the easy availability of an xterm with a bash prompt was one of the things that drew me to the eee. Most tools I like were either ready and preinstalled (mc for example) or simple and straightforward to install ('apt-get gcc' and the like).
Holger
Offline
Pages: 1