有无办法用deepin-terminal运行矮人要塞懒人包?
Tofloor
poster avatar
timmi
deepin
2017-11-23 08:38
Author
本帖最后由 timmi 于 2017-11-23 13:44 编辑

有无办法用deepin-terminal运行矮人要塞懒人包?

目前可以用xterm运行,但是装两个终端怪难受的

包地址:http://dffd.bay12games.com/file.php?id=12762


目前已经做的:
安装了依赖包:sudo apt-get install default-jre libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libglu1-mesa libgtk2.0-0 libopenal1 libjpeg62 wget coreutils tar xterm sed python bzip2 qtchooser libqt4-script libqt4-scripttools libqt5script5 libqt5scripttools5 libqxt-core0 libqxt-gui0
安装了xterm:sudo apt-get install xterm
设置终端为xterm:file ==> configure terminal ==> xterm


如果设置终端为deepin终端的话,报错为:Running PyLNP 0.12b (OS: linux, Compiled: True)
INFO: Read installed graphics (Phoebus) from log
INFO: Installing embark profiles: [u'default_profiles.txt', u'advanced_profiles.txt']
INFO: Installing embark profiles: [u'default_profiles.txt']
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 115, in run_program
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/subprocess", line 710, in __init__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/subprocess", line 1335, in _execute_child
OSError: [Errno 2] No such file or directory
ERROR: Could not launch ./df_linux/dfhack
Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/Tkinter", line 1532, in __call__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 55, in run_df
Exception: Failed to run Dwarf Fortress.
Traceback (most recent call last):
  File "", line 12, in
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.lnp", line 126, in __init__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/tkgui.tkgui", line 257, in start
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/Tkinter", line 1121, in mainloop
KeyboardInterrupt


--------------------------
原问题:.service error:在终端输入/usr/bin/deepin-terminal出现的问题

** (deepin-terminal:6684): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

按网上说 export NO_AT_BRIDGE=1 也没用

求大神


Reply Favorite View the author
All Replies
avatar
timmi
deepin
2017-11-23 19:30
#1
自挽                                             
Reply View the author
avatar
wangyong
deepin
2017-11-23 20:35
#2
这个没影响,直接忽略
Reply View the author
avatar
timmi
deepin
2017-11-23 21:06
#3
https://bbs.deepin.org/post/148808
这个没影响,直接忽略

http://dffd.bay12games.com/file.php?id=12762

其实是运行矮人要塞懒人包的时候出现的问题。大佬帮我看看怎么才能成功运行吧。本来就不会代码,网上也找不到正确的资料,要疯了
Reply View the author
avatar
timmi
deepin
2017-11-23 21:07
#4
Running PyLNP 0.12b (OS: linux, Compiled: True)
INFO: Read installed graphics (Phoebus) from log
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 115, in run_program
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/subprocess", line 710, in __init__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/subprocess", line 1335, in _execute_child
OSError: [Errno 2] No such file or directory
ERROR: Could not launch ./df_linux/dfhack
Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/Tkinter", line 1532, in __call__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 55, in run_df
Exception: Failed to run Dwarf Fortress.

在configure terminal 加入了 export NO_AT_BRIDGE=1,然后安装了xterm以后,现在报错是这个
Reply View the author
avatar
timmi
deepin
2017-11-23 21:11
#5
运行 ./df_linux/dfhack的结果

[distro_fixes] [INFO] Checking whether any distro specific fixes are required...
[distro_fixes] [INFO] OS: deepin
[distro_fixes] [INFO] ARCH: x86_64
[distro_fixes] [INFO] VER: 15.5 Beta
[distro_fixes] [INFO] DF_ARCH: 64-bit
[distro_fixes] [INFO] DF_BIN_LOCATION: /home/timmi/LinuxLNP-0.43.05-r06/df_linux/libs/Dwarf_Fortress
[distro_fixes] [INFO] PRELOAD_LIB:
[distro_fixes] [INFO] LD_LIBRARY_PATH:
[distro_fixes] [INFO] Done
./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory

Reply View the author
avatar
timmi
deepin
2017-11-23 21:17
#6
sudo apt-get install libsdl1.2debian libsdl-image1.2 libSDL-ttf2.0-0 以后,可以成功运行./df_linux/dfhack,但是运行./startlnp的话还是会出现5L的报错
Reply View the author
avatar
timmi
deepin
2017-11-23 21:28
#7
把configure terminal设置为xterm姑且暂时成功了。但我想知道又办法用deepin 的terminal 运行吗?一个系统里装两个terminals有点挺难受的
Reply View the author
avatar
timmi
deepin
2017-11-24 19:30
#8
自挽                                    
Reply View the author
avatar
wangyong
deepin
2017-11-27 03:52
#9
警告“Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files”
附件中的deb开发版本已经修复这条警告信息,参考补丁:https://github.com/manateelazyca ... 5ac2a9a9fe29a723c2e


楼主说的只有 xterm 才能运行的问题,从软件的依赖看,很有可能是软件代码里面本身写死了用 xterm, 唯一的解决方案就是看他的源代码,把里面的 xterm 换成 deepin-terminal 重新编译就可以了。








====================================
默认终端找不到深度终端的原因分析:
1、Gnome的Glib库查找终端只有几个终端白名单,如果找不到白名单里面的就只用 xterm
2、很多游戏和软件代码里面写死了只用 xterm


针对第一个问题,deepin的系统中有完整的终端配置方法,可以自定义,别的系统不知道有没有这个问题
针对第二个问题,就有点像楼主的这个问题了,比较讨厌,如果软件本身可以定制(比如 VSCode)就还好,如果软件不能自定义就只能改源代码重新编译了




Reply View the author
avatar
wangyong
deepin
2017-11-27 03:54
#10
有一个比较猥琐的办法,创建一个 xterm 的软连接,这样就不用安装两个终端了。

方法:
1、先卸载xterm: sudo apt-get purge xterm
2、建立xterm软链接:sudo ln -s /usr/bin/deepin-terminal /usr/bin/xterm
Reply View the author
avatar
timmi
deepin
2017-11-30 07:14
#11
https://bbs.deepin.org/post/148808
有一个比较猥琐的办法,创建一个 xterm 的软连接,这样就不用安装两个终端了。

方法:

Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 115, in run_program
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/subprocess", line 710, in __init__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/subprocess", line 1335, in _execute_child
OSError: [Errno 2] No such file or directory
ERROR: Could not launch ./df_linux/dfhack
Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/Tkinter", line 1532, in __call__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.launcher", line 55, in run_df
Exception: Failed to run Dwarf Fortress.
^CTraceback (most recent call last):
  File "", line 12, in
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/core.lnp", line 126, in __init__
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/tkgui.tkgui", line 257, in start
  File "/home/michael/Desktop/df/python_lnp/build/lnp/out00-PYZ.pyz/Tkinter", line 1121, in mainloop
KeyboardInterrupt

报错这个。。。

我还是把xterm装回来吧。。。
Reply View the author
avatar
timmi
deepin
2017-11-30 21:04
#12
https://bbs.deepin.org/post/148808
有一个比较猥琐的办法,创建一个 xterm 的软连接,这样就不用安装两个终端了。

方法:

我的天,更新了一波系统,然后下了r07的新包,突然可以用deepin-terminal运行游戏了
感觉应该是更新系统的作用?
谢谢官方team诸位大佬
Reply View the author
avatar
timmi
deepin
2017-11-30 21:05
#13
哈哈哈用deepin-terminal 玩的感觉舒服多了。终于把xterm卸了
Reply View the author