저는 다음과 유사한 systemctl 스크립트와 함께 제공되는 AUR davmail 패키지를 사용하고 있습니다.여기에서 발견.
불행히도 작동하지 않습니다.
⚘ 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)
나는 실제로 GUI 없이도 davmail을 실행할 수 있기를 바랍니다. (가장 분명한 이유는 Xorg가 결국 CPU가 부족하기 때문이지만 이는 또 다른 문제입니다.) Google에서 조금 검색했지만 아무 소용이 없습니다(그리고 davmail --help는 분명히 명령이 아닙니다).
X 모니터 없이 davmail을 작동시키려면 어떻게 해야 합니까?
답변1
머리가 없어야 한다고 davmail.server=true
말하지 않은 것 같습니다 .davmail.properties