You are not logged in.

#1 2023-11-10 17:04:05

ondono
Member
Registered: 2020-10-29
Posts: 8

[SOLVED] Caja desktop entry

So, I've been looking around and can't find out if this is a bug or intended behavior, so I wanted to ask here first before raising bug reports elsewhere.

I've been using Caja for quite some time, but it never shows on rofi/dmenu. I figured out that the reason was that I had no `.desktop` entry for it on `.local/share/applications'. After some digging trying to find one (and failing), I just manually rolled my own. The issue is simple, each there's a new update, my handcrafted `.desktop` entry gets deleted, and I need to recreated or recover a copy. Is this normal? Am I missing something here?

Last edited by ondono (2023-11-19 21:20:39)

Offline

#2 2023-11-10 17:08:48

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Caja desktop entry

There shouldn't be .desktop files in your home dir, they're in the package in /usr.

Online

#3 2023-11-10 17:37:19

ondono
Member
Registered: 2020-10-29
Posts: 8

Re: [SOLVED] Caja desktop entry

> There shouldn't be .desktop files in your home dir, they're in the package in /usr.

I am seeing for the first time now that they're set as deprecated on the Archlinux Wiki, but rofi seems to still use them, so I don't think I have much choice for now. I guess I'll have to keep pasting copies there until rofi gets an update.

Thanks

Offline

#4 2023-11-10 18:36:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] Caja desktop entry

Rofi doesn't ignore global desktop services - what does your local caja.desktop look like (filename and content) in comparism to the one in /usr/share/applications/ ?
Did you try to remove the rofi  cache(s) in ~/.cache  ?

Offline

#5 2023-11-10 21:45:29

ondono
Member
Registered: 2020-10-29
Posts: 8

Re: [SOLVED] Caja desktop entry

After some more digging, I've realized the system's "caja.desktop" has the following lines:

caja.desktop wrote:

NoDisplay=true
OnlyShownIn=MATE

Which are the obvious culprit, if I comment those lines caja shows back on the list. I've copied the file to ~/.local/share/applications and made the change to my user copy. Thanks for all the help.

Now the only thing bugging me is Scimmia's comment that I should not have those..

Offline

#6 2023-11-10 23:43:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Caja desktop entry

If you're putting them in your home dir specifically to override the packaged one, that's fine. I was just saying that they were in the package, so it's not something that was just missing and you need to do yourself.

Online

#7 2023-11-11 08:01:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] Caja desktop entry

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB