r/UbuntuAppDev • • Jul 02 '15

Clipboard persistence workaround for Java application

4 Upvotes

I have written my own screenshot upload tool in Java and attempted to have the URL placed in the system clipboard automatically using the following code:

 Toolkit toolkit = Toolkit.getDefaultToolkit();
 Clipboard clipboard = toolkit.getSystemClipboard();
 StringSelection selection = new StringSelection(link);
 clipboard.setContents(selection, null);

However it is now my understanding that the X window system does not support clipboard persistence after the application setting the clipboard closes.

Given that this is unlikely to be fixed seemingly ever, is there a workaround that I can use to solve this? Currently I am using a GUI popup to allow the user to copy text but I would rather the clipboard work be done behind the scenes.

TL;DR: Clipboard persistence - Java workaround?


r/UbuntuAppDev • • May 20 '15

How use ubuntu-sdk with another distribution [Question]

Thumbnail
askubuntu.com
4 Upvotes

r/UbuntuAppDev • • May 04 '15

UOS has started. Sign up for sessions you are interested in!

Thumbnail
summit.ubuntu.com
4 Upvotes

r/UbuntuAppDev • • Dec 31 '14

Guide for New Ubuntu Developers!

4 Upvotes

WIP - No upvotes until its done!

This post will be useful for individuals with little or no experience in either...

  • C++

  • Qt

  • QML

  • Launchpad

  • Programming in general.


What is C++?

C++ is a language that was originally derived from C and added features such as classes and templates. It is possible to call C code from C++ but not in general to call C++ code from C. It is complex, but fast and powerful.


Do I need to know it for app development?

Only if you plan to use Qt.


What is Qt?

Qt is for building GUIs. It provides convenience classes for C++, to make using C++ easier.


Do I need to know it for app development?

Only if you plan to use features not included in QML.


What is QML?

QML is for building GUIs. It is based on Qt, but it is much simpler and quicker to use. You do not need to know C++ to use QML.


Do I need to know QML for application development?

Yes.


What is a feature not included in QML, that would make me need to learn Qt?

A simple example would be executing system commands that you would typically do in a terminal. This may change if someone creates a component that provides this functionality for you.


If I need to learn C++ and Qt; how should I go about learning them?

Most C++ guides teach you C++ without Qt in mind. Most Qt guides teach you Qt, assuming you know how to use C++. The problem here is that if you are going to learn C++ first, it will teach you many skills utilizing libraries that are obsoleted when you learn Qt.

For example, a typical C++ guide will teach you how to work with a standard library known as <string>. When you use Qt, you will no longer ever use <string>, but rather <QString>. Learning something you ultimately will not use, is more or less; wasting time.

Therefore, if you are going to learn C++ with the goal of learning Qt, do it with this tutorial:

This will teach you Qt assuming you know nothing about C++. You will not waste any time learning how to use classes/libraries you will replace when learning Qt.



r/UbuntuAppDev • • Dec 09 '14

colour palette for Inkscape and/or GIMP - Ubuntu Colors

Thumbnail colors.mivoligo.com
4 Upvotes

r/UbuntuAppDev • • Nov 29 '14

Bob's development blog: Writing applications for Ubuntu Phone

Thumbnail
bobthegnome.blogspot.ie
4 Upvotes

r/UbuntuAppDev • • Nov 27 '14

Qml uBeginner (Ubuntu App)

4 Upvotes

Here is my app that I am working on! Any feedback it more then welcomed! http://i.imgur.com/FD7jCGV.png


r/UbuntuAppDev • • Nov 26 '14

Qml Ubuntu Terminal Reboot

Thumbnail
youtube.com
4 Upvotes

r/UbuntuAppDev • • Nov 04 '14

Ubuntu Scopes Contest Wishlist - Popey

Thumbnail popey.com
4 Upvotes

r/UbuntuAppDev • • Oct 25 '14

The best way to contribute to Ubuntu and get experience with QML and Application Development!

Thumbnail wiki.ubuntu.com
4 Upvotes

r/UbuntuAppDev • • Oct 19 '14

Feedback: x-large, large, or medium for the ubuntu-filebrowser-app header?

Thumbnail filebin.ca
4 Upvotes

r/UbuntuAppDev • • Oct 17 '14

Compatibility with other distributions

Thumbnail
discourse.ubuntu.com
4 Upvotes

r/UbuntuAppDev • • Oct 17 '14

Ubuntu as a Developers Platform (March 15th, 2014)

Thumbnail
youtube.com
4 Upvotes

r/UbuntuAppDev • • Jan 20 '17

tutorials.ubuntu.com goes live!

Thumbnail
insights.ubuntu.com
3 Upvotes

r/UbuntuAppDev • • Apr 14 '16

Ubuntu Scopes Showdown: Here are the winners!

Thumbnail developer.ubuntu.com
3 Upvotes

r/UbuntuAppDev • • Oct 22 '15

LiveShuffle is here! (old Tube Mp3 Downloader reborn) Check it out! :)

Thumbnail uappexplorer.com
3 Upvotes

r/UbuntuAppDev • • Jul 17 '15

News Ubuntu Podcast; New app competition details contained within

Thumbnail
ubuntupodcast.org
3 Upvotes

r/UbuntuAppDev • • Jun 10 '15

Tutorials Scope settings | Ubuntu developer portal

Thumbnail
developer.ubuntu.com
3 Upvotes

r/UbuntuAppDev • • May 08 '15

[Question] How long does it take for Launchpad to show my PPA?

3 Upvotes

Hello, all!

I uploaded my package source to Launchpad, but I'm still not seeing it or any kind of indicator that it is in progress of being built. How long does it usually take for you to see something after pushing it?

Thanks!


r/UbuntuAppDev • • Mar 30 '15

Qml Ubuntu Components 1.2r Release

Thumbnail
developer.ubuntu.com
3 Upvotes

r/UbuntuAppDev • • Dec 08 '14

[QML] Can anyone help with this? - How to change index in OptionSelector immediately (without animation)?

Thumbnail
askubuntu.com
3 Upvotes

r/UbuntuAppDev • • Nov 28 '14

Tutorials Learn C++ the Qt way

Thumbnail
ics.com
3 Upvotes

r/UbuntuAppDev • • Nov 18 '14

If you find a bug with this subreddit's CSS please post it here

Thumbnail bugs.launchpad.net
3 Upvotes

r/UbuntuAppDev • • Nov 13 '14

[Tutorial] Adding departments to your scope

Thumbnail
developer.ubuntu.com
3 Upvotes

r/UbuntuAppDev • • Jan 29 '17

R.M.S. figures Ubuntu Phone isn't a free phone operating system, but here's a notion; maybe code.launchpad.net/rockwork is different ?

Thumbnail
theregister.co.uk
2 Upvotes