-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xdg-terminal: 364: [: x/home/arnaud/04024r3/df_linux/dfhack: unexpected operator #7
Comments
I tried #8 but my changes do not seem to be taken into account. It's always the old file is used. |
i have the same problem, only can run df directly |
I seem to get something similar: Traceback (most recent call last): |
I looked into this problem, and it appears to be a problem with pyLNP. I'm looking into a fix now. |
@lethosor The copy I got from http://www.lazynewbpack.com/linux/#download has this issue. It has to do with the precompiled version of PyLNP using its own copy of |
Ah, that would explain why the problematic script is in /tmp. @BeauBouchard, I can't find anything in this repo that references xdg-terminal, so I assume PyLNP is the only thing that uses it - is there a reason why it's in this repo? |
You're spot on. Unfortunately, I haven't been able to get PyLNP working on Linux so far. Patching the problematic script in Ugh |
Getting hit by this issue as well. |
I'm running into this issue as well Ubuntu 15.04, fairly clean install (just from a few days ago) but I do have a couple versions of Java installed. Output for me:
EDIT: I realized I was using r2 but r3 was available from http://www.lazynewbpack.com/linux/#download. Trying the new version did not help, the same error still occurs. |
I was able to get around this issue by specifying "xterm -e" in the File->Configure terminal menu. |
@gronono, @JTMaher2, and others with this problem: what shell does /bin/sh point to on your system? I found that Edit: zsh also doesn't like |
My system's /bin/sh points to dash. |
Same here : dash |
Thanks, that would explain the issue. I used |
Just to confirm. Zsh user here, I had the same issue than all of you, and the trick by @JTMaher2 worked for me, allowing me to run df. Looking forward for the global fix, but meanwhile, at least, it works :) |
The solution by @JTMaher2 did not work for me. I tried resetting LNP to default settings. Launched and worked. I noticed that my text was messed up. So I closed and switched print mode to TWBT. Crash. Switched it back to 2D mode, dwarf fortress launches. So TWBT appears to be the issue, for myself at least. |
Update - I also had text messed up (conversations on adventurer mode), when using the trick. I am not sure I understand the procedure you followed, @DrYitMat? Do you now have no text issues, and no crash? |
@baudren sorry I wasn't very clear. I have text issues, as I cannot use TWBT. Every print mode except 2D causes dwarf fortress to crash, with the unexpected operator error. |
By "crash", are you referring to the "unexpected operator" error or an actual DF crash? TwbT can cause DF to crash, but enabling/disabling it or changing the print mode in other ways shouldn't affect the launch scripts this pack uses at all, which is where the "unexpected operator" error is occurring. |
@lethosor I am referring to the 'unexpected operator' error. I do not receive the error when print mode is set to 2D. I receive the error when print mode is set to, Standard, TWBT, TWBT-LEGACY. |
Kill me. After hours of exhaustive searching I stumbled upon this: http://www.bay12forums.com/smf/index.php?topic=140966.280;wap2 In my case the solution was to delete libstdc++.so.6 and libgcc_s.so.1 from the df_linux/libs folder. That was way too many hours spent trying to find a solution just for it to be a simple fix. :( EDIT: On the bright side, LNP with TWBT enabled works :D |
I've got my copy of it working with the help of @JTMaher2's workaround, so that's great. Thing is, I'm working on getting LNP deployed into a Docker container, and I was wondering if there was a setting that I could modify from the command line, rather than trying to open PyLNP and putting in I mean, worst-case scenario I'll just upload the image to Docker Hub and provide build instructions in the readme, but I was hoping to try and make it as seamless as possible. |
Found it! I managed to dig into the docker container, and in the LNP directory is a new file that doesn't exist in the initial installation of LNP, called
So I'm all I need is |
setting my terminal to "xterm -e" does not resolve this problem for me. after making that change, the error in the console for pylnp goes away, but now I just get an xterm popping up then closing. I can barely make out an error related to readline and a missing parameter before it closes. |
Try "xterm -hold -e" |
got same error, but i managed to start it like so: |
Still not working for me in Mint 32: Any thoughts? |
@axxic3 did you try the solution at #7 (comment)? |
Found that file in the root 04024r3-i686 folder. It contains: |
Try
or, if that doesn't work:
|
Also, this is a fairly old pack. You may have better luck with the pack in this thread, which is a pretty recent version of DF. |
I used the pack in the link you provided and the game launched successfully! But now when I try to use lazy newb pack ingame its frozen, so I cant use the utilities. |
Hi guys,
I tried using LNP 04024r3 (downloaded on http://www.lazynewbpack.com/linux/#download).
When I click on "Play" button my terminal shows me the following :
arnaud@arnaud-portable ~/04024r3 $ ./startlnp
/tmp/_MEIivTsik/xdg-terminal: 364: [: x/home/arnaud/04024r3/df_linux/dfhack: unexpected operator
/tmp/_MEIivTsik/xdg-terminal: 367: [: x-x: unexpected operator
nohup: redirection de la sortie d'erreur standard vers la sortie standard
Dwarf Fortress seems to work but it's not cool, isn't it ?
The text was updated successfully, but these errors were encountered: