Bug 1240305 - Caja Loads a Dozen Windows on Login
Summary: Caja Loads a Dozen Windows on Login
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-06 14:05 UTC by Randy Berry
Modified: 2016-07-19 15:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 15:13:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Randy Berry 2015-07-06 14:05:27 UTC
Description of problem:
Caja spawns a dozen windows every time a user logs in. Even when using Xfce.

Version-Release number of selected component (if applicable):
caja-1.10.1-4.fc22.x86_64


How reproducible:
Every time

Steps to Reproduce:
1. Login your user.
2. Just watch.
3.

Actual results:
A dozen Caja windows open when the desktop appears. 

Expected results:
Clean desktop.

Additional info:
I'm not even running MATE desktop, I have no idea why Caja loads itself a doszen times every time I login.

Comment 1 Randy Berry 2015-07-06 14:27:11 UTC
Ran - dnf distro-sync 
Same results, caja still loads a dozen (or more) windows when user logs in.

Comment 2 Wolfgang Ulbrich 2015-07-06 15:48:55 UTC
Please do not double posting!

*** This bug has been marked as a duplicate of bug 1240308 ***

Comment 3 Randy Berry 2015-07-06 15:59:20 UTC
This is a different bug. Caja loads a dozen times on login with NO user intervention. It is NOT a duplicate. of 1240308!

Comment 4 Wolfgang Ulbrich 2015-07-06 16:38:30 UTC
Do you really use caja for session start in xfce!!!!
Caja is develop for mate-desktop and not for using it with session start in xfce.
Why did you that?
And why do you expect that this will work.
Caja needs more other components for session start which aren't in xfce.
Sorry, this isn't a bug
It is impossible to replace thunar with caja for xfce.
Try out mate.

Comment 5 Randy Berry 2015-07-06 16:43:03 UTC
No I DO NOT use caja at startup. It is loading itself without my intervention. It is really annoying. I've removed mate. Problem solved. Thanks for not understanding.

Comment 6 Wolfgang Ulbrich 2015-07-06 17:23:49 UTC
Normaly, caja doesn't start at session login in other desktops because /usr/share/applications/caja.desktop has this entry
OnlyShowIn=MATE

This means this desktop file is only vissible in mate session.

Your description is very short and implement that you use caja for session start.
Please beware that you not the only one that files out reports which i've to answer.
A good description with more than one sentence helps us to understand better what the prob is.

Comment 7 Fedora Update System 2015-07-06 19:30:19 UTC
caja-1.10.1-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/caja-1.10.1-5.fc22

Comment 9 Wolfgang Ulbrich 2015-07-30 08:32:07 UTC
i could reproduce the issue in a VM, but for some reason xfce-session stored caja in save sessions. After deleting save-sessions caja doesn't start anymore.
So, this is a problem with xfce-session-managment!

Comment 10 Wolfgang Ulbrich 2015-07-30 08:37:49 UTC
Dear supporter,
please check save sessions in xfce-session-managment.

Comment 11 Kevin Fenzi 2015-07-30 16:30:28 UTC
Can you explain reproduction steps? 

Just install caja package, login to Xfce session, logout saving session and login again to see the issue? 

Or did you have to run caja in the first session?

Comment 12 Randy Berry 2015-07-30 17:09:34 UTC
Apparently at some point I must have logged out and saved a session with caja running. However, I did delete all my saved session data as part of an attempt to get rid of it. No dice. Several windows were still spawned at login. At no point in time had I had that many caja windows loaded (1 or 2 at the most) so I don't know how or why it spawned so many at login.

Even after I removed mate it was still calling for caja to load. (.xsession-errors) I forget what it was I did to fix it now. I just started trying things and eventually it stopped. I don't recall the step I took to resolve it.

There is no reason why caja shouldn't be able to run with all the deps installed. Gnome software still runs fine on Xfce as does KDE. I run some apps from both in Xfce and have no problems.

Comment 13 Wolfgang Ulbrich 2015-07-30 18:02:15 UTC
Steps to reproduce:
with caja-1.10.3

1 install caja
2 start it from a terminal with caja --sm-client-disable
( --sm-client-disable is needed for another prob with caja + xfce)
3 save session
4 close caja
5 restart session

The reasson for this spawned windows is that caja try to start in daemon mode (or try to handle the desktop, writing icons, etc).
But xfce blocks this request and caja crashed an tries to start again, because of

[root@mother rave]# cat /usr/share/applications/caja.desktop | grep 'X-MATE-AutoRestart=true'
X-MATE-AutoRestart=true

With > caja-1.10.2 upstream has fixed caja to do not use daemon mode in other desktops or running as root.
https://github.com/mate-desktop/caja/commit/4b0d231fdf8dfd6d299ec07cc933000a610f0a74
For some reason if caja is in save session this will be ignored.
This works in other desktops like gnome or cinnamon pretty well.

A save mode to use caja in xfce is to create a desktop starter with this command line.
'caja --sm-client-disable --no-desktop --browser'

Comment 14 Kevin Fenzi 2015-08-05 17:30:34 UTC
So, I just tried this with 1.10.3 here (rawhide). 

What issue is the --sm-client-disable needed for? (I forgot to add that and things all just worked as expected, ie, I started one caja instance, saved my session, logged out and back in and got 1 caja running). 

The session had: 
Client4_RestartCommand=caja,--sm-client-id,2c08156dc-8056-4688-a02c-8e1b860e0c27,--sm-client-state-file,/home/demo/.config/session-state/caja-1438795430.desktop
for the command.

Comment 15 Wolfgang Ulbrich 2015-08-05 18:58:31 UTC
(In reply to Kevin Fenzi from comment #14)
> So, I just tried this with 1.10.3 here (rawhide). 
> 
> What issue is the --sm-client-disable needed for? (I forgot to add that and
> things all just worked as expected, ie, I started one caja instance, saved
> my session, logged out and back in and got 1 caja running). 
see https://bugzilla.redhat.com/show_bug.cgi?id=1250404
another prob with caja + xfce :-/

Comment 16 Kevin Fenzi 2015-08-05 22:24:13 UTC
huh. I definitely see that here too... strange. ;( 

will ponder on it and see if I can think of anything we can do to isolate it more.

Comment 17 Fedora End Of Life 2016-07-19 15:13:08 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.