Developer Tools
Last updated
Was this helpful?
Last updated
Was this helpful?
The fastest way to get a collection of common app dependencies and developer tools is to install elementary-sdk
from Terminal:
You can quickly install all known dependencies for a project with build-dep
:
To make it easier to follow the you can use .
The GTK is similar to a web browser's inspector, but for GTK apps. Using the Inspector can greatly speed up development, and allows you view and to test out changing properties without recompiling an app. You can also test out temporary in-app CSS.
First, make sure you have elementary-sdk
installed. Then enable the Inspector keybinding:
Focus an app, then launch the Inspector by pressing Ctrl+Shift+I to inspect the widget beneath your cursor, or Ctrl+Shift+D to open the inspector without a widget selected.
You can also run it temporarily together with an app by running:
You can audit your system for files that have been changed from their originally installed packages:
View changed files:
View which packages those files belong to:
Assuming that you've used --prefix=/usr
when installing custom version you can restore them using:
Gala is the window manager of elementary OS. If it crashes or freezes during development, it can be nonobvious how to recover. Here's how to do it:
Go to one of the virtual consoles by pressing: Ctrl+Alt+F1
Log in
If Gala didn't crash but froze, you can kill it by running killall gala
Restart Gala by running DISPLAY=:0 gala --replace &
Switch back to the graphical session by pressing Ctrl+Alt+F7
If Gala doesn't start, you can reinstall the latest stable version by running sudo apt install --reinstall gala
.