RUNZ fixed issues
From hacktolive.org
Fixes included in RUNZ:
- FIXED: Ability to install a runz file form the command line
- FIXED: Increase number of files mounted at the same time (linux default limit: 8)
- FIXED: now works if the filename has spaces
- FIXED: if filename is empty this messes up /media
- FIXED: Refuse to mount the superdeb file if one with the same name already is mounted
- FIXED: test if file exists before mounting (the .runz is now mounted at a new random location)
- FIXED: Properly export "RUNZ_LOCATION" variable (portable xnview was not working properly)
- FIXED: display message if file is not properly mounted
- FIXED: files were not properly unmounted when using xmessage (and because of that they remained locked)
- FIXED: variables are now properly exported (the problem was that sudo resets the environment and we must use the "env" command)
- FIXED: test if autorun exists
- FIXED: use xmessage if zenity is not detected
- FIXED: Description of the .runz file inside the ISO (.runz)
- FIXED: do not make (separated) folder for temporary text
- FIXED: do "unmount" and "rmdir" before giving/showing the errors
- FIXED: runz sandbox: check if it is a valid location first
- FIXED: do not assume "runz_location" variable
- FIXED: Added support for Xdialog
- FIXED: text was not working if files had spaces
- FIXED: text files are created with $filename.XXXX
- FIXED: home is on /tmp (solution: just do a fork when using mountlo and put HOME=/tmp there)
- FIXED: make a default button for xmessage (to press enter and run the file)
- FIXED: check if example.runz exists (and is executable) before trying to mount it
- FIXED: make user-mode-linux home at /tmp
- FIXED: the same .runz file can be used by many users at the same time
- FIXED: If there is no description, display: (No description available)
- FIXED: Other users can't access the mounted files: this causes problems for programs that require running as root, like super-debs. Possible solution: make the file /etc/fuse.conf readable by all users (and modify it to uncomment "user_allow_other") and mount the file with the option "-oallow_other", http://nixcraft.com/ubuntu-debian/8555-ubuntu-linux-add-user-group.html
- FIXED: file can't be in folder with spaces nor can it have spaces (mountlo fault and problem with mkdir function), partial solution: cd to folder and mount ./myfile
- FIXED: support for spaces in filenames: create a symlink and then mount the symlink
- FIXED: Warn if fuse.conf is not properly configured
- FIXED: some files like real player do not work if running from a location with spaces. Solution: "sanitize" the mounted path
- FIXED: there are some problems running files with spaces for the second and third time (if file is already open). master-lock was removed. Problem/solution: grep was having problems with spaces, we needed quotes.
- FIXED: the desktop crashes if info.txt is too big, solution: limit the number AND length of line in info.txt
- FIXED: The same file can't be oppened by two users at the same time