Git Product home page Git Product logo

Comments (6)

mmtrt avatar mmtrt commented on May 31, 2024

can you try same on system wine without using snap see if that happens there.

from notepad-plus-plus.

gwarah avatar gwarah commented on May 31, 2024

I don't have wine installed but I've done the same test on other foobar2000 (so snapped) and the results were the same errors.

npp and foobar2000 called by ubuntu start menu work ok.

from notepad-plus-plus.

mmtrt avatar mmtrt commented on May 31, 2024

ah ok so you are creating desktop file then running the snap app from there is problematic.

from notepad-plus-plus.

gwarah avatar gwarah commented on May 31, 2024

ah ok so you are creating desktop file then running the snap app from there is problematic.

Yes, indeed. I've checked it right now with these last tests. For any reason calling these snapped apps from this desktop file configuration causes this bug.

from notepad-plus-plus.

mmtrt avatar mmtrt commented on May 31, 2024

ah maybe try removing this line from desktop file if that still not works for you then check the actual desktop files used by snaps from here /var/lib/snapd/desktop/applications/ see if they solve your issue.

#!/usr/bin/env xdg-open

from notepad-plus-plus.

gwarah avatar gwarah commented on May 31, 2024
  1. Removing #!/usr/bin/env xdg-open doesn't work

  2. I've seen the actual desktop files. I'm copying here two of them. One loads the app ok; npp files does not:

2.1. Tusk desktop file

[Desktop Entry]
Name=Tusk
Comment=Tusk is an unofficial, featureful, open source, community-driven, free Evernote app used by people in more than 130 countries.
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/tusk_tusk.desktop /snap/bin/tusk
Terminal=false
Type=Application
Icon=/snap/tusk/19/meta/gui/icon.png
StartupWMClass=Tusk
Categories=Office;

2.2. Npp desktop file

[Desktop Entry]
Name=Notepad++
GenericName=Text Editor
Comment=Simple and free source code editor.
Version=7.6.1
Type=Application
Terminal=false
Icon=/snap/notepad-plus-plus/171/usr/share/pixmaps/notepad-plus-plus.png
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/notepad-plus-plus_notepad-plus-plus.desktop /snap/bin/notepad-plus-plus %U
StartupWMClass=notepad-plus-plus.exe
Categories=Utility;TextEditor
MimeType=text/plain;text/css;text/html;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-java;text/x-makefile;text/x-python;text/x-sh;application/x-wine-extension-ini;application/x-wine-extension-inf;

The difference between them is the directive MimeType. But I've commented it in the last file and nothing.

from notepad-plus-plus.

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.