Parece que você não definiu davmail.server=true
em davmail.properties
para dizer que é supostamente sem cabeça.
Estou usando o pacote davmail do AUR que vem com um script systemctl, semelhante ao encontrado aqui .
Infelizmente isso não funciona.
⚘ 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)
Quando tento executar o mesmo comando que o ExecStart usa:
⚘ /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)
Eu realmente adoraria poder executar o davmail sem precisar de uma GUI (mais notavelmente porque meu Xorg acaba com a CPU, mas é uma questão diferente). Eu fiz alguns pesquisando ao redor, sem sucesso (e davmail - help aparentemente não é um comando).
Como posso obter o davmail funcionando sem um display X?
Parece que você não definiu davmail.server=true
em davmail.properties
para dizer que é supostamente sem cabeça.
Tags systemd davmail arch-linux