Giter VIP home page Giter VIP logo

Comments (9)

CamielBouchier avatar CamielBouchier commented on August 17, 2024

Just acknowledging I saw the report which seems pretty clear to me.
This must be an issue with the integration under Fedora 33, but I can't spot at once.
I will have a look, probably in the weekend.

Camiel B.

from cb_thunderlink.

CamielBouchier avatar CamielBouchier commented on August 17, 2024

Can you share the contents of the "*.desktop" file referred into the output?

Also, can you manually execute gio mime x-scheme-handler/cbthunderlink cb_thunderlink_cbthunderlink.desktop and post the output?

Camiel B.

from cb_thunderlink.

takluyver avatar takluyver commented on August 17, 2024

Sure! Here's the contents of one of the files (the other one is similar):

[Desktop Entry]
Encoding=UTF-8
Name=cb_thunderlink_thunderlink
Exec=/home/takluyver/Code/cb_thunderlink/cb_thunderlink.py %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=thunderbird
Categories=Application;Network;Email;
MimeType=x-scheme-handler/thunderlink;
StartupNotify=true
Actions=Compose;Contacts
NoDisplay=true

When I ran the gio mime command this morning, it worked (output: Set cb_thunderlink_cbthunderlink.desktop as the default for x-scheme-handler/cbthunderlink). After that, xdg-open is working. 🙂

I wonder if Gnome is caching the desktop files, and by the time I came to run the command this morning, it had noticed the new ones? I found a command update-desktop-database which initially seemed relevant, but the output file described in its man page (~/.local/share/applications/mimeinfo.cache) doesn't contain any thunderlink entries, even after I've got this working, so possibly Gnome has something similar somewhere else.

from cb_thunderlink.

CamielBouchier avatar CamielBouchier commented on August 17, 2024

@takluyver
Thanks for the feedback. That seems weird ...
Does the gio mime ... command also run correctly when using the script?
(I'd rather think about some shell related problem, but currently it is just the better guessing work ...)

from cb_thunderlink.

takluyver avatar takluyver commented on August 17, 2024

Yup, if I run the script again, it's working now:

Executing ['gio', 'mime', 'x-scheme-handler/cbthunderlink', 'cb_thunderlink_cbthunderlink.desktop']
(b'Set cb_thunderlink_cbthunderlink.desktop as the default for x-scheme-handler/cbthunderlink\n', None)
Writing /home/takluyver/.local/share/applications/cb_thunderlink_thunderlink.desktop
Executing ['gio', 'mime', 'x-scheme-handler/thunderlink', 'cb_thunderlink_thunderlink.desktop']
(b'Set cb_thunderlink_thunderlink.desktop as the default for x-scheme-handler/thunderlink\n', None

I can try removing the files, waiting a bit and then running the script again if there's anything we want to investigate.

from cb_thunderlink.

CamielBouchier avatar CamielBouchier commented on August 17, 2024

I can't reproduce either ...
So unless you can reproduce and find something to investigate further upon, I will close this "soon".
Camiel B.

from cb_thunderlink.

takluyver avatar takluyver commented on August 17, 2024

I've deleted the files, I'm going to try again after I next restart, and see if it happens again.

I also just spotted that you could probably install just one .desktop file, as MimeType can specify more than one option. E.g. Firefox on my system has:

MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;

from cb_thunderlink.

takluyver avatar takluyver commented on August 17, 2024

Today it installed correctly, so it seems I can't reproduce it. 😕

from cb_thunderlink.

CamielBouchier avatar CamielBouchier commented on August 17, 2024

So I guess I can close this issue for now.
Let me know if there would need more help.
Camiel B,

from cb_thunderlink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.