Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001562Zandronum[All Projects] Bugpublic2013-10-29 12:052018-09-30 22:43
Reporterafullo 
Assigned ToBlzut3 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04 x86-64
Product Version1.2 
Target VersionFixed in Version 
Summary0001562: Zandronum on Ubuntu does not pass PWADs while path contains spaces
DescriptionPlaying 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.
Attached Files

- Relationships

-  Notes
User avatar (0007489)
Zalewa (developer)
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'
User avatar (0007490)
skyrimguy (reporter)
2013-10-30 00:51
edited on: 2013-10-30 01:31

I can also reproduce the problem with the latest version of ZDoom (2.8pre-237-g7dbf4ec) on Linux. This problem also applies to IWADs.

User avatar (0007491)
afullo (reporter)
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.
User avatar (0007493)
Edward-san (developer)
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 ...

User avatar (0007494)
Torr Samaho (administrator)
2013-10-30 18:59

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.
User avatar (0007495)
skyrimguy (reporter)
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.

User avatar (0007496)
Blzut3 (administrator)
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.)

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- 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 View Revisions
2013-10-30 01:14 skyrimguy Note Edited: 0007490 View Revisions
2013-10-30 01:31 skyrimguy Note Edited: 0007490 View Revisions
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 View Revisions
2013-10-30 18:43 Edward-san Note Edited: 0007493 View Revisions
2013-10-30 18:43 Edward-san Note Edited: 0007493 View Revisions
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 View Revisions
2013-10-30 21:09 skyrimguy Note Edited: 0007495 View Revisions
2013-10-30 21:10 skyrimguy Note Edited: 0007495 View Revisions
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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker