You are not logged in.

#1 2017-12-20 23:06:32

lo1
Member
Registered: 2017-09-25
Posts: 584

[SOLVED] xdg-open: Chromium and LXDE ignoring mimeapps.list

Posting here because I think this is more about "expertise" than fixing your own system.

So, been using LXDE and Chromium since months and never experienced problems with mime types until some days ago.

I installed eve-ng-integration, which is a tool that integrates the EVE-NG virtual machine with the host desktop.

The goal is to open wireshark to sniff packets from the virtual links inside the topology, and after dealing with the known issues as per https://github.com/SmartFinn/eve-ng-integration I can't get it working and still, while x11-ssh-askpass asks for my VM password, a new chromium window gets opened instead of wireshark.

What I've tried so far:

-as I said, tried the fixes suggested in the github page, but still no luck;

-of course tried with another browser (tried qupzilla and midori to no avail);

-added manually mime types like this:

echo "x-scheme-handler/capture=eve-ng-integration.desktop >> ~/.local/share/applications/mimeapps.list

and so on;

-also, according to https://wiki.archlinux.org/index.php/De … G_standard , each of the possible location was either non-existent or putting the mime type there didn't change anything;

-tried LITERALLY deleting anything related to chromium, lxde, pcmanfm or openbox inside the mimeapps.list(s), still nothing.

-tried editing /usr/bin/xdg-open like this:

...
detectDE

if [ x"$DE" = x"" ]; then
    DE=lxde
fi
...
generic)
    pcmanfm "$url"
    ;;
...

After I've restored my .local/share/applications/mimeapps.list, it looks like this http://paste2.org/4EMAFICy , while:

cat ~/.config/mimeapps.list 
[Added Associations]
audio/mpeg=rhythmbox.desktop;lxmusic.desktop;
application/octet-stream=beaver.desktop;
image/webp=gpicview.desktop;

[Default Applications]
x-scheme-handler/capture=eve-ng-integration.desktop
x-scheme-handler/telnet=eve-ng-integration.desktop
x-scheme-handler/docker=eve-ng-integration.desktop
application/x-rdp=eni-rdp-wrapper.desktop

The .desktop to be opened is:

cat /usr/share/applications/eve-ng-integration.desktop 
[Desktop Entry]
Name=EVE-NG Integration
Exec=eve-ng-integration %u
TryExec=eve-ng-integration
Type=Application
Categories=Network;
MimeType=x-scheme-handler/telnet;x-scheme-handler/capture;x-scheme-handler/docker;
X-KDE-Protocols=telnet,capture,docker
NoDisplay=true

Someone's got any idea?

Last edited by lo1 (2017-12-21 08:55:16)

Offline

#2 2017-12-21 08:55:01

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] xdg-open: Chromium and LXDE ignoring mimeapps.list

OK I did it: edited ~/eve-ng-integration-git/src/eve-ng-integration/bin/eve-ng-integration and changed

wireshark_cmd = 'wireshark -k -i -'

to

wireshark_cmd = 'wireshark-gtk -k -i -'

So actually this was not a problem with xdg nor chromium nor lxde nor anything else.
I'll ask the mantainer of the package if there's something he could do to fix this because we have no package called "wireshark" (and so no one has /usr/bin/wireshark).

Marking as solved.

Offline

#3 2017-12-21 09:08:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] xdg-open: Chromium and LXDE ignoring mimeapps.list

Btw we do have /usr/bin/wireshark  it's part of wireshark-qt which is the official variant (afaik the GTK GUI isn't actively developed anymore) so don't know if your appeal will lead to much.

Offline

#4 2017-12-21 09:13:55

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] xdg-open: Chromium and LXDE ignoring mimeapps.list

V1del wrote:

Btw we do have /usr/bin/wireshark  it's part of wireshark-qt which is the official variant (afaik the GTK GUI isn't actively developed anymore) so don't know if your appeal will lead to much.

Ops, so I think I'll just keep it to myself without bothering anyone. Thanks!

Offline

Board footer

Powered by FluxBB