Comments (10)
@Tudmotu from Gnome Terminal.
from gnome-shell-extension-clipboard-indicator.
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.
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.
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.
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.
Thanks! This sounds like a bug. Will try to reproduce.
from gnome-shell-extension-clipboard-indicator.
@Edu4rdSHL from what app are you copying the path?
from gnome-shell-extension-clipboard-indicator.
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.
@Edu4rdSHL I honestly have no idea. I don't understand how that could happen.
from gnome-shell-extension-clipboard-indicator.
Ran into this issue again.
Steps to reproduce:
- Clear all entries
- Copy
/tmp/
to clipboard. - Disable and enable extension
- 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)
- Paste button pastes the contents of the clipboard in place of the selected item in the history
- [BUG] pop up notification no working. HOT 6
- Shortcuts HOT 8
- image support doesn´t work HOT 1
- Unhandled promise rejection. To suppress this warning ..
- Encoding problems HOT 4
- RCE vulnerability when copying full system paths HOT 16
- "Copied to clipboard" notification appears every time I copy anything, with no option to disable it HOT 1
- [BUG]: Unhandled promise rejection HOT 7
- "Text will be here" is displayed in the tray and nothing happens by clicking on it. HOT 28
- Lag - Delay HOT 5
- Suggestion: make it work as Win+V on windows HOT 2
- [BUG] In-menu keyboard controls do not work HOT 2
- Scroll Bar is Inaccessible To Mouse HOT 1
- shows sensitive information on next and previous entries HOT 3
- Non-Latin characters doesn't work HOT 2
- History clears on screenlock HOT 1
- Feature Request: Paste on Select in Clipboard Indicator HOT 2
- Extension doesn't work any more HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-extension-clipboard-indicator.