Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. From 5cb83c75efa88de760b9d4f2ed622f01938b91ce Mon Sep 17 00:00:00 2001
  2. From: infirit <infirit@gmail.com>
  3. Date: Fri, 4 Sep 2015 22:35:05 +0200
  4. Subject: [PATCH] Cleanup and fix --no-desktop
  5.  
  6. ---
  7. src/caja-main.c | 11 ++++++++---
  8. 1 file changed, 8 insertions(+), 3 deletions(-)
  9.  
  10. diff --git a/src/caja-main.c b/src/caja-main.c
  11. index b829bf6..6a3e307 100644
  12. --- a/src/caja-main.c
  13. +++ b/src/caja-main.c
  14. @@ -474,14 +474,19 @@ main (int argc, char *argv[])
  15. /* If in autostart mode (aka started by mate-session), we need to ensure
  16. * caja starts with the correct options.
  17. */
  18. - if (autostart_mode)
  19. + if (autostart_mode && !no_desktop)
  20. {
  21. no_default_window = TRUE;
  22. no_desktop = FALSE;
  23. }
  24. - else if (running_as_root () || !running_in_mate ())
  25. + else if (autostart_mode && no_desktop)
  26. + {
  27. + no_default_window = TRUE;
  28. + }
  29. +
  30. + /* Never manage desktop when running as root */
  31. + if (running_as_root ())
  32. {
  33. - /* do not manage desktop when running as root or on other desktops */
  34. no_desktop = TRUE;
  35. }
  36.  
  37. --
  38. 2.5.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement