this post was submitted on 29 Jan 2024
191 points (98.5% liked)
Linux
48372 readers
1573 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Cool, but is copy path to file a thing yet?
Putting the following with executable permissions inside
~/.local/share/nautilus/scripts/SCRIPTNAME
adds a right click menu to Nautilus that serves the same purpose:The 'notify-send' bit isn't necessary; it just puts up a notification.
Mentioning only because it's a simple demonstration of a pretty easy way to extend Nautilus for all kinds of purposes; w/o messing around with the pygobject interface. (There's supposed to be an xdg standard for file manager extensions like this, but managers use their own custom folders, syntax, etc. for such extensions. I think pcmanfm adheres to the standard; Dolphin requires a .desktop file somewhere; Thunar, Caja, & Nemo work similar to Nautilus.)
Bad ass! Thank you for this wisdom
Yes, Gnome is context aware if you ctrl+c a an image file, and you paste it to a text editor it will paste it as a path, if you paste it in an image editor it will be pasted as an image, if the program supports it (e.g. it works in Krita, but not in Pinta)
Drag and drop is not working because of Wayland. Between 2 windows of the same app, e.g. Nautilus it's working.
DnD works fine here on Wayland?
Which apps? Are you sure they are not xwayland? I cannot dnd anything from FileRoller or from Xarchiver
I never drag anything into Nautilus, but Nautilus -> gnome-text-editor works as expected. Nautilus -> My terminal, and my video player works too.
Cool, it pastes it as an image in telegram, I would need to use a text editor as a proxy. Gnome is not context aware enough to read my brain to know the intent, having the choice to be explicit (copy path) is just better.