Difference between revisions of "GNOME"

From Organic Design wiki
m (See also)
(Change source-code blocks to standard format)
(15 intermediate revisions by one other user not shown)
Line 11: Line 11:
 
*[https://extensions.gnome.org/extension/5/alternative-status-menu/ Alternative Status Menu] ''- puts power-off/restart back into the menu''
 
*[https://extensions.gnome.org/extension/5/alternative-status-menu/ Alternative Status Menu] ''- puts power-off/restart back into the menu''
 
*[https://extensions.gnome.org/extension/302/windowoverlay-icons/ Window Overlay Icons] ''- adds icons to the window list''
 
*[https://extensions.gnome.org/extension/302/windowoverlay-icons/ Window Overlay Icons] ''- adds icons to the window list''
*[https://extensions.gnome.org/extension/234/steal-my-focus/ Steal My Focus] ''- removes the 'Window is ready' notification and focus window immediately instead''
+
*[https://extensions.gnome.org/extension/613/weather/ Weather] ''- at last the old Gnome2 whether is available for Gnome 3!''
 +
*[https://extensions.gnome.org/extension/754/bitcoin-price/ Bitcoin Price] ''- my first Gnome extension which adds the current [[Bitcoin]] price to the main panel''
  
=== Weather/Timezone fail ===
+
=== Writing extensions ===
One big failure I've found is the clock doesn't show weather any more and no longer allows multiple time zones. I've found some instructions [http://www.webupd8.org/2011/10/install-gnome-shell-weather-extension.html here] for installing some alpha stuff that puts it back, but it hasn't worked for me and I don't think it supports multiple time zones. They talk as if this is an amazingly complex problem and would be an awesome new feature, but it's been working beautifully in GNOME 2.x for years! why not just have it back the way it was?!
+
Create an initial working extension template using the '''gnome-shell-extension-tool --create-extension''' command, then after you change your code, you restart the Gnome shell by pressing '''ALT+F2''', then entering '''r''' and pressing ''Enter''. To check for errors and perform other debugging tasks, use the [https://wiki.gnome.org/Projects/GnomeShell/LookingGlass LookingGlass] applet which can be started by pressing '''ALT+F2''', then entering '''lg''' and pressing ''Enter'', and ''escape'' to close it. Use the command '''global.log("text")''' in your code to output to the error console which you can view from ''LookingGlass'' in the ''errors'' tab - not that it doesn't update in real-time.
 +
*[http://blog.mecheye.net/2012/02/requirements-and-tips-for-getting-your-gnome-shell-extension-approved/ Requirements and tips for getting your GNOME Shell Extension approved]
 +
*[https://wiki.gnome.org/Projects/GnomeShell/Extensions/StepByStepTutorial Step by step tutorial to create extensions on the GNOME wiki]
 +
*[http://www.tangazenileo.com/blog/2013/02/10/gnome-3-extension-development-hints-4-custom-icon-to-main-panel/ Add a custom icon to the main panel]
 +
*[http://www.tangazenileo.com/blog/2013/03/16/gnome-3-extension-development-hints-6-extension-preferences/ Good example of creating extension prefs]
  
 
== Installing on Ubuntu 12 ==
 
== Installing on Ubuntu 12 ==
 
They've now made Unity the default desktop environment which many people find really horrible, to install GNOME do the following:
 
They've now made Unity the default desktop environment which many people find really horrible, to install GNOME do the following:
{{code|<bash>sudo add-apt-repository ppa:gnome3-team/gnome3
+
<source lang="bash">
 +
sudo add-apt-repository ppa:gnome3-team/gnome3
 
sudo apt-get update
 
sudo apt-get update
sudo apt-get install gnome-shell</bash>}}
+
sudo apt-get install gnome-shell
 +
</source>
 
Then log out and select GNOME at the login prompt
 
Then log out and select GNOME at the login prompt
  
Line 27: Line 34:
 
== Adding your own apps to the search ==
 
== Adding your own apps to the search ==
 
You'll need to create a ''.desktop'' file for your application in the '''~/.local/share/applications''' directory with the name of your application as its filename. The content of the file is of the following format:
 
You'll need to create a ''.desktop'' file for your application in the '''~/.local/share/applications''' directory with the name of your application as its filename. The content of the file is of the following format:
{{code|<pre>
+
<source>
 
[Desktop Entry]
 
[Desktop Entry]
 
Name=My applications name
 
Name=My applications name
Line 36: Line 43:
 
Type=Application
 
Type=Application
 
StartupNotify=true
 
StartupNotify=true
</pre>}}
+
</source>
  
 
== Where'd the startup applications applet go? ==
 
== Where'd the startup applications applet go? ==
Line 44: Line 51:
 
*[[KDE vs GNOME]]
 
*[[KDE vs GNOME]]
 
*[[Debian]]
 
*[[Debian]]
 +
*[https://extensions.gnome.org/extension/118/no-topleft-hot-corner/ Turn off hot corner]
 
[[Category:Libre software]][[Category:Linux]][[Category:Desktop environments]]
 
[[Category:Libre software]][[Category:Linux]][[Category:Desktop environments]]

Revision as of 18:11, 22 May 2015

GNOME offers an easy to understand desktop environment for your GNU/Linux or UNIX computer.

GNOME 3

GNOME3 Screenshot.png

Extensions

The GNOME Shell extension design is designed to give a high degree of power to the parts of the GNOME interface managed by the shell, such as window management and application launching. It simply loads arbitrary JavaScript and CSS. This gives developers a way to make many kinds of changes and share those changes with others, without having to patch the original source code and recompile it, and somehow distribute the patched code.

Extensions are listed at extensions.gnome.org and can be installed one-click style directly from the site :-) some extensions that I recommend are:

Writing extensions

Create an initial working extension template using the gnome-shell-extension-tool --create-extension command, then after you change your code, you restart the Gnome shell by pressing ALT+F2, then entering r and pressing Enter. To check for errors and perform other debugging tasks, use the LookingGlass applet which can be started by pressing ALT+F2, then entering lg and pressing Enter, and escape to close it. Use the command global.log("text") in your code to output to the error console which you can view from LookingGlass in the errors tab - not that it doesn't update in real-time.

Installing on Ubuntu 12

They've now made Unity the default desktop environment which many people find really horrible, to install GNOME do the following:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell

Then log out and select GNOME at the login prompt

Login-select-Gnome-Shell.png

Adding your own apps to the search

You'll need to create a .desktop file for your application in the ~/.local/share/applications directory with the name of your application as its filename. The content of the file is of the following format:

[Desktop Entry]
Name=My applications name
Comment=My cool application
Exec=/full/path/to/my/app
Icon=/full/path/to/my/app/icon
Terminal=false
Type=Application
StartupNotify=true

Where'd the startup applications applet go?

It's still the same program which is gnome-session-properties, but for some reason there's no longer a launcher for it - you can make one using the instructions in the previous section if you like, or launch it manually from a terminal window.

See also