私は、次のような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