Code Monkey home page Code Monkey logo

Comments (10)

Edu4rdSHL avatar Edu4rdSHL commented on June 20, 2024 1

@Tudmotu from Gnome Terminal.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 20, 2024

Not sure why would the extension try to open a random file? Did you edit the registry.txt file?

from gnome-shell-extension-clipboard-indicator.

sidt4 avatar sidt4 commented on June 20, 2024

Did you edit the registry.txt file?

Don't know what that is.

Extension wasn't working as expected (refer #439 (comment)) for more than a week. I thought it was due to recent GNOME Shell 46 upgrade stuff. As the issue wasn't going away, I decided to look into journalctl logs to fix the issue, as I wanted to get the extension working.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 20, 2024

Hmm interesting. If that every happens to you again, I would appreciate if you could make a copy of ~/.cache/[email protected]/registry.txt and send it to me privately (remember to remove any sensitive information from it before sending it to me).

Do I understand correctly that the extension is currently working for you?

from gnome-shell-extension-clipboard-indicator.

Edu4rdSHL avatar Edu4rdSHL commented on June 20, 2024

I'm having the same issue, every time I copy a system's directory path, the app tries to open it for some reason, and fails with the message stated in the issue. The fix, is to mv the path so that it doesn't exist anymore and re-enable the extension, then delete the entry containing the path and move the path back again in the file system.

I can reproduce it at any time I want, so let me post the registry.txt file.

$ cat ~/.cache/[email protected]/registry.txt
[{"favorite":false,"mimetype":"UTF8_STRING","contents":"/home/edu4rdshl/.local/share/applications"},{"favorite":false,"mimetype":"text/plain;charset=utf-8","contents":".local/share/applications/"},{"favorite":false,"mimetype":"text/plain;charset=utf-8","contents":"/var/lib/pacman/local"}]

After checking, the issue is when the mimetype is set to UTF8_STRING, I can reproduce it for each line if I change the mimetype to that one. And, changing it to text/plain;charset=utf-8 makes the issue disappear.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 20, 2024

Thanks! This sounds like a bug. Will try to reproduce.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 20, 2024

@Edu4rdSHL from what app are you copying the path?

from gnome-shell-extension-clipboard-indicator.

Edu4rdSHL avatar Edu4rdSHL commented on June 20, 2024

Out of curiosity, why is even the app trying to execute something? That looks terrible to me. So, if I copy rm -rf $HOME and it gets set to UTF8_STRING, it will possibly run that?

Edit: I confirm this behavior. We have a RCE vulnerability right here. I will open a new issue to track it.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on June 20, 2024

@Edu4rdSHL I honestly have no idea. I don't understand how that could happen.

from gnome-shell-extension-clipboard-indicator.

sidt4 avatar sidt4 commented on June 20, 2024

Ran into this issue again.

Steps to reproduce:

  1. Clear all entries
  2. Copy /tmp/ to clipboard.
  3. Disable and enable extension
  4. Below error should happen.
Apr 07 18:11:29 linux gnome-shell[140892]: JS ERROR: Gio.IOErrorEnum: Error opening file /tmp: Is a directory
                                           fromJSON/bytes</<@file:///home/sid/.local/share/gnome-shell/extensions/[email protected]/registry.js:232:47
                                           @resource:///org/gnome/shell/ui/init.js:21:20

from gnome-shell-extension-clipboard-indicator.

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.