Xfce: Difference between revisions
imported>Mucaho fix typos |
imported>Mucaho Added troubleshooting entry for running Java applications on xmonad (and best approach when combined with xfce) |
||
| Line 122: | Line 122: | ||
After logging in you will be greeted by xfce's desktop which interferes with xmonad. To solve this issue you have to remove the <code>xfdesktop</code> process from being started in the session. | After logging in you will be greeted by xfce's desktop which interferes with xmonad. To solve this issue you have to remove the <code>xfdesktop</code> process from being started in the session. | ||
Open the session manager in the application launcher with <code>MOD(+SHIFT)+p</code> and then typing in "Session and Startup". Go to tab "Session" and set the restart style of <code>xfdesktop</code> to "Never". Kill the process with "Quit program", then "Save session." After this, xfce4 and xmonad will work together nicely. | Open the session manager in the application launcher with <code>MOD(+SHIFT)+p</code> and then typing in "Session and Startup". Go to tab "Session" and set the restart style of <code>xfdesktop</code> to "Never". Kill the process with "Quit program", then "Save session." After this, xfce4 and xmonad will work together nicely. | ||
===== Java-based GUI applications ===== | |||
Java-based applications may not work properly with xmonad. The applications main window may stay blank or gray on startup. This is a known issue with some versions of Java, where xmonad is not recognized as a "non-reparenting" window manager. There are multiple solutions to this problem as described on xmonad's FAQ page. | |||
One alternative is to fake xmonad's window manager name, after running the EMWH initialization. This particular approach works well when running xmonad alongside the xfce-based desktop (described above). | |||
{{file|~/.xmonad/xmonad.hs|haskell| | |||
<nowiki> | |||
import XMonad | |||
import XMonad.Config.Xfce | |||
import XMonad.Hooks.EwmhDesktops | |||
import XMonad.Hooks.SetWMName | |||
main = xmonad xfceConfig | |||
{ terminal = "xfce4-terminal" | |||
, modMask = mod4Mask -- Use Win as MOD key | |||
, startupHook = ewmhDesktopsStartup >> setWMName "LG3D" -- for some reason the double greater sign is escaped here due to wiki formatting, replace this with proper greater signs! | |||
} | |||
</nowiki> | |||
}} | |||
===== Additional resources ===== | ===== Additional resources ===== | ||
| Line 134: | Line 155: | ||
[https://wiki.haskell.org/File:Xmbindings.png Haskell Wiki: Xmonad default key bindings] | [https://wiki.haskell.org/File:Xmbindings.png Haskell Wiki: Xmonad default key bindings] | ||
[https://wiki.haskell.org/Xmonad/Frequently_asked_questions#Problems_with_Java_applications.2C_Applet_java_console Haskell Wiki FAQ: Problems with Java applications] | |||
== Troubleshooting == | == Troubleshooting == | ||