Davmail headless 不能在 Arch Linux 上运行吗?

Davmail headless 不能在 Arch Linux 上运行吗?

我正在使用 AUR davmail 软件包,它附带一个 systemctl 脚本,类似于在这里找到

不幸的是它不起作用。

⚘ systemctl --user status [email protected]                                                                                                                                                                                                                                       9:44:58[email protected] - DavMail for wayne
   Loaded: loaded (/usr/lib/systemd/user/[email protected]; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2016-04-06 09:44:55 CDT; 4s ago
  Process: 9794 ExecStart=/usr/bin/davmail %h/.config/davmail/%i.properties (code=exited, status=0/SUCCESS)
 Main PID: 9794 (code=exited, status=0/SUCCESS)

Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventQueue$3.run(EventQueue.java:703)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.security.AccessController.doPrivileged(Native Method)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
Apr 06 09:44:54 arglefraster davmail[9794]:         at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

当我尝试运行 ExecStart 使用的相同命令时:

⚘ /usr/bin/davmail /home/wayne/.config/davmail/wayne.properties                                                                                                                                                                                                                       9:54:11
Exception in thread "SWT" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
    at org.eclipse.swt.widgets.Display.create(Unknown Source)
    at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at davmail.ui.tray.SwtGatewayTray$5.run(SwtGatewayTray.java:217)
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
    at java.awt.Window.<init>(Window.java:536)
    at java.awt.Frame.<init>(Frame.java:420)
    at java.awt.Frame.<init>(Frame.java:385)
    at javax.swing.JFrame.<init>(JFrame.java:189)
    at davmail.ui.tray.FrameGatewayTray.createAndShowGUI(FrameGatewayTray.java:272)
    at davmail.ui.tray.FrameGatewayTray$8.run(FrameGatewayTray.java:195)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

我真的很想能够真正运行 davmail 而不需要 GUI(最明显的原因是我的 Xorg 最终会耗尽 CPU,但这是另一个问题)。我在 Google 上搜索了一些内容,但无济于事(而且 davmail --help 显然不是一个命令)。

如何在没有 X 显示器的情况下使 davmail 正常工作?

答案1

听起来你并没有davmail.server=true告诉davmail.properties它它应该是无头的。

DavMail 设置为独立服务器

相关内容