Caja starting slow

Forum rules
Before you post please read how to get help
Arp
Level 2
Level 2
Posts: 82
Joined: Mon Mar 11, 2013 8:41 am

Caja starting slow

Postby Arp » Sun Dec 01, 2013 8:43 pm

Hi,

I just installed Mint 16 with Mate 64Bit, and I noticed, that when I go to Places -> Home Folder, or which ever is there, it takes a couple of seconds to open it. After that I can go into any folder / device almost instantly, but the start of caja is rather slow.
It seemed to be faster in Mint 15.
Anybody else noticed this?

User avatar
georgegerm
Level 2
Level 2
Posts: 57
Joined: Sun Sep 14, 2008 11:16 am

Re: Caja starting slow

Postby georgegerm » Mon Dec 02, 2013 12:25 am

Arp wrote:Hi,

I just installed Mint 16 with Mate 64Bit, and I noticed, that when I go to Places -> Home Folder, or which ever is there, it takes a couple of seconds to open it. After that I can go into any folder / device almost instantly, but the start of caja is rather slow.
It seemed to be faster in Mint 15.
Anybody else noticed this?


i use mate 15 and notice caja is also slow. it seems from my perspective slower than previous versions. some amy not agree but it is my perspective.
viva el minto REVOLUTION!!!!!

james.ryan
Level 1
Level 1
Posts: 3
Joined: Tue Dec 03, 2013 8:27 am

Re: Caja starting slow

Postby james.ryan » Tue Dec 03, 2013 8:36 am

Hi,

i have the same problem here. I upgraded from LM15 to 16 via apt. Caja starts instantly, when I open a drive from the desktop and takes ages when using the Places menu. I did not notice this behavior using LM15.

Maybe someone has an idea, how to fix this. But it's only a flaw in the perfect linux distro.


Thanks

User avatar
georgegerm
Level 2
Level 2
Posts: 57
Joined: Sun Sep 14, 2008 11:16 am

Re: Caja starting slow

Postby georgegerm » Tue Dec 03, 2013 5:53 pm

i think i will wait till i am free and install mate 16. from dvd. fresh install. no video on skype, cheese,yet camera works on a windows partition...
besides i know i have a trojan 100 percent now, that is as of yesterday. call bundespolizei trojan. with linux if once you are infect in firefox is as i see if game over.
it changes very rapid, the popularity of linux has grown. extra with good distros as mint. consideration must be slowly made to better alternatives than clam or avast.
caja was dead in the water before this however.
viva el minto REVOLUTION!!!!!

User avatar
georgegerm
Level 2
Level 2
Posts: 57
Joined: Sun Sep 14, 2008 11:16 am

Re: Caja starting slow

Postby georgegerm » Tue Dec 03, 2013 5:54 pm

--called--
viva el minto REVOLUTION!!!!!

Aphotica
Level 1
Level 1
Posts: 1
Joined: Tue Dec 03, 2013 8:21 pm

Re: Caja starting slow

Postby Aphotica » Tue Dec 03, 2013 8:24 pm

The same happens to me.

If I run "caja" from a terminal, it opens instantly. If I call it up from the applications menu, it works instantly. The problem is somewhere in the Places menu. I'm going to mess with dconf-editor and see if I can fix this.

I'll keep updating.

User avatar
georgegerm
Level 2
Level 2
Posts: 57
Joined: Sun Sep 14, 2008 11:16 am

Re: Caja starting slow

Postby georgegerm » Tue Dec 03, 2013 8:43 pm

thats good. also while you are it in mate consider no video on cheese, or skype. the trojan issue maybe a look at thing also. i am not being sarcastic. i do miss the older mints.
viva el minto REVOLUTION!!!!!

Honest Mistake
Level 1
Level 1
Posts: 47
Joined: Mon Mar 05, 2012 4:40 am

Re: Caja starting slow

Postby Honest Mistake » Thu Dec 05, 2013 6:52 am

It looks like I have the same problem. Caja opens very slowly when started from MATE menu bar or panel shortcut (with about 4 seconds delay). When started from terminal, desktop, another caja window or even mint menu it starts instantly. And once started it works normaly. Strange.

Arp
Level 2
Level 2
Posts: 82
Joined: Mon Mar 11, 2013 8:41 am

Re: Caja starting slow

Postby Arp » Sat Dec 07, 2013 10:27 pm

georgegerm wrote: the trojan issue maybe a look at thing also


What trojan issue? Please clarify.

yp2
Level 1
Level 1
Posts: 2
Joined: Thu Dec 19, 2013 1:33 pm

Re: Caja starting slow

Postby yp2 » Thu Dec 19, 2013 1:47 pm

Hi,

I have solution for caja slow start. I dig in config files especially

Code: Select all

~/.local/share/applications/mimeapps.list

in entry that's refer to inode/directory stands caja.desktop.
I look in to caja.desktop in

Code: Select all

/usr/share/applications/caja.desktop

On the bottom of this file I found this line:

Code: Select all

Exec=/usr/bin/startcaja

startcaja does nothing only takes time. So I change in ~/.local/share/applications/mimeapps.list entry that's refer to inode/director to caja-browser.desktop . Now caja starts normally from places menu.
Desktop file for caja-browser start caja like this:

Code: Select all

caja --no-desktop --browser %U

I think that was the problem :)
Check it :)

Arp
Level 2
Level 2
Posts: 82
Joined: Mon Mar 11, 2013 8:41 am

Re: Caja starting slow

Postby Arp » Sun Dec 22, 2013 3:08 pm

Hi yp2,

That does not really help... for example, in my ~/.local/share/applications/mimeapps.list file, there are just a couple of lines regarding file associations for VLC... nothing about caja.desktop.

But I do have

Code: Select all

Exec=/usr/bin/startcaja
in /usr/share/applications/caja.desktop.

What exactly did you change? Did you change this line to

Code: Select all

caja --no-desktop --browser %U
?

james.ryan
Level 1
Level 1
Posts: 3
Joined: Tue Dec 03, 2013 8:27 am

Re: Caja starting slow

Postby james.ryan » Tue Dec 24, 2013 5:26 pm

Hi,

I looked at this file: /usr/bin/startcaja. It says

Code: Select all

sleep 3
caja -n "$@"


and I changed it to

Code: Select all

#sleep 3
caja -n "$@"
.

Then caja starts instantly. Does anyone know why this line was added before the caja startup command? Is this delay necessary for some mounts etc? I did not notice a different behavior with the delay command commented out.

Merry Xmas!

Arp
Level 2
Level 2
Posts: 82
Joined: Mon Mar 11, 2013 8:41 am

Re: Caja starting slow

Postby Arp » Tue Dec 24, 2013 6:59 pm

Thanks,

Works like a charm and is very simple! :)

yp2
Level 1
Level 1
Posts: 2
Joined: Thu Dec 19, 2013 1:33 pm

Re: Caja starting slow

Postby yp2 » Fri Jan 03, 2014 6:31 am

In my mimeapps.list

Code: Select all

cat ~/.local/share/applications/mimeapps.list | grep inode

after change entry for inode/directory look like this

Code: Select all

inode/directory=caja-browser.desktop
inode/directory=caja-browser.desktop

This change takes care of slow caja start.

Hoser Rob
Level 9
Level 9
Posts: 2833
Joined: Sat Dec 15, 2012 8:57 am

Re: Caja starting slow

Postby Hoser Rob » Sat Jan 04, 2014 10:57 am

georgegerm wrote:... i know i have a trojan 100 percent now, that is as of yesterday. call bundespolizei trojan...


I also want to know how you know this. I searched the ubuntu forums for 'bundespolizei'. Nothing. Same on fedora or arch forums. Those are the most comprehensive linux support forums by far. Yes, more so than mint forums.

The only web search hit I got pertaining to linux was on one blog. Those are often written by incompetents who think they know what they're talking about, if they're not just shills.

So I definitely want to hear how you "100 percent" know this.

Re. caja starting slow ... I use dolphin for my file browser in mate, and it takes even longer to start. But once it does it's still faster. More power.

twistedturtle
Level 1
Level 1
Posts: 1
Joined: Sat Mar 15, 2014 7:15 am

Re: Caja starting slow

Postby twistedturtle » Sat Mar 15, 2014 7:48 am

I looked at this file: /usr/bin/startcaja. It says

Code: Select all
sleep 3
caja -n "$@"


Thanks. :) IMHO this is the better solution, it actually fixes the issue instead of creating a workaround which may change the behaviour of caja.

Disclaimer: I haven't tried the other one, just looked up what the new command did in caja manpage. For anyone who wants to know --no-desktop means it doesn't manage the desktop. --browser is meant to open a browser window, just seems to open up caja. %U is an application parameter which treats any arguments to the caja command as a list of urls to open (works on others too ie. firefox).

Doubt if any of that makes much difference but, assuming there's no ill effect and so far there hasn't been, I'd rather just comment out the line causing the lag. :)

Mematis
Level 1
Level 1
Posts: 1
Joined: Mon Jun 16, 2014 2:51 am

Re: Caja starting slow

Postby Mematis » Mon Jun 16, 2014 3:00 am

Thank you for this topic. The line "sleep 3" explains it all. No matter how fast or slow a computer I tested this on, the response time from starting caja from the Mate menu was always between 3 and 4 seconds, so I figured there had to be a deliberate delay.

Thanks again.

APSy
Level 1
Level 1
Posts: 1
Joined: Mon Jul 21, 2014 11:26 am

Re: Caja starting slow

Postby APSy » Mon Jul 21, 2014 11:34 am

Hi there,

I dont know if it helps someone, but my issue with LM 14 was that i had many files in my Templates folder which is in your home dir by default. The purpose is that you can create new files with right-klick and than you can browse the files you put into the Template folder. I have put into my folder a small CMS because it was a "Template" for me which i needed all the time, at the end i got about 10k files in int and whole Caja was really slow. I didnt know that the reason were the Template folder but one night i just moved them, dont know why and recognized that Caja got up to his normal speed, so i now just have about 10 files as Templates.

Hope this will help someone who got the same problem like me

cheers APSy

philhippos
Level 1
Level 1
Posts: 1
Joined: Thu Aug 07, 2014 6:30 am

Re: Caja starting slow

Postby philhippos » Thu Aug 07, 2014 7:36 am

I have found the same issue in '/usr/bin/startcaja'.
Delete this line and caja starts normally again:

Code: Select all

sleep 3


I don't see any reason, why one would like to have this sleep-command, other than only for debugging purposes, so I like to change this, because it annoyes everyone.
I could find only https://github.com/tuquito/ubuntu-system-adjustments, but this seems not the be the "real" package, because it only contains some minor things and seems to be some private thing...
And on the Linux Mint Github https://github.com/linuxmint this package is not listed...
Can someone tell me, where I can change the package "ubuntu-system-adjustments"?


Return to “MATE”