[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1067673: caja: The Caja Open With... environment menu does not show the Geany text editor (sh and desktop files)



Package: caja
Version: 1.26.1-1+deb12u1
Severity: normal

Dear Maintainer,

* The Open With... menu only thinks it is hidden for sh and desktop files.
* The expectation is that if I select Geany in the file properties, then
a) appear in the Open With.. menu (I can select it)
b) two mouse clicks on the file will also cause Geany to open the file: at
least, the sh scripts.
* Another weird thing is that if I set two applications for files (sh or
desktop) in the file properties -and this is the default anyway- it works
"foolproof".

If it is set in ~/.config/ in the mimeapps.list file (shortcut),

[Default Applications]
application/x-desktop=libreoffice-writer.desktop
application/x-shellscript=libreoffice-writer.desktop

[Added Associations]
application/x-shellscript=geany.desktop;libreoffice-writer.desktop;
text/x-shellscript=geany.desktop;
text/x-desktop=geany.desktop;
application/x-desktop=libreoffice-writer.desktop;geany.desktop;

what happens is that in the Open With... menu, Open With: Geany appears, but if
I double-click on the file, LibreOffice Writer opens it.
This is when I select LibreOffice as the default association! When I select
Geany as the default application, LibreOffice appears as the menu to open with,
and when I double-click Geany, the file opens. This is some kind of reverse
operation.
Now, let's ignore the desktop settings in the example, because on that, if I
double-click, I'm launching the application...

* The Open With... menu only thinks it is hidden for sh and desktop files.
However, it is definitely expected to work here.

* The things I have done:

1) I edited the geany.desktop file in /usr/share/applications/ and added four
new settings at the end of MimeTypes=:

text/x-shellscript;text/x-desktop;application/x-shellscript;application/x-desktop;

2)
a) I have checked the contents of the mimeinfo.cache file
(/usr/share/applications/), and I see that it contains the correct settings:

application/x-shellscript=geany.desktop;vim.desktop;
application/x-desktop=geany.desktop;
text/x-shellscript=geany.desktop

b) I put this in,

text/x-desktop=geany.desktop;

then I ran it.

sudo update-desktop-database

The contents of the file have been updated.

And I ran it.

sudo update-mime-database /usr/share/mime

3) And I copied the geany.desktop file from /usr/share/applications/ to
~/.local/share/applications/.

None of the solutions helped...

* MATE and System

inxi -Szxxx
System:
Kernel: 6.7.10-3-liquorix-amd64 arch: x86_64 bits: 64 compiler: gcc
v: 12.2.0 Desktop: MATE v: 1.26.0 info: mate-panel wm: marco v: 1.26.1 vt:
7
dm: LightDM v: 1.26.0 Distro: Debian GNU/Linux 12 (bookworm)


file -b --mime-type install.sh
text/x-shellscript

xdg-mime query filetype install.sh
application/x-shellscript

file -b --mime-type geany.desktop
text/plain

xdg-mime query filetype geany.desktop
application/x-desktop



-- System Information:
Debian Release: 12.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'stable'), (100, 'proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.10-3-liquorix-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages caja depends on:
ii caja-common 1.26.1-1+deb12u1
ii desktop-file-utils 0.26-1
ii gvfs 1.50.3-1
ii libatk1.0-0 2.46.0-5
ii libc6 2.36-9+deb12u4
ii libcairo-gobject2 1.16.0-7
ii libcairo2 1.16.0-7
ii libcaja-extension1 1.26.1-1+deb12u1
ii libexempi8 2.6.3-1
ii libexif12 0.6.24-1+b1
ii libgail-3-0 3.24.38-2~deb12u1
ii libgdk-pixbuf-2.0-0 2.42.10+dfsg-1+b1
ii libglib2.0-0 2.74.6-2
ii libglib2.0-bin 2.74.6-2
ii libglib2.0-data 2.74.6-2
ii libgtk-3-0 3.24.38-2~deb12u1
ii libice6 2:1.0.10-1
ii libmate-desktop-2-17 1.26.0-2
ii libnotify4 0.8.1-1
ii libpango-1.0-0 1.50.12+ds-1
ii libpangocairo-1.0-0 1.50.12+ds-1
ii libselinux1 3.4-1+b6
ii libsm6 2:1.2.3-1
ii libx11-6 2:1.8.4-2+deb12u2
ii libxml2 2.9.14+dfsg-1.3~deb12u1
ii mate-desktop 1.26.0-2
ii shared-mime-info 2.2-1

Versions of packages caja recommends:
ii gvfs-backends 1.50.3-1
ii gvfs-fuse 1.50.3-1

Versions of packages caja suggests:
ii engrampa 1.26.0-1+deb12u2
pn gstreamer1.0-tools <none>
pn meld <none>

-- no debconf information


Reply to: