News for hackers. Stuff that matters.
Re:What's new in Ubuntu 19.04 by jwr on Thursday April 18, 2019 @01:14PM (#19692806)
I really hope that some day Ubuntu will have enough power&steam to attack the Clipboard Problem. It is the #1 issue that makes me dislike working with a Linux desktop.

Consistent system-wide clipboard behavior with consistent keyboard shortcuts. Look to Mac OS for an example of how to get this right. And I don't even need graphics/media support in the first iteration: just get me basic plaintext copy/paste.

Re:What's new in Ubuntu 19.04 by eitland on Thursday April 18, 2019 @01:36PM (#19692987)
What?

I never realized there was a problem with clipboards on mainstream Linux desktops?

Edit: after a couple of minutes of thinking I have found one single thing that isn't consistent: when copying and pasting from/to a terminal I have to use ctrl + shift + c or ctrl + shift + v (understandable since ctrl + c is used to terminate running programs).

Personally I guess cut, copy and paste should have been moved to Super + x/c/v since they are global os-level shortcuts, but it would break the habits of many of us so I guess that should be configurable as well.

Re:What's new in Ubuntu 19.04 by isostatic on Thursday April 18, 2019 @01:38PM (#19693011)
> I never realized there was a problem with clipboards on mainstream Linux desktops?

Highlight, middleclick, job done

Re:What's new in Ubuntu 19.04 by jandrese on Thursday April 18, 2019 @02:33PM (#19693576)
Except that doesn't work sometimes on Gnome Terminal. I've never been able to pin down exactly what causes it to break, but I have some machines where I have to do the key combo to make the copy and paste work and it's really annoying. Also, annoying is if you highlight something, then hit ctrl-shift-v and it puts in the text from the other cut buffer.

But the GP might be referring to the fact that copy and paste with anything but straight text is an outright shitshow on X. Compare to the copy and paste facilities from even ancient MacOS 6 it's downright stone age.

Re:What's new in Ubuntu 19.04 by randoramax on Thursday April 18, 2019 @01:58PM (#19693198)
This. The MacOS and Windows users have been missing on that powerful shortcut for years and now complain for a CTRL-SHIFT-C /V in terminal? Boohoo :)
Re:What's new in Ubuntu 19.04 by isostatic on Thursday April 18, 2019 @03:04PM (#19693837)
That's the problem, I don't care about whatever they do, but when they remove stuff that the rest of us have been using for decades because windows doesn't do it, that is a problem.

Improvements shouldn't break things.

Re:What's new in Ubuntu 19.04 by panpanna on Friday April 19, 2019 @03:41AM (#19697765)
Tell that to the gnome team whose main design philosophy is to remove things people love then fight really hard to justify it.
Re:What's new in Ubuntu 19.04 by isostatic on Friday April 19, 2019 @08:01AM (#19698801)
I haven't used gnome since about 2000. Englightenment, IceWM, fluxbox, blackbox ring a bell, but it's been xfce for the last decade (well just the panel and the window manager)
Re:What's new in Ubuntu 19.04 by user5994461 on Thursday April 18, 2019 @02:02PM (#19693230)
Wasn't it right click?
Re:What's new in Ubuntu 19.04 by justwalt on Thursday April 18, 2019 @09:25PM (#19696291)
I think that’s copy on some terminals, but I think the parent is talking about paste.
Re:What's new in Ubuntu 19.04 by jwr on Thursday April 18, 2019 @01:54PM (#19693160)
Yes, most people do not realize there is a problem. You have to use a different OS (Mac OS in my case) to discover how nice a working clipboard can be and to feel the pain when going back to Linux.
Re:What's new in Ubuntu 19.04 by kelvie on Thursday April 18, 2019 @02:10PM (#19693320)
I use Mac OS and (K)ubuntu about an equal amount nowadays, what's wrong with the handling on Linux DEs?

If anything I find OS X more annoying, as things like screenshots into the clipboard work far less reliably.

Re:What's new in Ubuntu 19.04 by eitland on Thursday April 18, 2019 @03:51PM (#19694209)
> and to feel the pain when going back to Linux.

Used Mac for almost three years.

Was enthusiastic when I got one and after close to three years enthusiastic to get back to Linux or even Windows.

I realize Mac users experience it to be much better and I guess with a different workflow it is.

I tried hard to pick it up. I failed miserably.

Going back was a relief for me.

Re:What's new in Ubuntu 19.04 by fnord123 on Thursday April 18, 2019 @02:32PM (#19693569)
Not sure if you're joking. So many programs are broken on OS X. Mostly Electron ones like Teams.
Re:What's new in Ubuntu 19.04 by zapzupnz on Thursday April 18, 2019 @11:35PM (#19696912)
That's the fault of (A) Electron and (B) developers who use Electron who (B.A) erroneously think that because Windows users don't mind having no menu bar then everybody else feels the same and (B.B) don't reimplement what Cocoa/Carbon give developers for free.

It's not macOS' problem if people seem to prefer writing mediocre cross-platform apps than proper, native apps with full support for macOS-specific features like system-wide automation, proper integration with the system pasteboard, Quick Look, accessibility features, etc.

Re:What's new in Ubuntu 19.04 by fnord123 on Friday April 19, 2019 @03:34AM (#19697743)
Is it Gnome's fault that XTerm has shonky cut-paste behaviour? gnome-terminal works wonderfully.

Or is this the projector problem again: when you plug a mac into a projector and it doesn't work, people blame the projector. When you plug a linux machine in, people blame linux.

Re:What's new in Ubuntu 19.04 by zapzupnz on Friday April 19, 2019 @04:41AM (#19697959)
Of course it isn't GNOME's fault if xterm has shonky cut-paste behaviour, but that really only serves to back up my point — don't blame the system if one (or a handful of) apps happen to behave contradictorily to its conventions.

I'd never heard of the projector problem, but given Linux's unreliable track record with multiple monitors, I'm not surprised people blame Linux. The problem as stated doesn't define whether or not the projector is actually at fault or not, so we can only really start diagnosis where intuition leads us.

Re:What's new in Ubuntu 19.04 by yoodenvranx on Thursday April 18, 2019 @02:07PM (#19693292)
What problems do you have? I have been using KDE for the last few years and I never had a single problem with the clipboard.
Re:What's new in Ubuntu 19.04 by ufo on Thursday April 18, 2019 @05:21PM (#19694895)
Regarding the terminal, on Gnome-terminal it is possible to rebind copy-paste to ctrl-c and ctrl-v. If you do this you need to start using ctrl+shift+C for ^C
Re:What's new in Ubuntu 19.04 by radarsat1 on Thursday April 18, 2019 @05:12PM (#19694824)
I dunno man, I regularly copy partial screenshots and paste them into my gmail of all things and it works perfectly. Also pasting into GIMP, or pasting into Telegram. Similarly I paste text from the terminal into other programs.. honestly, where is the problem? My computer doesn't even have a middle-click button (trackpad) so I don't even remember about the X clipboard most of the time, it's a complete non-issue these days.

> consistent keyboard shortcuts

Apart from the terminal which obviously needs an alternative to Ctrl-C (same as Windows, and shift-ctrl-C beats shift-insert or whatever any day), and Emacs which is, you know, emacs, I can't think of any programs that do not consistently use Ctrl-C and Ctrl-V. So what are you referring to here?

Re:What's new in Ubuntu 19.04 by a1369209993 on Thursday April 18, 2019 @01:55PM (#19693168)
Uhhg, this pisses me off; I had to write my own terminal emulator to get one that handled Cc and Cv correctly[0].

0: Also to get working (not blurry) fonts and a couple of other assorted improvements.

Still working on killing that damn line discipline, though.

Re:What's new in Ubuntu 19.04 by screye on Thursday April 18, 2019 @02:31PM (#19693547)
Re:What's new in Ubuntu 19.04 by pbhjpbhj on Thursday April 18, 2019 @01:29PM (#19692930)
Ha, I use Kubuntu and just installed Win 10 on a computer for games (for the kids). Main thing I miss using it is my clipboard (klipper, IIRC) from Kubuntu.
Re:What's new in Ubuntu 19.04 by massive-tea on Thursday April 18, 2019 @01:37PM (#19692997)
Linux (really X Windows) has the best clipboard: select text to "copy", middle click to "paste".
Re:What's new in Ubuntu 19.04 by jwr on Thursday April 18, 2019 @01:51PM (#19693126)
Yes, I also had this smug attitude, having used the X terminals (the real ones, as in physical X terminals) back in 1994 or so, and then using X11 on various machines and operating systems since then.

Then I started using Mac OS X and I realized that it's actually nice to be able to select text and NOT have it auto-copied obliterating my clipboard, but instead be able to replace it using Command-V. And it's a pretty cool invention that the same shortcuts work in all applications, consistently. And that I can copy text in any application and paste it in any other using the same shortcut. And that I don't have to use the middle mouse button, which is a scrollwheel these days and is difficult to hit without invoking the scroll functionality. And it's pretty nice to be able to paste to where the cursor is RIGHT NOW without carefully positioning the mouse pointer and making sure it doesn't move while you carefully try to hit the middle button (otherwise your text will get inserted wherever the mouse moves in the meantime, if you are in a browser edit window).

I could go on. There are so many things which can be done better if we drop the "the way X11 did this is the best way, ever" attitude.

And then, eventually, once we get text copy/paste right, we can get to copying images, which again is a totally solved problem on Mac OS X.

Re:What's new in Ubuntu 19.04 by Recursing on Thursday April 18, 2019 @02:47PM (#19693720)
> it's actually nice to be able to select text and NOT have it auto-copied obliterating my clipboard

Can't you just use ctrl+c and ctrl+v and ignore the other clipboard?

https://wiki.archlinux.org/index.php/clipboard#Selections

Re:What's new in Ubuntu 19.04 by jwr on Thursday April 18, 2019 @03:12PM (#19693895)
> the other clipboard

"The other clipboard" is part of the problem I'm describing. Why would you have "the other clipboard" in your system?

But you know what: I've read the replies in this discussion and I rest my case. It seems that most Linux users are OK with the current situation and do not even want to hear about the possibility of a better solution. This is why things will not change.

I'll just use OS X for development, happily paying Apple a premium for getting things to work for me.

Re:What's new in Ubuntu 19.04 by radarsat1 on Thursday April 18, 2019 @05:13PM (#19694834)
> It seems that most Linux users are OK with the current situation

Most people are saying they aren't even _aware_ of the problem, and you've completely failed to describe it here. No one even knows what the hell you are talking about, maybe give it a rest?

Re:What's new in Ubuntu 19.04 by justwalt on Thursday April 18, 2019 @09:33PM (#19696330)
A solution to what? In my opinion, it’s quite convenient to have access to both. Sometimes I need to copy from a webpage but then realize I could speed up by middle click pasting a few other things, and then using ctrl-v for the first copy. I like having them separate.
Re:What's new in Ubuntu 19.04 by dagw on Thursday April 18, 2019 @05:37PM (#19695024)
do not even want to hear about the possibility of a better solution

We really would, but no one in this thread is clearly describing this better solution.

Re:What's new in Ubuntu 19.04 by massive-tea on Thursday April 18, 2019 @04:53PM (#19694669)
Why should things change just because you want them to? We're a community of hackers who built our own operating system. You're very welcome to join us but unless you're willing to pay us what you're willing to pay Apple you're going to have to implement what you want yourself. But you're free to implement it yourself. That freedom is what we value.
Re:What's new in Ubuntu 19.04 by zapzupnz on Thursday April 18, 2019 @11:38PM (#19696921)
This seems like an overly personal take from someone who cannot possibly claim to represent all Linux users.

There are plenty of Linux users with gripes about the UI and various aspects of the environment, hence why there are so many bloody Linux apps that basically do the same thing, so many desktop environments, and more being made every day.

An idea about the user experience is worth paying attention to even if they can't implement it themselves. To brush off the idea with a "well, if you like it so much, make it yourself" is churlish and dismissive. It's not an attitude that helps advance beyond the status quo.

It seems like closed-mindedness to constructive criticism, alarmingly similar to the mindset GNOME's developers have towards basically everybody, stubbornly refusing to accept that other peoples' points of view can have merit and value.

Ironically, it's a very closed, Microsoftian value for a Linux user to hold: Not Invented Here.

Re:What's new in Ubuntu 19.04 by massive-tea on Friday April 19, 2019 @03:42AM (#19697775)
It's nothing to do with not invented here. It's just not my itch, so why should I scratch it? If you want someone else to scratch your itch you have to pay them.

My point is only to highlight that these are very different worlds. Apple decides what you want then charges for it. We say, here, this is what I want, but feel free to make it what you want. There are always going to be pros and cons.

Re:What's new in Ubuntu 19.04 by zapzupnz on Friday April 19, 2019 @04:38AM (#19697950)
> It's just not my itch, so why should I scratch it?

But why must you put it down?

It may not be your itch, but equally, Linux is not your OS. It's everybody's. Other people may happen to share the same sentiment about certain things. That's how things change, evolve, develop, improve.

You cannot be dismissive on everybody else's behalf.

> Apple decides what you want and then charges for it. We say, here, this is what I want, but feel free to make it what you want

First, who is 'we'? I still feel like you're trying to represent the feeling of a lot of people whose opinions may differ wildly from your own.

Aside from that, not everybody who uses Linux does so for this factor of openness and flexibility. There are plenty of Linux users who wish it would Just Work™ — but, again, their contributions to the discussion shouldn't be poo-pooed just because they don't have the time or resources to reimplement that with which they're familiar.

Some people can only contribute ideas, and that's just fine; it might turn out that only when some developer with some free time on his or her hands sees those ideas that they might then be implemented.

Re:What's new in Ubuntu 19.04 by massive-tea on Friday April 19, 2019 @05:46AM (#19698184)
I don't think I "put down" anything. I can say "we" because if it hasn't been done yet then clearly nobody wants it enough.

I use Gentoo and it really does Just Work for me. My definition of working is clearly a world apart from others', though.

Re:What's new in Ubuntu 19.04 by massive-tea on Thursday April 18, 2019 @01:54PM (#19693165)
X has the manual clipboard as well, though. It's always worked for me. Do you have any specific examples of where it fails?

> is a totally solved problem on Mac OS X.

It's solved there because it's a walled garden. It's essentially a different problem that they've solved. The problem here is making that work while still being the free software operating system we love.

Re:What's new in Ubuntu 19.04 by AgentME on Thursday April 18, 2019 @04:35PM (#19694549)
I wish there was an option somewhere to disable this. I middle-click-paste by accident way too often. I hate having two separate clipboards that I have to think about what's in each.
Re:What's new in Ubuntu 19.04 by baq on Thursday April 18, 2019 @01:55PM (#19693172)
please tell me there's something like ditto https://ditto-cp.sourceforge.io/ for X. i've got mine bound to C-` on windows 10 and can't work on a desktop which doesn't have it installed.
Re:What's new in Ubuntu 19.04 by artworx on Thursday April 18, 2019 @02:21PM (#19693449)
KDE has a clipboard manager app, I think its called Klipper.

I never used it because I don't like having a history of my actions.

Re:What's new in Ubuntu 19.04 by Recursing on Thursday April 18, 2019 @02:48PM (#19693729)
https://wiki.archlinux.org/index.php/clipboard#Managers there are many clipboard managers for X
Re:What's new in Ubuntu 19.04 by massive-tea on Thursday April 18, 2019 @02:07PM (#19693285)
I wouldn't be surprised if there is. I spend much of my life in emacs and it has a very similar thing called the kill-ring.
Re:What's new in Ubuntu 19.04 by isido on Thursday April 18, 2019 @01:54PM (#19693157)
It is really nice when using mouse, but with trackpad, it is unfortunately not as convenient.