Linux 什么是 xsession 错误?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10222449/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 05:52:12  来源:igfitidea点击:

What is xsession-errors?

linuxubuntuxubuntu

提问by Err

So I was looking into why a program was getting rid of my background, and the author of the program said to post .xsession-errors and many people did. Then my next question was: What is .xsession-errors? A google search reveals many results but nothing explaining what it is.

所以我正在研究为什么一个程序要摆脱我的背景,程序的作者说要发布 .xsession-errors 并且很多人都这样做了。然后我的下一个问题是:什么是 .xsession-errors?谷歌搜索显示了许多结果,但没有解释它是什么。

What I know so far:

到目前为止我所知道的:

  • It's some kind of error log. I can't figure out what it's related too (ubuntu itself? programs?)
  • I have one and it seems like all Ubuntu systems have it, though I cannot verify.
  • 这是某种错误日志。我也无法弄清楚它的相关性(ubuntu 本身?程序?)
  • 我有一个,似乎所有 Ubuntu 系统都有,但我无法验证。

采纳答案by John3136

It's the error log produced by your X windows system (which the Ubuntu GUI is built on top of).

它是由您的 X windows 系统生成的错误日志(Ubuntu GUI 建立在该系统之上)。

Basically it's quite a low level error log for X11.

基本上它是 X11 的相当低级别的错误日志。

回答by Arnon Weinberg

Linux graphical interfaces (such as GNOME) provide a way to run applications by clicking on icons instead of running them manually on the command-line. However, by doing so, output from the command-line is lost - especially the error output (STDERR).

Linux 图形界面(例如 GNOME)提供了一种通过单击图标而不是在命令行上手动运行应用程序来运行应用程序的方法。但是,这样做会丢失命令行的输出——尤其是错误输出 (STDERR)。

To deal with this, some display managers (such as GDM) pipe the error output to ~/.xsession-errors, which can then be used for debugging purposes. Note that since all applications launched this way dump to the same log, it can get quite large and difficult to find specific messages.

为了解决这个问题,一些显示管理器(例如 GDM)将错误输出通过管道传输到 ~/.xsession-errors,然后可以用于调试目的。请注意,由于以这种方式启动的所有应用程序都转储到同一日志,因此查找特定消息可能会变得非常大且难以找到。