31 votes
Accepted

Determine base Ubuntu version

You can find the "upstream release" codename using the -u flag with lsb_release commands. Try it with the following command in Terminal: lsb_release -a -u On Freya, it gives me the following output: ...
user avatar
  • 9,734
18 votes
Accepted

Where can I find applications created specifically for elementary OS?

There are two maintained resources at the moment. Made for elementary elementary-apps The first one contains only applications that are stable or close to being stable. The second one contains those ...
user avatar
  • 3,216
13 votes

Where can I find elementary's source code... for science?

The source code of components the elementary team is maintaining is not hosted via git (neither GitHub nor any other git server), it's hosted on Launchpad which is using bzr (bazaar). As you can see, ...
user avatar
  • 2,872
10 votes
Accepted

Is there an elementary IDE for developing elementary applications?

Scratch + Terminal + Developer Libraries Yep that's the set of software which are the official elementary SDK, as you can find out here. Scratch is better than notepad (that's included with Windows),...
user avatar
  • 1,338
7 votes
Accepted

GTK-error while running a pyplot-application

Pantheon Files (the default file manager) contains a custom GTK+ module called pantheon-filechooser-module. It's shipped on up-to-date systems, but it's not activated yet (currently, the default GTK+ ...
user avatar
  • 2,872
6 votes
Accepted

How can I use a system icon in my application?

You just load the icon using the name. Gtk will select the one appropriate for the current theme. In your case, you would use something like: var icon = Gtk.Image.from_icon_name("view-refresh", Gtk....
user avatar
  • 1,250
6 votes

What IDE's are avaliable for programming in elementary?

elementary OS developers use a text editor by personal preferences. mine is sublime text with of course terminal to build. This gives developer the advantages to know also about the build process and ...
user avatar
  • 463
5 votes
Accepted

How to install Vala on elementary OS

You should check the elementary Development Guide. In the section "Developer SDK" we cover grabbing essential development libraries, including the Vala compiler. For development tasks, you're going ...
user avatar
  • 9,734
5 votes
Accepted

Elementary Tweaks - How can I Toggle "Prefer Dark Theme" via Terminal?

I don't think there is an command for this, but you can edit a file. Create/edit the following file: ~/.config/gtk-3.0/settings.ini And change it to this: [Settings] gtk-application-prefer-dark-...
user avatar
  • 1,039
5 votes
Accepted

In which programming language elementary OS terminal is written?

The terminal in elementary OS is written in Vala. You can see information about Pantheon Terminal and even read the source code on its Launchpad page.
user avatar
  • 7,877
5 votes

What IDE's are avaliable for programming in elementary?

Atom Atom is a text editor that's modern, approachable, yet hackable to the core—a tool you can customize to do anything but also use productively without ever touching a config file. Features: ...
user avatar
  • 3,510
5 votes
Accepted

How should I design a "Create Project" wizard?

Check out The Wizard Anti-Pattern by Stef Walter. It's part of the "See Also" in the Design Philosophy section of the HIG. The TL;DR is to avoid wizards at all cost. Get as much info automatically as ...
user avatar
  • 9,734
4 votes
Accepted

Template for a "About" dialog for an Elementary OS application

I believe that you are looking for Granite.Widgets.AboutDialog. You can find everything about it here : Valadoc Granite.Widgets.AboutDialog If you can't recognize a widget in a particular ...
user avatar
3 votes

Determine base Ubuntu version

You can use uname -v which gives the full Ubuntu based version unlike the other answers. Output is below : #49~14.04.1-Ubuntu SMP Thu Dec 31 15:44:49 UTC 2015 If you need to only print the version (...
user avatar
  • 2,733
3 votes

Just installed elementary OS. How to get MySQl and C++ to work?

Ok. Let's see. The package build-essential installs the C and C++ compilers along with the make tool and some headers. You'll need mysql-server and mysql-client to have a local database and access ...
user avatar
3 votes

Is elementary OS good for programming beginners?

I made the switch from macOS to elementary OS a few months back because I am bit tired of Apple's ways (a different rant) and if anything improved my development workflow. I thought I would have to ...
user avatar
3 votes
Accepted

Using Granite with a different language besides Vala

Granite is written in Vala, so it provides a C API which you can use from C++. Using it should be fairly straightforward; just #include <granite.h> in your code, and build with something like ...
user avatar
  • 430
3 votes

How to use Gtk.Popover() in Vala?

You can associate the popover creation with a button event, like in the following example: var button = new Gtk.Button (); var imag = new Gtk.Image.from_icon_name ("help-info", Gtk.IconSize.MENU); ...
user avatar
  • 2,268
2 votes
Accepted

Fatal error with webkit2gtk-4.0 (webkit2.h)

According with Valadoc , webkit2gtk-3.0 bindings are replaced in Vala by webkit2gtk-4.0 since version 0.25.2 . In order to install webkit2gtk-4.0 you can try in terminal: sudo add-apt-repository ppa:...
user avatar
  • 2,268
2 votes

App development with Ruby in elementary OS

This GitHub repository gives you some basic examples on how to build a GTK app using Ruby. This is example #2 being run:
user avatar
  • 342
1 vote

Is elementary OS good for programming beginners?

I'd say elementary OS is as good as any other flavor of Linux for learning programming. You can install many different compilers and interpreters. Python should already be installed. I think gcc for C ...
user avatar
  • 834
1 vote

Can't open my command line c++ app

Okay, first, I think that "can't run" isn't correct, because you can run it - you can see at your screenshot, that it runs (there is no prompt line after you start program) and the process is on. ...
user avatar
1 vote

Is there is full IDE available for writing apps on elementary OS?

You might want to try the nightly version of Gnome Builder: I like to check in on the development of Gnome Builder from time to time, because for better or worse, I'm an IDE guy when it comes down ...
user avatar
1 vote

Is it real to install any IDE on elementary OS, like NetBeans, Code:Blocks, etc

There are many IDEs available for elementary OS. I personally use Android Studio, IntelliJ IDEA, Atom, VS Code, Scratch, and Gnome Builder. Bottomline: Whatever language you are working in or whatever ...
user avatar
1 vote
Accepted

Linked style doesn't work for buttons

The Gtk.HeaderBar provides special styling for Gtk.Button's so that they look good inside it. The solution: In your case the solution is easy: remove the image-button style class from the ...
user avatar
  • 161
1 vote
Accepted

Item list with text input error on Vala

Sounds like you want Gtk.Overlay. That said, a better design would probably be to put both the Gtk.TreeView and Gtk.Entry an a Gtk.Box so the entry doesn't occlude the tree view…
user avatar
  • 430
1 vote
Accepted

error: Package `libcanberra' not found in specified Vala API directories

Installing libcanberra-dev package solved the issue.
user avatar
  • 33
1 vote
Accepted

Granite Widgets : Unable to append a new action item to welcome page at runtime

I can't check it currently, but this sounds like you are adding the widget and it simply doesn't show. When adding a new widget to welcomeLayout, running welcomeLayout.show_all () should show the new ...
user avatar
  • 2,872
1 vote
Accepted

Why is LibSoup not found when compiling Vala?

I am being told by people more knowledgable than myself for Vala that your compile command is not quite right. Every package needs the --pkg prefix, and you need to specify the full packages name as ...
user avatar
  • 4,929

Only top scored, non community-wiki answers of a minimum length are eligible