MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001562 | Zandronum | [All Projects] Bug | public | 2013-10-29 12:05 | 2018-09-30 22:43 |
|
Reporter | afullo | |
Assigned To | Blzut3 | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | Linux | OS | Ubuntu | OS Version | 12.04 x86-64 |
Product Version | 1.2 | |
Target Version | | Fixed in Version | | |
|
Summary | 0001562: Zandronum on Ubuntu does not pass PWADs while path contains spaces |
Description | Playing on Ubuntu, I simply tried to entering in a server and, after having downloaded all the PWADs required, the execution did not continue after reporting that the server had a certain number of WADs (the ones I just dl) which I, from his perspective, was missing.
I noticed that the path where he downloaded, also included in the folders in which he would search for WADs, contained some spaces, so I move my files into another folder without them in the name. This fixed the problem. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-10-29 12:05 | afullo | New Issue | |
2013-10-29 22:02 | Zalewa | Note Added: 0007489 | |
2013-10-30 00:51 | skyrimguy | Note Added: 0007490 | |
2013-10-30 00:58 | skyrimguy | Note Edited: 0007490 | bug_revision_view_page.php?bugnote_id=7490#r4176 |
2013-10-30 01:14 | skyrimguy | Note Edited: 0007490 | bug_revision_view_page.php?bugnote_id=7490#r4177 |
2013-10-30 01:31 | skyrimguy | Note Edited: 0007490 | bug_revision_view_page.php?bugnote_id=7490#r4178 |
2013-10-30 09:48 | afullo | Note Added: 0007491 | |
2013-10-30 18:35 | Edward-san | Note Added: 0007493 | |
2013-10-30 18:36 | Edward-san | Note Edited: 0007493 | bug_revision_view_page.php?bugnote_id=7493#r4180 |
2013-10-30 18:43 | Edward-san | Note Edited: 0007493 | bug_revision_view_page.php?bugnote_id=7493#r4181 |
2013-10-30 18:43 | Edward-san | Note Edited: 0007493 | bug_revision_view_page.php?bugnote_id=7493#r4182 |
2013-10-30 18:59 | Torr Samaho | Note Added: 0007494 | |
2013-10-30 20:46 | skyrimguy | Note Added: 0007495 | |
2013-10-30 20:50 | skyrimguy | Note Edited: 0007495 | bug_revision_view_page.php?bugnote_id=7495#r4184 |
2013-10-30 21:09 | skyrimguy | Note Edited: 0007495 | bug_revision_view_page.php?bugnote_id=7495#r4185 |
2013-10-30 21:10 | skyrimguy | Note Edited: 0007495 | bug_revision_view_page.php?bugnote_id=7495#r4186 |
2013-10-30 22:49 | Blzut3 | Note Added: 0007496 | |
2013-10-30 22:49 | Blzut3 | Status | new => resolved |
2013-10-30 22:49 | Blzut3 | Resolution | open => fixed |
2013-10-30 22:49 | Blzut3 | Assigned To | => Blzut3 |
2018-09-30 22:43 | Blzut3 | Status | resolved => closed |
Notes |
|
(0007489)
|
Zalewa
|
2013-10-29 22:02
|
|
Confirmed in Zandronum 1.2. Following command line won't load udmx.wad:
/usr/bin/zandronum -iwad /home/test/.zandronum/doom2.wad -file '/home/test/Katalog ze spacja/udmx.wad' |
|
|
(0007490)
|
skyrimguy
|
2013-10-30 00:51
(edited on: 2013-10-30 01:31) |
|
|
|
(0007491)
|
afullo
|
2013-10-30 09:48
|
|
If I am not wrong, I see from skyrimguy's link that the use of \ into command line (regardless of the fact that by acting with a purely graphical procedure, i.e. by opening Doomseeker via interface and selecting the server from the list as usual, without the need of opening a terminal, the backslash is inserted or not), does not fix. |
|
|
(0007493)
|
Edward-san
|
2013-10-30 18:35
(edited on: 2013-10-30 18:43) |
|
This is not a zdoom/zandronum bug but a linux feature.
When you want to invoke the folder with the space, you should use '\ ' in place of the space in the folder name. Like this:
/usr/bin/zandronum -iwad /home/test/.zandronum/doom2.wad -file /home/test/Katalog\ ze\ spacja/udmx.wad
Also, when you write a command in the terminal, if you press twice the 'tab' key, you should be able to autocomplete/see the list of the file names.
[edit]just saw the other comments ... strange. I'll test it.
[edit2]I can't reproduce if I run zandronum from /usr/games/zandronum folder. Sounds like a linking problem ...
|
|
|
|
Quote from Zalewa
/usr/bin/zandronum -iwad /home/test/.zandronum/doom2.wad -file '/home/test/Katalog ze spacja/udmx.wad'
AFAIK this is simply not the proper way to feed a path with spaces to a Linux binary. Spaces should be escaped like Edward-san said. |
|
|
(0007495)
|
skyrimguy
|
2013-10-30 20:46
(edited on: 2013-10-30 21:10) |
|
Solution:
Edit /usr/bin/zandronum and change $*
LD_LIBRARY_PATH=/usr/games/zandronum /usr/games/zandronum/zandronum $*
to "$@"
LD_LIBRARY_PATH=/usr/games/zandronum /usr/games/zandronum/zandronum "$@"
save change and try the following:
Folder names:
I W A D $ & ( )
P W A D $ & ( )
IWAD: doom2.wad
PWAD: hr2final.wad
zandronum -iwad '/home/<your username>/.zandronum/I W A D $ & ( )/doom2.wad' -file '/home/<your username>/.zandronum/P W A D $ & ( )/hr2final.wad'
zandronum -iwad /home/<your username>/.zandronum/I\ W\ A\ D\ \$\ \&\ \(\ \)/doom2.wad -file /home/<your username>/.zandronum/P\ W\ A\ D\ \$\ \&\ \(\ \)/hr2final.wad
it should work now.
|
|
|
(0007496)
|
Blzut3
|
2013-10-30 22:49
|
|
Quote from Torr Samaho AFAIK this is simply not the proper way to feed a path with spaces to a Linux binary. Spaces should be escaped like Edward-san said.
Anything that tells the command line tokenizer that a parameter has a space in it will work. Be it double quotes (evaluates variables), single quotes (in case your path has $ characters in it), or escaping.
I've issued an update to the packages with skyrimguy's suggestion. (On a related note: while having spaces in a path isn't a technical problem, but I would still recommend kicking the habit. If one gets into advanced terminal usage they will make life difficult.) |
|