Difference between revisions of "GNOME (Česky)"

From ArchWiki
Jump to: navigation, search
(Initial commit)
 
(use https for links to archlinux.org)
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{i18n|GNOME 3|GNOME}}
 
 
[[de:GNOME]]
 
[[de:GNOME]]
 +
[[en:GNOME]]
 +
[[es:GNOME]]
 
[[fr:GNOME]]
 
[[fr:GNOME]]
 +
[[it:GNOME]]
 +
[[nl:GNOME]]
 
[[pl:GNOME]]
 
[[pl:GNOME]]
 
+
[[pt:GNOME]]
[[Category:Desktop environments (English)]]
+
[[ru:GNOME]]
 
+
[[sr:GNOME]]
 +
[[th:GNOME]]
 +
[[tr:Gnome_Masaüstü_Ortamı]]
 +
[[uk:GNOME]]
 +
[[zh-CN:GNOME]]
 +
[[zh-TW:GNOME]]
 +
[[Category:Desktop environments (Česky)]]
 +
[[Category:Česky]]
 +
{{translateme}}
 
{{Article summary start}}
 
{{Article summary start}}
{{Article summary text|GNOME 3 provides a modern desktop, rewritten from scratch, using the GTK3+ toolkit.}}
+
{{Article summary text|GNOME 3 poskytuje zbrusu nové moderní prostředí využívající GTK3+ toolkit.}}
 
{{Article summary heading|Overview}}
 
{{Article summary heading|Overview}}
 
{{Article summary text|{{Graphical user interface overview}}}}
 
{{Article summary text|{{Graphical user interface overview}}}}
Line 33: Line 44:
 
'''Nouzový režim''' se podobá GNOME 2. (Používá gnome-panel/Metacity místo gnome-shell/Mutter.)
 
'''Nouzový režim''' se podobá GNOME 2. (Používá gnome-panel/Metacity místo gnome-shell/Mutter.)
  
V nouzovém režimu stále mužete nahradit výchozí správce oken vámi preferovaným.
+
V nouzovém režimu můžete stále nahradit výchozí správce oken vámi preferovaným.
  
 
== Upgrade z GNOME 2 ==
 
== Upgrade z GNOME 2 ==
Line 39: Line 50:
 
{{Warning|Upgrade na GNOME 3 z aktivního GNOME 2 sezení může způsobit poškození systému.}}
 
{{Warning|Upgrade na GNOME 3 z aktivního GNOME 2 sezení může způsobit poškození systému.}}
  
Je doporučeno spouštět aktualizaci ze sezení TTY nebo z jiného pracovního prostředí / správce oken.
+
Aktualizaci je doporučeno spouštět z konzole nebo z jiného pracovního prostředí / správce oken.
  
 
  # pacman -Syu  
 
  # pacman -Syu  
Line 55: Line 66:
 
==Instalace==
 
==Instalace==
  
GNOME 3 is in the [extra] repository. The '''gnome''' group contains the core desktop environment and applications, and gnome-extra contains the rest. You likely do not want all of the packages installed, so consider reading the package descriptions before installing them (or just remove them later).
+
GNOME 3 se nachází v repozitáři [extra]. Skupina '''gnome''' obsahuje základní pracovní prostředí a aplikace, '''gnome-extra''' obsahuje některé další volitelné součásti. Pokud si nejste jisti, jestli všechny balíčky využijete, pročtěte si před instalací jejich popisy (nebo je prostě odstraňte později).
  
Example:
+
Příklad:
  
 
  # pacman -Syu gnome
 
  # pacman -Syu gnome
Line 63: Line 74:
  
 
===D-Bus démon===
 
===D-Bus démon===
The GNOME desktop requires the [[D-Bus]] daemon. Refer to the [[dbus]] article for setup instructions.
+
GNOME pro svůj běh vyžaduje [[D-Bus (Česky)|D-Bus]] démon. V článku [[D-Bus (Česky)|D-Bus]] najdete návod na jeho instalaci.
  
 
=== Spouštění GNOME ===
 
=== Spouštění GNOME ===
  
For the best desktop integration, login manager '''GDM''' is recommended. Other login managers (a.k.a. display managers) such as SLiM can be used in place of GDM. Check out the [[Display_Manager|wiki article on display managers]] to learn how desktop environments are started.
+
Pro nejlepší integraci prostředí je doporučen správce přihlášení '''GDM'''. Nic vám ale nebrání v tom nainstalovat si místo GDM třeba [[SLiM (Česky)|SLiM]] nebo cokoliv jiného. Pro další informace o spouštění pracovního prostředí navštivte [[Display Manager (Česky)|článek o správcích displeje]].
 
+
The login manager is a limited process entrusted with duties that impact the system. The [[PolicyKit|PolicyKit wiki article]] addresses the topic of system‑wide access control.
+
  
 
  # pacman -S gdm
 
  # pacman -S gdm
  
If you prefer to start GNOME manually from the console, add the following line to your {{Filename|~/.xinitrc}} file. Make sure it is the only line (remove the {{Codeline|for}} block from the standard {{Filename|~/.xinitrc}} since the {{Codeline|for}} block can cause problems) and the only command starting with {{Codeline|exec}}. See the [[xinitrc| xinitrc wiki article]].
+
Pokud GNOME radši spouštíte ručně z konzole, přidejte následující '''jediný''' řádek začínající slovem {{ic|exec}} do souboru {{ic|~/.xinitrc}}. Pro více informací viz [[xinitrc| článek o xinitrc]].
{{file|~/.xinitrc|content=<nowiki>
+
{{hc|~/.xinitrc|<nowiki>
  #ONLY THIS LINE
+
  #POUZE TENTO ŘÁDEK:
 
  exec ck-launch-session gnome-session
 
  exec ck-launch-session gnome-session
 
</nowiki>}}
 
</nowiki>}}
  
After the {{Codeline|exec}} command is placed, GNOME can be launched by typing {{Codeline|startx}}.
+
Jakmile soubor uložíte, můžete GNOME spouštět příkazem {{ic|startx}}.
  
 
== Používání shellu ==
 
== Používání shellu ==
Line 85: Line 94:
 
=== GNOME cheat sheet ===
 
=== GNOME cheat sheet ===
  
The GNOME web site has a helpful [https://live.gnome.org/GnomeShell/CheatSheet GNOME Shell cheat sheet] explaining task switching, keyboard use, window control, the panel, overview mode, and more.
+
Na stránkách GNOME najdete užitečný [https://live.gnome.org/GnomeShell/CheatSheet GNOME Shell cheat sheet] s informacemi o přepínání úloh, klávesových zkratkách, práci s okny, panelem apod.
  
 
=== Restartování shellu ===
 
=== Restartování shellu ===
  
After appearance tweaks you are often asked to restart the GNOME shell. You could log out and log back in, but it is simpler and faster to issue the following keyboard command. Restart the shell by pressing {{Keypress|Alt}} + {{Keypress|F2}}  then {{Keypress|r}}  then {{Keypress|Enter}}
+
Po úpravách vzhledu je často vyžadováno restartovat GNOME shell. Mohli bychom se odhlásit a přihlásit, nicméně mnohem jednodušší a rychlejší je stisknout  {{Keypress|Alt}} + {{Keypress|F2}}  a zadat {{Keypress|r}}  následované klávesou {{Keypress|Enter}}.
 
+
=== Pády shellu ===
+
 
+
Certain tweaks and/or repeated shell restarts may cause the shell to crash when a restart is attempted. In this case, you are informed about the crash and then forced to log out. Some shell changes, such as switching between '''''GNOME Shell''''' and '''''fallback mode,''''' cannot be accomplished via a keyboard restart; you must log out and log back in to effect them.
+
 
+
It is common sense — but worth repeating — that valuable documents should be saved (and perhaps closed) before attempting a shell restart. It is not strictly necessary; open windows and documents usually remain intact after a shell restart.
+
  
 
== Přizpůsobení vzhledu GNOME ==
 
== Přizpůsobení vzhledu GNOME ==
  
=== Overall appearance ===
+
=== Celkový vzhled ===
  
GNOME 3 may have "started from scratch", but like most large software projects it is assembled from parts dating to different eras. There is not '''one''' all-encompassing configuration tool. The new ''Systems Settings'' tool is a big improvement over previous control panels. ''System Settings'' is well-organized, but you may find yourself wishing for more control over system appearance.
+
GNOME 3 sice začalo "od píky", to s sebou ale nese i některé nepříjemnosti. Jednou z nich je zatím nepříliš obsáhlý konfigurační nástroj. Pokročilejší volby tady stále jsou, akorát nejsou uživateli tolik na očích. Nové ''Nastavení systému'' je sice přehledné, každopádně nejspíš zatoužíte po více možnostech přizpůsobení vzhledu.
 
+
You may be familiar with existing configuration tools: some of these still work; many will not. Some settings are not readily exposed for you to change. Indubitably, many settings will migrate to newer tools and/or become exposed as time progresses and the wider community embraces and extends the latest GNOME desktop.
+
  
 
==== Gsettings ====
 
==== Gsettings ====
  
A new command-line tool '''gsettings''' stores data in a binary format, unlike previous tools using XML text. A tutorial [http://blog.fpmurphy.com/2011/03/customizing-the-gnome-3-shell.html Customizing the GNOME Shell] explores the power of gsettings.
+
Nový nástroj pro příkazový řádek '''gsettings''' uchovává nastavení v binárním formátu (na rozdíl od gconf a XML). Tutoriál [http://blog.fpmurphy.com/2011/03/customizing-the-gnome-3-shell.html Customizing the GNOME Shell] odhaluje sílu gsettings.
  
 
==== GNOME tweak tool ====
 
==== GNOME tweak tool ====
  
This graphical tool customizes fonts, themes, titlebar buttons and other settings.  
+
Tento grafický nástroj umožňuje změnit písma, motivy, tlačítka oken a další nastavení.
  
 
  # pacman -S gnome-tweak-tool
 
  # pacman -S gnome-tweak-tool
 
Version 3.0.3 only works when gnome-shell is installed (OK if forced to fallback mode). [https://bugzilla.gnome.org/show_bug.cgi?id=647132 Bugzilla bug report here.]
 
  
 
==== settings.ini a nastavení vzhledu GTK3 ====
 
==== settings.ini a nastavení vzhledu GTK3 ====
  
Like '''{{Filename|~/.gtkrc-2.0}}''' with GTK2+, it is possible to set a GTK3 theme via  '''{{Filename|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini}}'''.
+
Podobně jako v '''{{ic|~/.gtkrc-2.0}}''' u GTK2+, je i u GTK3 možné přizpůsobit vzhled v souboru '''{{ic|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini}}'''.
  
Variable {{Codeline|$XDG_CONFIG_HOME}} is usually set to '''~/.config'''
+
Proměnná {{ic|$XDG_CONFIG_HOME}} je obvykle nastavená na '''~/.config'''.
  
''Adwaita,'' the default GNOME 3 theme, is a part of '''gnome-themes-standard.''' Additional GTK3 themes are found at [http://browse.deviantart.com/customization/skins/linuxutil/desktopenv/gnome/gtk3/ Deviantart web site.] For example:
+
''Adwaita,'' výchozí motiv GNOME 3, je součástí '''gnome-themes-standard.''' Další GTK3 motivy najdete třeba na [http://browse.deviantart.com/customization/skins/linuxutil/desktopenv/gnome/gtk3/ stránkách Deviantart.] Příklad:
{{file|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini|content=<nowiki>
+
{{hc|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini|2=<nowiki>
 
   [Settings]
 
   [Settings]
 
   gtk-theme-name = Adwaita
 
   gtk-theme-name = Adwaita
 
   gtk-fallback-icon-theme = gnome
 
   gtk-fallback-icon-theme = gnome
   # next option is applicable only if selected theme supports it
+
   # následující volba funguje jen když ji motiv podporuje
 
   gtk-application-prefer-dark-theme = true
 
   gtk-application-prefer-dark-theme = true
   # set font name and dimension
+
   # nastavení písma a jeho rozměrů
 
   gtk-font-name = Sans 10
 
   gtk-font-name = Sans 10
 
</nowiki>}}
 
</nowiki>}}
  
It is necessary to [[#Restarting_the_shell|restart GNOME shell]] for settings to be applied. More GTK options are found at [http://developer.gnome.org/gtk3/3.0/GtkSettings.html#GtkSettings.properties GNOME developer documentation.]
+
Aby se změny projevily, je nezbytné [[#Restartování_shellu|restartovat GNOME shell]]. Další volby GTK najdete ve [http://developer.gnome.org/gtk3/3.0/GtkSettings.html#GtkSettings.properties vývojářské dokumentaci GNOME.]
  
 
==== Motiv ikon ====
 
==== Motiv ikon ====
  
Using gnome-tweak-tool v. 3.0.3 and later, you can place any icon theme you wish to use inside  '''{{Filename|~/.icons}}'''.
+
GNOME 3 je kompatibilní s motivy ikon GNOME 2, což znamená, že se nemusíme omezovat pouze na motiv výchozí. Pro instalaci nových ikon zkopírujte adresář s motivem do '''{{ic|~/.icons}}''' například takto:
  
Usefully, GNOME 3 is compatible with GNOME 2 icon themes, which means you're not stuck with the default icons. To install a new set of icons, copy your desired icon theme's directory to '''{{Filename|~/.icons}}'''.  As an example:
+
  $ cp -R /home/user/Desktop/muj_motiv_ikon ~/.icons
  
$ cp -R /home/user/Desktop/my_icon_theme ~/.icons
+
Nový motiv ''muj_motiv_ikon'' si můžete aktivovat v '''gnome-tweak-tool''' v sekci '''''Motiv'''''.
  
The new theme  ''my_icon_theme''  is now selectable using '''gnome-tweak-tool''' under  '''''interface.'''''
+
Jinak můžete motiv nastavit také ručně bez gnome-tweak-tool v '''{{ic|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini}}'''.
  
Alternatively, you may textually select your icon theme with no need for gnome-tweak-tool. Add the GTK icon theme name to  '''{{Filename|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini}}'''. Please note, not to use "" as your settings would not be recognised then.
+
: {{hc|${XDG_CONFIG_HOME}/gtk-3.0/settings.ini|2=<nowiki>... předchozí řádky ...
  
: {{file|name=${XDG_CONFIG_HOME}/gtk-3.0/settings.ini|content=<nowiki>... previous lines ...
+
gtk-icon-theme-name = muj_motiv_ikon</nowiki>}}
 
+
gtk-icon-theme-name = my_new_icon_theme</nowiki>}}
+
  
 
=== Nautilus ===
 
=== Nautilus ===
 
==== Remove folders from the places sidebar ====
 
 
The displayed folders are specified in {{Filename|~/.config/user-dirs.dirs}} and can be altered with any editor. An execution of {{codeline|xdg-user-dirs-update}} will change them again, thus it may be advisable to set the file permissions to read-only.
 
  
 
==== Vždy zobrazovat umístění jako text ====
 
==== Vždy zobrazovat umístění jako text ====
  
The standard Nautilus toolbar shows a button bar interface for path navigation. To enter path locations using the ''keyboard'' you must expose the location text-entry field. This is done by pressing {{Keypress|Ctrl}} + {{Keypress|L}}
+
Nástrojová lišta Nautilu standardně používá k navigaci v podsložkách tlačítka. Pokud si přejete zobrazit cestu jako textové pole, stiskněte {{Keypress|Ctrl}} + {{Keypress|L}}
  
To make the location text-entry field always present, use gsettings as shown.
+
Pro trvalé nastavení použijte následující příkaz:
  
 
  $ gsettings set org.gnome.nautilus.preferences always-use-location-entry true
 
  $ gsettings set org.gnome.nautilus.preferences always-use-location-entry true
 
{{Note| after changing this setting you will not be able to expose the button bar. Only when the setting is '''false''' can both forms of location navigation be employed.}}
 
  
 
=== GNOME panel ===
 
=== GNOME panel ===
  
==== Show date in top bar ====
+
==== Zobrazení data v horním panelu ====
  
By default GNOME displays only the weekday and time in the top bar. This can be changed with the following command. Changes take effect immediately.  
+
Jako výchozí zobrazuje GNOME v horním panelu pouze den v týdnu a čas. Datum můžeme přidat následujícím příkazem. Změny se projeví ihned.  
  
 
  # gsettings set org.gnome.shell.clock show-date true
 
  # gsettings set org.gnome.shell.clock show-date true
Line 178: Line 169:
 
==== Skrytí ikonky zpřístupnění ====
 
==== Skrytí ikonky zpřístupnění ====
  
Install {{Package AUR|gnome-shell-extension-noa11y-git}} from [[AUR]].
+
Nainstalujte {{AUR|gnome-shell-extension-noa11y-git}} z [[AUR]].
  
 
==== Skrytí ikonky bluetooth ====
 
==== Skrytí ikonky bluetooth ====
Line 184: Line 175:
 
Deactivate bluetooth as startup-service if that is your intent. Refer to section [[#Automatic_program_launch_upon_login|Automatic program launch upon login]]
 
Deactivate bluetooth as startup-service if that is your intent. Refer to section [[#Automatic_program_launch_upon_login|Automatic program launch upon login]]
  
Create a folder named '''{{Filename|nobluetooth.icon@panel.ui}}'''  in  '''{{Filename|~/.local/share/gnome-shell/extensions}}'''. Create two new files:
+
Create a folder named '''{{ic|nobluetooth.icon@panel.ui}}'''  in  '''{{ic|~/.local/share/gnome-shell/extensions}}'''. Create two new files:
  
: {{File|~/.local/share/gnome-shell/extensions/nobluetooth.icon@panel.ui/extension.js|content=<nowiki>const Panel = imports.ui.panel;
+
: {{hc|~/.local/share/gnome-shell/extensions/nobluetooth.icon@panel.ui/extension.js|2=<nowiki>const Panel = imports.ui.panel;
  
 
function main() {
 
function main() {
Line 192: Line 183:
 
}</nowiki>}}
 
}</nowiki>}}
  
: {{File|~/.local/share/gnome-shell/extensions/nobluetooth.icon@panel.ui/metadata.json|content=<nowiki>{
+
: {{hc|~/.local/share/gnome-shell/extensions/nobluetooth.icon@panel.ui/metadata.json|<nowiki>{
 
   "shell-version": ["3.0"],
 
   "shell-version": ["3.0"],
 
   "uuid": "nobluetooth.icon@panel.ui",
 
   "uuid": "nobluetooth.icon@panel.ui",
Line 199: Line 190:
 
}</nowiki>}}
 
}</nowiki>}}
  
[[#Restarting_the_shell|Restart the GNOME shell.]] The icon should be hidden. If this extension ceases to work in the future, adjust the shell version number in '''{{Filename|metadata.json.}}'''
+
[[#Restartování_shellu|Restart the GNOME shell.]] The icon should be hidden. If this extension ceases to work in the future, adjust the shell version number in '''{{ic|metadata.json.}}'''
  
 
==== Zobrazení ikonky baterie ====
 
==== Zobrazení ikonky baterie ====
  
Pro zobrazení ikony baterie v oznamovací oblasti nainstalujte {{codeline|gnome-power-manager}}.
+
Pro zobrazení ikony baterie v oznamovací oblasti nainstalujte {{ic|gnome-power-manager}}.
  
 
  # pacman -S gnome-power-manager
 
  # pacman -S gnome-power-manager
Line 209: Line 200:
 
==== Zakázání položky "Uspat" ve status menu ====
 
==== Zakázání položky "Uspat" ve status menu ====
  
A quick way to do it system-wide is to change line 153 of '''{{Filename|/usr/share/gnome-shell/js/ui/statusMenu.js}}'''.
+
Nainstalujte Gnome Shell rozšíření [[#Rozšíření GNOME shell|alternative status menu]].
In Gnome 3.2 the file has changed to '''{{Filename|/usr/share/gnome-shell/js/ui/userMenu.js}}'''.  This change takes effect the next time GNOME Shell is started.
+
{{file|/usr/share/gnome-shell/js/ui/userMenu.js|content=<nowiki>
+
// this._haveSuspend = this._upClient.get_can_suspend();  //  Comment this line out.
+
this._haveSuspend = false;                                //  Use this line instead.
+
</nowiki>}}
+
 
+
However, the effect won't last after a GNOME update. A more perennial solution is to install the [[#GNOME shell extensions|alternative status menu]].
+
  
 
  # pacman -S gnome-shell-extension-alternative-status-menu
 
  # pacman -S gnome-shell-extension-alternative-status-menu
Line 230: Line 214:
 
==== Zobrazení sledování systému ====
 
==== Zobrazení sledování systému ====
  
Nainstalujte rozšíření [http://aur.archlinux.org/packages.php?ID=49250 gnome-shell-system-monitor-applet-git] dostupné v [[AUR]].
+
Nainstalujte rozšíření [https://aur.archlinux.org/packages.php?ID=49250 gnome-shell-system-monitor-applet-git] dostupné v [[AUR]].
  
 
==== Zobrazení informací o počasí ====
 
==== Zobrazení informací o počasí ====
  
Nainstalujte {{Package AUR|gnome-shell-extension-weather-git}} z [[AUR]].
+
Nainstalujte {{AUR|gnome-shell-extension-weather-git}} z [[AUR]].
  
 
=== Zobrazení činností ===
 
=== Zobrazení činností ===
Line 240: Line 224:
 
==== Odstranění položek z přehledu aplikací ====
 
==== Odstranění položek z přehledu aplikací ====
  
Like other desktop environments, GNOME uses .desktop files to populate its Applications view. These text files are in '''{{filename|/usr/share/applications}}'''.  It is not possible to edit these files from a folder view ‒ Nautilus does not treat their icons as text files. Use a terminal to display or edit .desktop file entries.
+
Like other desktop environments, GNOME uses .desktop files to populate its Applications view. These text files are in '''{{ic|/usr/share/applications}}'''.  It is not possible to edit these files from a folder view ‒ Nautilus does not treat their icons as text files. Use a terminal to display or edit .desktop file entries.
  
 
  # ls /usr/share/applications
 
  # ls /usr/share/applications
 
  # nano /usr/share/applications/foo.desktop
 
  # nano /usr/share/applications/foo.desktop
  
For system wide changes, edit files in '''{{filename|/usr/share/applications}}'''.  For local changes, make a copy of ''foo.desktop''  in your home folder.
+
For system wide changes, edit files in '''{{ic|/usr/share/applications}}'''.  For local changes, make a copy of ''foo.desktop''  in your home folder.
  
 
  $ cp /usr/share/applications/foo.desktop ~/.local/share/applications/
 
  $ cp /usr/share/applications/foo.desktop ~/.local/share/applications/
Line 259: Line 243:
 
One awkward selection of the GNOME designers is their choice of large icons for Applications view. This view is painful when working with a small screen containing many large application icons. There is a way to reduce the icon size. It is done by editing the Gnome-Shell theme.
 
One awkward selection of the GNOME designers is their choice of large icons for Applications view. This view is painful when working with a small screen containing many large application icons. There is a way to reduce the icon size. It is done by editing the Gnome-Shell theme.
  
Edit system files directly (make a backup first) or copy theme files to your local folder and edit these files. For the default theme, edit  '''{{filename|/usr/share/gnome-shell/theme/gnome-shell.css}}'''
+
Edit system files directly (make a backup first) or copy theme files to your local folder and edit these files. For the default theme, edit  '''{{ic|/usr/share/gnome-shell/theme/gnome-shell.css}}'''
  
For user themes, edit '''{{filename|/usr/share/themes/<UserTheme>/gnome-shell/gnome-shell.css}}'''
+
For user themes, edit '''{{ic|/usr/share/themes/<UserTheme>/gnome-shell/gnome-shell.css}}'''
  
Edit ''gnome-shell.css''  and replace the following values. Afterward, [[#Restarting_the_shell|restart the GNOME shell.]]
+
Edit ''gnome-shell.css''  and replace the following values. Afterward, [[#Restartování_shellu|restart the GNOME shell.]]
{{file|gnome-shell.css|content=<nowiki>
+
{{hc|gnome-shell.css|<nowiki>
 
  .icon-grid {
 
  .icon-grid {
 
     spacing: 18px;
 
     spacing: 18px;
Line 275: Line 259:
 
</nowiki>}}
 
</nowiki>}}
  
A cloned GNOME Shell theme with smaller icons is available [http://aur.archlinux.org/packages.php?ID=51586 on the AUR].
+
A cloned GNOME Shell theme with smaller icons is available [https://aur.archlinux.org/packages.php?ID=51586 on the AUR].
  
 
=== Záhlaví okna ===
 
=== Záhlaví okna ===
Line 283: Line 267:
 
  # sed -i '/title_vertical_pad/s|value="[0-9]\{1,2\}"|value="0"|g' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
 
  # sed -i '/title_vertical_pad/s|value="[0-9]\{1,2\}"|value="0"|g' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
  
[[#Restarting_the_shell|Restartujte GNOME shell.]] Příkaz změní vertikální odsazení titulku ze 14 na 0 a dodá záhlaví uhlazenější vzhled.
+
[[#Restartování_shellu|Restartujte GNOME shell.]] Příkaz změní vertikální odsazení titulku ze 14 na 0 a dodá záhlaví uhlazenější vzhled.
  
 
Pro obnovení původních hodnot:
 
Pro obnovení původních hodnot:
Line 293: Line 277:
 
At present this setting is changeable only through '''gconf-editor.'''
 
At present this setting is changeable only through '''gconf-editor.'''
  
For example, we move the close and minimize buttons to the left side of the titlebar. Open '''gconf-editor''' and locate the  '''''desktop.gnome.shell.windows.button_layout'''''  key. Change its value to '''{{Codeline|close,minimize:}}'''  (Colon symbol designates the spacer between left side and right side of the titlebar.) Use whichever buttons in whatever order you prefer. You cannot use a button more than once. Also, keep in mind that certain buttons are deprecated. [[#Restarting_the_shell|Restart the shell]] to see your new button arrangement.
+
For example, we move the close and minimize buttons to the left side of the titlebar. Open '''gconf-editor''' and locate the  '''''desktop.gnome.shell.windows.button_layout'''''  key. Change its value to '''{{ic|close,minimize:}}'''  (Colon symbol designates the spacer between left side and right side of the titlebar.) Use whichever buttons in whatever order you prefer. You cannot use a button more than once. Also, keep in mind that certain buttons are deprecated. [[#Restartování_shellu|Restart the shell]] to see your new button arrangement.
  
 
==== Skrytí záhlaví při maximalizaci ====
 
==== Skrytí záhlaví při maximalizaci ====
Line 299: Line 283:
 
  # sed -i -r 's|(<frame_geometry name="max")|\1 has_title="false"|' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
 
  # sed -i -r 's|(<frame_geometry name="max")|\1 has_title="false"|' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml
  
[[#Restarting_the_shell|Restartujte GNOME shell.]] Po této úpravě možná budete mít problém zrušit maximalizaci okna, když ho nebude za co chytit.
+
[[#Restartování_shellu|Restartujte GNOME shell.]] Po této úpravě možná budete mít problém zrušit maximalizaci okna, když ho nebude za co chytit.
  
 
With suitable keybindings, you should be able to use {{Keypress|Alt}} + {{Keypress|F5}},  {{Keypress|Alt}} + {{Keypress|F10}}  or  {{Keypress|Alt}} + {{Keypress|Space}}  to remedy the situation.
 
With suitable keybindings, you should be able to use {{Keypress|Alt}} + {{Keypress|F5}},  {{Keypress|Alt}} + {{Keypress|F10}}  or  {{Keypress|Alt}} + {{Keypress|Space}}  to remedy the situation.
  
To prevent '''{{filename|metacity-theme-3.xml}}''' from being overwritten each time package "gnome-themes-standard" is upgraded, add its name to '''{{Filename|/etc/pacman.conf}}''' with {{Codeline|NoUpgrade}}.
+
To prevent '''{{ic|metacity-theme-3.xml}}''' from being overwritten each time package "gnome-themes-standard" is upgraded, add its name to '''{{ic|/etc/pacman.conf}}''' with {{ic|NoUpgrade}}.
  
: {{File|/etc/pacman.conf|content=<nowiki>... previous lines ...
+
: {{hc|/etc/pacman.conf|2=<nowiki>... previous lines ...
  
 
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
 
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
Line 335: Line 319:
  
 
  $ `dbus-launch | sed "s/^/export /"`
 
  $ `dbus-launch | sed "s/^/export /"`
 
  
 
Check to see if dconf-service is running and if not, start it like this
 
Check to see if dconf-service is running and if not, start it like this
Line 352: Line 335:
  
 
The following is the command-line approach to retrieve or set the file name used for GDM's wallpaper.
 
The following is the command-line approach to retrieve or set the file name used for GDM's wallpaper.
<pre style="overflow:auto;">
+
{{bc|<nowiki>
$  GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri
+
$  GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri
$  GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/SundownDunes.jpg'
+
$  GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/SundownDunes.jpg'
+
 
$  GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-options 'zoom'
+
$  GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-options 'zoom'
## Possible values: centered, none, scaled, spanned, stretched, wallpaper, zoom</pre>
+
## Possible values: centered, none, scaled, spanned, stretched, wallpaper, zoom</nowiki>}}
 
Note: You must specify a file which user "gdm" has permission to read. GDM cannot read files in your home directory.
 
Note: You must specify a file which user "gdm" has permission to read. GDM cannot read files in your home directory.
  
Line 397: Line 380:
 
==== Nastavení aplikací spouštěných při přihlášení ====
 
==== Nastavení aplikací spouštěných při přihlášení ====
  
Aplikace, které se automaticky spouští po přihlášení nastavíme pomocí {{codeline|gnome-session-properties}}. Tento nástroj je součástí balíčku {{codeline|gnome-session}}.
+
Aplikace, které se automaticky spouští po přihlášení nastavíme pomocí {{ic|gnome-session-properties}}. Tento nástroj je součástí balíčku {{ic|gnome-session}}.
  
 
  $ gnome-session-properties
 
  $ gnome-session-properties
Line 424: Line 407:
 
GNOME Shell can be customized with extensions written by others. These provide features such as a dock or a widget for changing the  theme. Details on available extensions are found at the [http://www.webupd8.org/2011/04/gnome-shell-extensions-additional.html WEBUPD8] site. The most recent articles can be found using this [http://www.webupd8.org/search/label/gnome%20shell%20extensions?max-results=20 WEBUPD8 search link.]
 
GNOME Shell can be customized with extensions written by others. These provide features such as a dock or a widget for changing the  theme. Details on available extensions are found at the [http://www.webupd8.org/2011/04/gnome-shell-extensions-additional.html WEBUPD8] site. The most recent articles can be found using this [http://www.webupd8.org/search/label/gnome%20shell%20extensions?max-results=20 WEBUPD8 search link.]
  
Repository '''[extras]''' has a dozen extensions which can be installed individually. (The latest version of a given extension may be installed using its code snapshot, if preferred.)  [http://www.archlinux.org/packages/?sort=&q=gnome-shell-extension&maintainer=&last_update=&flagged=&limit=50 List here.]
+
Repository '''[extras]''' has a dozen extensions which can be installed individually. (The latest version of a given extension may be installed using its code snapshot, if preferred.)  [https://www.archlinux.org/packages/?sort=&q=gnome-shell-extension&maintainer=&last_update=&flagged=&limit=50 List here.]
  
 
  $ pacman -Ss gnome-shell-extension
 
  $ pacman -Ss gnome-shell-extension
Line 437: Line 420:
 
|  ''[https://aur.archlinux.org/packages.php?ID=48607 Alternative Status Menu]''    || Adds "Hibernate" and "Power Off" to the status menu.
 
|  ''[https://aur.archlinux.org/packages.php?ID=48607 Alternative Status Menu]''    || Adds "Hibernate" and "Power Off" to the status menu.
 
|-
 
|-
|  ''[https://aur.archlinux.org/packages.php?ID=51102 Theme selector]'' || Select a theme in the activities overview. To install a custom theme with Gnome Tweak Tool you need to install the ''[http://www.archlinux.org/packages/extra/any/gnome-shell-extension-user-theme User theme extension]''
+
|  ''[https://aur.archlinux.org/packages.php?ID=51102 Theme selector]'' || Select a theme in the activities overview. To install a custom theme with Gnome Tweak Tool you need to install the ''[https://www.archlinux.org/packages/extra/any/gnome-shell-extension-user-theme User theme extension]''
 
|}
 
|}
  
[[#Restarting_the_shell|Restart the GNOME Shell]]  after installing an extension. See [[#When_an_extension_breaks_GNOME|when an extension breaks GNOME]] for troubleshooting information.
+
[[#Restartování_shellu|Restart the GNOME Shell]]  after installing an extension. See [[#When_an_extension_breaks_GNOME|when an extension breaks GNOME]] for troubleshooting information.
  
 
=== Výchozí terminál ===
 
=== Výchozí terminál ===
  
{{codeline|gsettings}}, which replaces {{codeline|gconftool-2}} in GNOME 3, is used to set e. g. the default terminal manually. The setting is relevant for ''nautilus-open-terminal''.
+
{{ic|gsettings}}, which replaces {{ic|gconftool-2}} in GNOME 3, is used to set e. g. the default terminal manually. The setting is relevant for ''nautilus-open-terminal''.
 
The commands for [[rxvt-unicode|urxvt]] run as daemon:
 
The commands for [[rxvt-unicode|urxvt]] run as daemon:
  
Line 450: Line 433:
 
  gsettings set org.gnome.desktop.default-applications.terminal exec-arg "'-e'"
 
  gsettings set org.gnome.desktop.default-applications.terminal exec-arg "'-e'"
  
{{Note|For ''nautilus-open-terminal'', you may need a flag (e.g. {{Codeline|-e}}) to indicate that a command will follow: ''nautilus-open-terminal'' passes a {{Codeline|cd}} command in order to change directories to the appropriate location.}}
+
{{Note|For ''nautilus-open-terminal'', you may need a flag (e.g. {{ic|-e}}) to indicate that a command will follow: ''nautilus-open-terminal'' passes a {{ic|cd}} command in order to change directories to the appropriate location.}}
  
 
=== Prostřední tlačítko myši ===
 
=== Prostřední tlačítko myši ===
Line 464: Line 447:
 
Upgrading to GNOME 3 will likely break your xmonad setup. You can use xmonad again by [[#Enabling_fallback_mode|forcing fallback mode]] and creating two files:
 
Upgrading to GNOME 3 will likely break your xmonad setup. You can use xmonad again by [[#Enabling_fallback_mode|forcing fallback mode]] and creating two files:
  
: {{file|name=/usr/share/gnome-session/sessions/xmonad.session|content=<nowiki>[GNOME Session]
+
: {{hc|/usr/share/gnome-session/sessions/xmonad.session|2=<nowiki>[GNOME Session]
 
Name=Xmonad session
 
Name=Xmonad session
 
RequiredComponents=gnome-panel;gnome-settings-daemon;
 
RequiredComponents=gnome-panel;gnome-settings-daemon;
Line 471: Line 454:
 
DefaultProvider-notifications=notification-daemon</nowiki>}}
 
DefaultProvider-notifications=notification-daemon</nowiki>}}
  
: {{file|name=/usr/share/xsessions/xmonad-gnome-session.desktop|content=<nowiki>[Desktop Entry]
+
: {{hc|/usr/share/xsessions/xmonad-gnome-session.desktop|2=<nowiki>[Desktop Entry]
 
Name=Xmonad GNOME
 
Name=Xmonad GNOME
 
Comment=Tiling window manager
 
Comment=Tiling window manager
Line 486: Line 469:
 
You can use wmii with gnome by [[#Enabling_fallback_mode|forcing fallback mode]] and creating tree files:
 
You can use wmii with gnome by [[#Enabling_fallback_mode|forcing fallback mode]] and creating tree files:
  
 
+
: {{hc|/usr/share/applications/wmii.desktop|2=<nowiki>
: {{file|name=/usr/share/applications/wmii.desktop|content=<nowiki>
+
 
[Desktop Entry]
 
[Desktop Entry]
 
Version=1.0
 
Version=1.0
Line 495: Line 477:
 
Exec=wmii</nowiki>}}
 
Exec=wmii</nowiki>}}
  
: {{file|name=/usr/share/xsessions/gnome-wmii.desktop|content=<nowiki>
+
: {{hc|/usr/share/xsessions/gnome-wmii.desktop|2=<nowiki>
 
[Desktop Entry]
 
[Desktop Entry]
 
Name=Gnome-wmii
 
Name=Gnome-wmii
Line 503: Line 485:
 
Type=Application</nowiki>}}
 
Type=Application</nowiki>}}
  
: {{file|name=/usr/share/gnome-session/sessions/wmii.session|content=<nowiki>
+
: {{hc|/usr/share/gnome-session/sessions/wmii.session|2=<nowiki>
 
[GNOME Session]
 
[GNOME Session]
 
Name=wmii
 
Name=wmii
Line 533: Line 515:
 
=== Úprava klávesových zkratek ===
 
=== Úprava klávesových zkratek ===
  
Firstly, use '''dconf-editor''' to place a checkmark next to  {{Codeline|can-change-accels}}  in the key named ''org.gnome.desktop.interface.''
+
Firstly, use '''dconf-editor''' to place a checkmark next to  {{ic|can-change-accels}}  in the key named ''org.gnome.desktop.interface.''
  
 
We will replace the hotkey — a.k.a. keyboard shortcut, keyboard accelerator — used by Nautilus to move files to the trash folder.
 
We will replace the hotkey — a.k.a. keyboard shortcut, keyboard accelerator — used by Nautilus to move files to the trash folder.
Line 545: Line 527:
 
* Press {{Keypress|Delete}} to make the new accelerator be the Delete key.
 
* Press {{Keypress|Delete}} to make the new accelerator be the Delete key.
  
Unless you select a file or folder, ''Move to Trash''  will be grayed-out. Finally, disable {{Codeline|can-change-accels}} to prevent accidental hotkey changes.
+
Unless you select a file or folder, ''Move to Trash''  will be grayed-out. Finally, disable {{ic|can-change-accels}} to prevent accidental hotkey changes.
  
 
=== Shutdown via the status menu ===
 
=== Shutdown via the status menu ===
Line 573: Line 555:
 
If you wish to enable fallback mode while still having '''gnome-shell''' installed, make the following system change:
 
If you wish to enable fallback mode while still having '''gnome-shell''' installed, make the following system change:
  
Open '''gnome-control-center.''' Click the ''System Info'' icon. Click Graphics. Change ''Forced Fallback Mode'' to {{Codeline|ON.}}
+
Open '''gnome-control-center.''' Click the ''System Info'' icon. Click Graphics. Change ''Forced Fallback Mode'' to {{ic|ON.}}
  
 
You can alternatively choose the type of session from a terminal with a ''gsettings'' command:
 
You can alternatively choose the type of session from a terminal with a ''gsettings'' command:
Line 597: Line 579:
 
When enabling shell extensions causes GNOME breakage, you should first remove the ''user-theme'' and ''auto-move-windows'' extensions from their installation directory.
 
When enabling shell extensions causes GNOME breakage, you should first remove the ''user-theme'' and ''auto-move-windows'' extensions from their installation directory.
  
The installation directory could be one of  '''{{Filename|~/.local/share/gnome‑shell/extensions,}}''' '''{{Filename|/usr/share/gnome‑shell/extensions,}}''' or '''{{Filename|/usr/local/share/gnome‑shell/extensions}}'''. Removing these two extension-containing folders may fix the breakage. Otherwise, isolate the problem extension with trial‑and‑error.
+
The installation directory could be one of  '''{{ic|~/.local/share/gnome‑shell/extensions,}}''' '''{{ic|/usr/share/gnome‑shell/extensions,}}''' or '''{{ic|/usr/local/share/gnome‑shell/extensions}}'''. Removing these two extension-containing folders may fix the breakage. Otherwise, isolate the problem extension with trial‑and‑error.
  
 
Removing or adding an extension-containing folder to the aforementioned directories removes or adds the corresponding extension to your system. Details on Gnome Shell extensions are available at the [https://live.gnome.org/GnomeShell/Extensions GNOME web site.]
 
Removing or adding an extension-containing folder to the aforementioned directories removes or adds the corresponding extension to your system. Details on Gnome Shell extensions are available at the [https://live.gnome.org/GnomeShell/Extensions GNOME web site.]
Line 603: Line 585:
 
=== Extensions do not work after GNOME 3 update ===
 
=== Extensions do not work after GNOME 3 update ===
  
Locate the folder where your extensions are installed. It might be '''{{Filename|~/.local/share/gnome-shell/extensions}}''' or '''{{Filename|/usr/share/gnome-shell/extensions}}'''.
+
Locate the folder where your extensions are installed. It might be '''{{ic|~/.local/share/gnome-shell/extensions}}''' or '''{{ic|/usr/share/gnome-shell/extensions}}'''.
  
Edit each occurrence of  '''{{Filename|metadata.json}}'''  which appears in each extension sub-folder.  
+
Edit each occurrence of  '''{{ic|metadata.json}}'''  which appears in each extension sub-folder.  
  
 
{| border="0"
 
{| border="0"
| Insert: || '''{{Codeline|"shell-version": ["3.0"]}}'''
+
| Insert: || '''{{ic|"shell-version": ["3.0"]}}'''
 
|-
 
|-
| Instead of (for example):  || '''{{Codeline|"shell-version": ["3.0.1"]}}'''
+
| Instead of (for example):  || '''{{ic|"shell-version": ["3.0.1"]}}'''
 
|-
 
|-
| You might instead use: || '''{{Codeline|"shell-version": ["3.0.0", "3.0.1", "3.0.2"]}}'''
+
| You might instead use: || '''{{ic|"shell-version": ["3.0.0", "3.0.1", "3.0.2"]}}'''
 
|}
 
|}
  
Line 622: Line 604:
 
Screen lock only works when you suspend through GNOME's status menu. If you suspend or hibernate using the power button, your screen is not locked after resume. The problem is a configuration failure in dconf.
 
Screen lock only works when you suspend through GNOME's status menu. If you suspend or hibernate using the power button, your screen is not locked after resume. The problem is a configuration failure in dconf.
  
Open ''dconf-editor'' and uncheck  '''{{Codeline|lock-use-screensaver}}'''  in the key named  ''org.gnome.power-manager.''
+
Open ''dconf-editor'' and uncheck  '''{{ic|lock-use-screensaver}}'''  in the key named  ''org.gnome.power-manager.''
 
   
 
   
 
  # gsettings set org.gnome.power-manager lock-use-screensaver 'false'
 
  # gsettings set org.gnome.power-manager lock-use-screensaver 'false'
Line 632: Line 614:
 
That usually happens when '''oxygen-gtk''' is installed. This theme appears to conflict with GNOME 3 or GTK3 settings. When '''oxygen-gtk''' has been set as a GTK2 theme, GTK2 apps segfault with errors like these:
 
That usually happens when '''oxygen-gtk''' is installed. This theme appears to conflict with GNOME 3 or GTK3 settings. When '''oxygen-gtk''' has been set as a GTK2 theme, GTK2 apps segfault with errors like these:
  
<pre> (firefox-bin:14345): GLib-GObject-WARNING **: invalid (NULL) pointer instance
+
{{bc| (firefox-bin:14345): GLib-GObject-WARNING **: invalid (NULL) pointer instance
  
 
(firefox-bin:14345): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
 
(firefox-bin:14345): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Line 642: Line 624:
 
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
 
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
 
Segmentation fault
 
Segmentation fault
</pre>
+
}}
  
 
The current workaround is to remove '''oxygen-gtk''' from the system and use a different theme for applications.
 
The current workaround is to remove '''oxygen-gtk''' from the system and use a different theme for applications.
Line 670: Line 652:
 
=== Editing hotkeys via can-change-accels fails ===
 
=== Editing hotkeys via can-change-accels fails ===
  
It is also possible to manually change the keys via an application's so-called accel map file. Where it is to be found is up to the application: For instance, Thunar's is at {{Filename|~/.config/Thunar/accels.scm}}, whereas Nautilus's is located at {{Filename|~/.gnome2/accels/nautilus}}. The file should contain a list of possible hotkeys, each unchanged line commented out with a leading ";" that has to be removed for a change to become active.
+
It is also possible to manually change the keys via an application's so-called accel map file. Where it is to be found is up to the application: For instance, Thunar's is at {{ic|~/.config/Thunar/accels.scm}}, whereas Nautilus's is located at {{ic|~/.gnome2/accels/nautilus}}. The file should contain a list of possible hotkeys, each unchanged line commented out with a leading ";" that has to be removed for a change to become active.
  
 
=== Panels do not respond to right-click in fallback mode ===
 
=== Panels do not respond to right-click in fallback mode ===
Line 685: Line 667:
  
 
# Press {{keypress|ALT}}+{{keypress|F2}}
 
# Press {{keypress|ALT}}+{{keypress|F2}}
# Enter {{codeline|gnome-tweak-tool}}
+
# Enter {{ic|gnome-tweak-tool}}
 
# Select the ''File Manager'' tab.
 
# Select the ''File Manager'' tab.
 
# Locate option ''Have file manager handle the desktop'' and assure it is toggled '''off'''.
 
# Locate option ''Have file manager handle the desktop'' and assure it is toggled '''off'''.
Line 702: Line 684:
  
 
Some laptops have a touchpad lock button that disables the touchpad so that users can type without worrying about touching the touchpad. It appears currently that although GNOME can lock the touchpad by pressing this button, it can't unlock it. If the touchpad gets locked you can do the following to unlock it.
 
Some laptops have a touchpad lock button that disables the touchpad so that users can type without worrying about touching the touchpad. It appears currently that although GNOME can lock the touchpad by pressing this button, it can't unlock it. If the touchpad gets locked you can do the following to unlock it.
# Start a terminal. You can do this by pressing {{keypress|ALT}}+{{keypress|F2}} , then typing {{codeline|gnome-terminal}} and then pressing {{keypress|ENTER}}
+
# Start a terminal. You can do this by pressing {{keypress|ALT}}+{{keypress|F2}} , then typing {{ic|gnome-terminal}} and then pressing {{keypress|ENTER}}
 
# Type in the following command
 
# Type in the following command
 
  $ xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1
 
  $ xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1
Line 708: Line 690:
 
=== Ctrl+V pastes path instead of file in Nautilus ===
 
=== Ctrl+V pastes path instead of file in Nautilus ===
  
If you are affected by this issue, edit {{filename|~/.gnome2/accels/nautilus}} where you can find two lines for Ctrl+V :
+
If you are affected by this issue, edit {{ic|~/.gnome2/accels/nautilus}} where you can find two lines for Ctrl+V :
{{file|~/.gnome2/accels/nautilus|content=<nowiki>
+
{{hc|~/.gnome2/accels/nautilus|<nowiki>
 
(gtk_accel_path "<Actions>/DirViewActions/Paste" "<Control>v")
 
(gtk_accel_path "<Actions>/DirViewActions/Paste" "<Control>v")
 
...
 
...
Line 738: Line 720:
 
  $ echo "Inherits=Adwaita" >> index.theme
 
  $ echo "Inherits=Adwaita" >> index.theme
  
Alternatively, you can install {{Package AUR|gnome-cursors-fix}} from [[AUR]].
+
Alternatively, you can install {{AUR|gnome-cursors-fix}} from [[AUR]].
  
 
== External links ==
 
== External links ==

Revision as of 01:39, 6 December 2012

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:GNOME (Česky)#)
Summary help replacing me
GNOME 3 poskytuje zbrusu nové moderní prostředí využívající GTK3+ toolkit.
Overview
Template:Graphical user interface overview
Related
GTK+

Projekt GNOME začal od píky a vytvořil úplně nový desktop jménem GNOME 3. Nabízí:

  • Moderní vzhled a písmo
  • Přístup ke všem oknům a aplikacím pomocí "Činností"
  • Přívětivý systém notifikací a nenápadný horní panel
  • Integraci vylepšeného prohlížeče souborů Nautilus
  • Integrované služby pro komunikaci
  • Novou aplikaci pro nastavení systému
  • Vyhledávací funkci činností
  • Funkce jako automatické rozmisťování oken

Další informace najdete na oficiálních stránkách GNOME 3.

Contents

Úvod

GNOME 3 má dvě prostředí: GNOME Shell (nový standardní layout) a nouzový režim (fallback mode). Sezení GNOME automaticky rozpozná, kdy počítač není schopen spustit Gnome Shell a v případě nutnosti spustí nouzový režim.

Nouzový režim se podobá GNOME 2. (Používá gnome-panel/Metacity místo gnome-shell/Mutter.)

V nouzovém režimu můžete stále nahradit výchozí správce oken vámi preferovaným.

Upgrade z GNOME 2

Warning: Upgrade na GNOME 3 z aktivního GNOME 2 sezení může způsobit poškození systému.

Aktualizaci je doporučeno spouštět z konzole nebo z jiného pracovního prostředí / správce oken.

# pacman -Syu 

Touto aktualizací jsme nainstalovali pouze nouzový režim GNOME 3.x. Pro instaci nového GNOME shellu:

# pacman -S gnome-shell

V závislosti na vašem nastavení může být pro správnou funkčnost nezbytné odstranit starou konfiguraci:

$ mv .config .config.bak
$ mv .gconf .gconf.bak
$ mv .gnome2 .gnome2.bak

Instalace

GNOME 3 se nachází v repozitáři [extra]. Skupina gnome obsahuje základní pracovní prostředí a aplikace, gnome-extra obsahuje některé další volitelné součásti. Pokud si nejste jisti, jestli všechny balíčky využijete, pročtěte si před instalací jejich popisy (nebo je prostě odstraňte později).

Příklad:

# pacman -Syu gnome
# pacman -S gnome-extra

D-Bus démon

GNOME pro svůj běh vyžaduje D-Bus démon. V článku D-Bus najdete návod na jeho instalaci.

Spouštění GNOME

Pro nejlepší integraci prostředí je doporučen správce přihlášení GDM. Nic vám ale nebrání v tom nainstalovat si místo GDM třeba SLiM nebo cokoliv jiného. Pro další informace o spouštění pracovního prostředí navštivte článek o správcích displeje.

# pacman -S gdm

Pokud GNOME radši spouštíte ručně z konzole, přidejte následující jediný řádek začínající slovem exec do souboru ~/.xinitrc. Pro více informací viz článek o xinitrc.

~/.xinitrc
 #POUZE TENTO ŘÁDEK:
 exec ck-launch-session gnome-session

Jakmile soubor uložíte, můžete GNOME spouštět příkazem startx.

Používání shellu

GNOME cheat sheet

Na stránkách GNOME najdete užitečný GNOME Shell cheat sheet s informacemi o přepínání úloh, klávesových zkratkách, práci s okny, panelem apod.

Restartování shellu

Po úpravách vzhledu je často vyžadováno restartovat GNOME shell. Mohli bychom se odhlásit a přihlásit, nicméně mnohem jednodušší a rychlejší je stisknout Template:Keypress + Template:Keypress a zadat Template:Keypress následované klávesou Template:Keypress.

Přizpůsobení vzhledu GNOME

Celkový vzhled

GNOME 3 sice začalo "od píky", to s sebou ale nese i některé nepříjemnosti. Jednou z nich je zatím nepříliš obsáhlý konfigurační nástroj. Pokročilejší volby tady stále jsou, akorát nejsou uživateli tolik na očích. Nové Nastavení systému je sice přehledné, každopádně nejspíš zatoužíte po více možnostech přizpůsobení vzhledu.

Gsettings

Nový nástroj pro příkazový řádek gsettings uchovává nastavení v binárním formátu (na rozdíl od gconf a XML). Tutoriál Customizing the GNOME Shell odhaluje sílu gsettings.

GNOME tweak tool

Tento grafický nástroj umožňuje změnit písma, motivy, tlačítka oken a další nastavení.

# pacman -S gnome-tweak-tool

settings.ini a nastavení vzhledu GTK3

Podobně jako v ~/.gtkrc-2.0 u GTK2+, je i u GTK3 možné přizpůsobit vzhled v souboru ${XDG_CONFIG_HOME}/gtk-3.0/settings.ini.

Proměnná $XDG_CONFIG_HOME je obvykle nastavená na ~/.config.

Adwaita, výchozí motiv GNOME 3, je součástí gnome-themes-standard. Další GTK3 motivy najdete třeba na stránkách Deviantart. Příklad:

${XDG_CONFIG_HOME}/gtk-3.0/settings.ini
  [Settings]
  gtk-theme-name = Adwaita
  gtk-fallback-icon-theme = gnome
  # následující volba funguje jen když ji motiv podporuje
  gtk-application-prefer-dark-theme = true
  # nastavení písma a jeho rozměrů
  gtk-font-name = Sans 10

Aby se změny projevily, je nezbytné restartovat GNOME shell. Další volby GTK najdete ve vývojářské dokumentaci GNOME.

Motiv ikon

GNOME 3 je kompatibilní s motivy ikon GNOME 2, což znamená, že se nemusíme omezovat pouze na motiv výchozí. Pro instalaci nových ikon zkopírujte adresář s motivem do ~/.icons například takto:

$ cp -R /home/user/Desktop/muj_motiv_ikon ~/.icons

Nový motiv muj_motiv_ikon si můžete aktivovat v gnome-tweak-tool v sekci Motiv.

Jinak můžete motiv nastavit také ručně bez gnome-tweak-tool v ${XDG_CONFIG_HOME}/gtk-3.0/settings.ini.

${XDG_CONFIG_HOME}/gtk-3.0/settings.ini
... předchozí řádky ...

gtk-icon-theme-name = muj_motiv_ikon

Nautilus

Vždy zobrazovat umístění jako text

Nástrojová lišta Nautilu standardně používá k navigaci v podsložkách tlačítka. Pokud si přejete zobrazit cestu jako textové pole, stiskněte Template:Keypress + Template:Keypress

Pro trvalé nastavení použijte následující příkaz:

$ gsettings set org.gnome.nautilus.preferences always-use-location-entry true

GNOME panel

Zobrazení data v horním panelu

Jako výchozí zobrazuje GNOME v horním panelu pouze den v týdnu a čas. Datum můžeme přidat následujícím příkazem. Změny se projeví ihned.

# gsettings set org.gnome.shell.clock show-date true

Skrytí ikonky zpřístupnění

Nainstalujte gnome-shell-extension-noa11y-gitAUR z AUR.

Skrytí ikonky bluetooth

Deactivate bluetooth as startup-service if that is your intent. Refer to section Automatic program launch upon login

Create a folder named nobluetooth.icon@panel.ui in ~/.local/share/gnome-shell/extensions. Create two new files:

~/.local/share/gnome-shell/extensions/nobluetooth.icon@panel.ui/extension.js
const Panel = imports.ui.panel;

function main() {
  Panel.STANDARD_TRAY_ICON_SHELL_IMPLEMENTATION['bluetooth'] = '';
}
~/.local/share/gnome-shell/extensions/nobluetooth.icon@panel.ui/metadata.json
{
  "shell-version": ["3.0"],
  "uuid": "nobluetooth.icon@panel.ui",
  "name": "nbluetooth",
  "description": "Turn off the bluetooth icon in the panel"
}

Restart the GNOME shell. The icon should be hidden. If this extension ceases to work in the future, adjust the shell version number in metadata.json.

Zobrazení ikonky baterie

Pro zobrazení ikony baterie v oznamovací oblasti nainstalujte gnome-power-manager.

# pacman -S gnome-power-manager

Zakázání položky "Uspat" ve status menu

Nainstalujte Gnome Shell rozšíření alternative status menu.

# pacman -S gnome-shell-extension-alternative-status-menu

Eliminate delay when logging out

The following tweak removes the confirmation dialog and sixty second delay for logging out.

This dialog normally appears when you log out with the status menu. This tweak affects the Power Off dialog as well. This is not a system-wide change; it affects only the user who enters this command. The change takes effect immediately after entering the command.

$ gsettings set org.gnome.SessionManager logout-prompt 'false'

Zobrazení sledování systému

Nainstalujte rozšíření gnome-shell-system-monitor-applet-git dostupné v AUR.

Zobrazení informací o počasí

Nainstalujte gnome-shell-extension-weather-gitAUR z AUR.

Zobrazení činností

Odstranění položek z přehledu aplikací

Like other desktop environments, GNOME uses .desktop files to populate its Applications view. These text files are in /usr/share/applications. It is not possible to edit these files from a folder view ‒ Nautilus does not treat their icons as text files. Use a terminal to display or edit .desktop file entries.

# ls /usr/share/applications
# nano /usr/share/applications/foo.desktop

For system wide changes, edit files in /usr/share/applications. For local changes, make a copy of foo.desktop in your home folder.

$ cp /usr/share/applications/foo.desktop ~/.local/share/applications/

Edit .desktop files to fit your wishes. Note: removing a .desktop file does not uninstall an application, but instead removes its desktop integration: MIME types, shortcuts, and so forth.

The following command appends one line to a .desktop file and hides its associated icon from Applications view:

$ echo "NoDisplay=true" >> foo.desktop

Zmenšení velikosti ikon aplikací

One awkward selection of the GNOME designers is their choice of large icons for Applications view. This view is painful when working with a small screen containing many large application icons. There is a way to reduce the icon size. It is done by editing the Gnome-Shell theme.

Edit system files directly (make a backup first) or copy theme files to your local folder and edit these files. For the default theme, edit /usr/share/gnome-shell/theme/gnome-shell.css

For user themes, edit /usr/share/themes/<UserTheme>/gnome-shell/gnome-shell.css

Edit gnome-shell.css and replace the following values. Afterward, restart the GNOME shell.

gnome-shell.css
 .icon-grid {
     spacing: 18px;
     -shell-grid-item-size: 82px;
 }
 
 .icon-grid .overview-icon {
     icon-size: 48px;
 }

A cloned GNOME Shell theme with smaller icons is available on the AUR.

Záhlaví okna

Ztenčení záhlaví

# sed -i '/title_vertical_pad/s|value="[0-9]\{1,2\}"|value="0"|g' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Restartujte GNOME shell. Příkaz změní vertikální odsazení titulku ze 14 na 0 a dodá záhlaví uhlazenější vzhled.

Pro obnovení původních hodnot:

$ sudo pacman -S gnome-themes-standard

Úprava tlačítek záhlaví

At present this setting is changeable only through gconf-editor.

For example, we move the close and minimize buttons to the left side of the titlebar. Open gconf-editor and locate the desktop.gnome.shell.windows.button_layout key. Change its value to close,minimize: (Colon symbol designates the spacer between left side and right side of the titlebar.) Use whichever buttons in whatever order you prefer. You cannot use a button more than once. Also, keep in mind that certain buttons are deprecated. Restart the shell to see your new button arrangement.

Skrytí záhlaví při maximalizaci

# sed -i -r 's|(<frame_geometry name="max")|\1 has_title="false"|' /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml

Restartujte GNOME shell. Po této úpravě možná budete mít problém zrušit maximalizaci okna, když ho nebude za co chytit.

With suitable keybindings, you should be able to use Template:Keypress + Template:Keypress, Template:Keypress + Template:Keypress or Template:Keypress + Template:Keypress to remedy the situation.

To prevent metacity-theme-3.xml from being overwritten each time package "gnome-themes-standard" is upgraded, add its name to /etc/pacman.conf with NoUpgrade.

/etc/pacman.conf
... previous lines ...

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
# IgnorePkg   =
# IgnoreGroup =

NoUpgrade = usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml    # Do not add a leading slash to the path

... more lines ...

To restore original Adwaita theme values:

# pacman -S gnome-themes-standard

Přihlašovací obrazovka

To modify characteristics of the login screen (GDM, the GNOME display manager) the following lines can be executed. The first command allows all users, including "gdm", to access X settings (albeit temporarily). This command creates a temporary vulnerability, so be advised. The second command opens a bash session with the credentials of user "gdm". Note: for exposition, user gdm's terminal prompt is shown as $. In actuality, it shows something like -bash-4.2$.

# xhost +
# su - gdm -s /bin/bash
$ dbus-launch

The third command prints DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID. We must export these variables. Either manually export the below two variables shown in the output of dbus-launch like this:

$ export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Jb433gMQHS,guid=fc14d4bf3d000e38276a5a2200000d38
$ export DBUS_SESSION_BUS_PID=4283

Or use the follow command:

$ `dbus-launch | sed "s/^/export /"`

Check to see if dconf-service is running and if not, start it like this

$ /usr/lib/dconf/dconf-service &

Pozadí přihlašovací obrazovky

Once session variables have been exported as explained above, you may issue commands to retrieve or set items used by GDM.

The easiest way to changes all the settings is by launching the Configuration Editor gui with the command

$ dconf-editor

The location of each setting is the same as in the command line style of configuration shown below:

The following is the command-line approach to retrieve or set the file name used for GDM's wallpaper.

$  GSETTINGS_BACKEND=dconf gsettings get org.gnome.desktop.background picture-uri
$  GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri 'file:///usr/share/backgrounds/gnome/SundownDunes.jpg'

$  GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-options 'zoom'
## Possible values: centered, none, scaled, spanned, stretched, wallpaper, zoom

Note: You must specify a file which user "gdm" has permission to read. GDM cannot read files in your home directory.

An alternative graphical interface to changing themes (gtk3, icons and cursor), the wallpaper and minor other settings of the GDM login screen, you can install gdm3setup from AUR.

Větší písmo pro přihlášení

This tweak enlarges the login font with a scaling factor. It is the same method employed by Accessibility Manager on the desktop.

You must export the GDM session variables before performing this tweak.

$ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.interface text-scaling-factor '1.25'

Vypnutí zvuku

This tweak disables the audible feedback heard when the system volume is adjusted (via keyboard) on the login screen. You must first export the GDM session variables.

$ GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.sound event-sounds 'false'

If the above tweak does not work for you or you are unable to export the GDM session variables, there is always the easiest solution to the "ready sound" problem: mute or lower the sound while in GDM login screen using the media keys (if available) of your keyboard.

Make the power button interactive

The default installation sets the power button to suspend the system. Power off or Show dialog is a better choice. You must first export the GDM session variables as outlined previously.

 $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.settings-daemon.plugins.power button-power 'interactive'
 $ GSETTINGS_BACKEND=dconf gsettings set org.gnome.settings-daemon.plugins.power button-hibernate 'interactive'
 $ gsettings list-recursively org.gnome.settings-daemon.plugins.power

Rozložení klávesnice v GDM

GDM neví o vašem nastavení klávesnice v GNOME 3. Pro změnu nastavení klávesnice v GDM nastavte požadované rozložení v Xorg konfiguraci. Viz Beginner's Guide.

Další tipy

Viz GNOME Tips.

Miscellaneous settings

Nastavení aplikací spouštěných při přihlášení

Aplikace, které se automaticky spouští po přihlášení nastavíme pomocí gnome-session-properties. Tento nástroj je součástí balíčku gnome-session.

$ gnome-session-properties

Aktivování numlocku při spuštění

Nainstalujte numlockx z repozitáře [community]. Pak přidejte příkaz numlockx do aplikací spouštěných po přihlášení.

# pacman -S numlockx
$ gnome-session-properties

The above command opens the Startup Applications Preferences applet. Click Add and enter the following:

Name: Numlockx
Command: /usr/bin/numlockx on
Comment: Turns on numlock.

This is not a system-wide appearance tweak. Repeat these steps for each user wishing to activate numlock upon login.

Rozšíření GNOME shell

GNOME Shell can be customized with extensions written by others. These provide features such as a dock or a widget for changing the theme. Details on available extensions are found at the WEBUPD8 site. The most recent articles can be found using this WEBUPD8 search link.

Repository [extras] has a dozen extensions which can be installed individually. (The latest version of a given extension may be installed using its code snapshot, if preferred.) List here.

$ pacman -Ss gnome-shell-extension

Other useful extensions provided in the AUR:

Presentation Mode Adds option to inhibit screensaver in the power menu (battery icon).
Weather Displays weather notifications.
Alternative Status Menu Adds "Hibernate" and "Power Off" to the status menu.
Theme selector Select a theme in the activities overview. To install a custom theme with Gnome Tweak Tool you need to install the User theme extension

Restart the GNOME Shell after installing an extension. See when an extension breaks GNOME for troubleshooting information.

Výchozí terminál

gsettings, which replaces gconftool-2 in GNOME 3, is used to set e. g. the default terminal manually. The setting is relevant for nautilus-open-terminal. The commands for urxvt run as daemon:

gsettings set org.gnome.desktop.default-applications.terminal exec urxvtc
gsettings set org.gnome.desktop.default-applications.terminal exec-arg "'-e'"
Note: For nautilus-open-terminal, you may need a flag (e.g. -e) to indicate that a command will follow: nautilus-open-terminal passes a cd command in order to change directories to the appropriate location.

Prostřední tlačítko myši

By default, GNOME 3 disables middle mouse button emulation regardless of Xorg settings (Emulate3Buttons). To enable middle mouse button emulation use:

$ gsettings set org.gnome.settings-daemon.peripherals.mouse middle-button-enabled true

Xmonad

Xmonad is a tiling window manager.

Upgrading to GNOME 3 will likely break your xmonad setup. You can use xmonad again by forcing fallback mode and creating two files:

/usr/share/gnome-session/sessions/xmonad.session
[GNOME Session]
Name=Xmonad session
RequiredComponents=gnome-panel;gnome-settings-daemon;
RequiredProviders=windowmanager;notifications;
DefaultProvider-windowmanager=xmonad
DefaultProvider-notifications=notification-daemon
/usr/share/xsessions/xmonad-gnome-session.desktop
[Desktop Entry]
Name=Xmonad GNOME
Comment=Tiling window manager
TryExec=/usr/bin/gnome-session
Exec=gnome-session --session=xmonad
Type=XSession

The next time you log in, you should have the ability to choose Xmonad GNOME as your session.

wmii

wmii is a tiling window manager.

You can use wmii with gnome by forcing fallback mode and creating tree files:

/usr/share/applications/wmii.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=wmii
TryExec=wmii
Exec=wmii
/usr/share/xsessions/gnome-wmii.desktop
[Desktop Entry]
Name=Gnome-wmii
Comment=Gnome with wmii as window manager
TryExec=gnome-session
Exec=gnome-session --session=wmii
Type=Application
/usr/share/gnome-session/sessions/wmii.session
[GNOME Session]
Name=wmii
RequiredComponents=gnome-panel;gnome-settings-daemon;
RequiredProviders=windowmanager;notifications;
DefaultProvider-windowmanager=wmii
DefaultProvider-notifications=notification-daemon

The next time you log in, you should have the ability to choose Gnome-wmii as your session.

The original info was taken from running-the-awesome-window-manager-within-gnome, go there for info on awesome-gnome.

Also it has info on how to:

- create a per session (wmii, gnome, gnome-wmii, etc) dconf database (useful if you ever plan on using regular gnome)

- Remove the bottom Gnome panel (with the task list)

- Move the top panel (with the menus) to the bottom

- Untick the expand option

- Set it to autohide

Hidden features

GNOME 3 hides many useful options which you can customize with dconf-editor. GNOME 3 also supports gconf-editor for settings that have not yet migrated to dconf.

Úprava klávesových zkratek

Firstly, use dconf-editor to place a checkmark next to can-change-accels in the key named org.gnome.desktop.interface.

We will replace the hotkey — a.k.a. keyboard shortcut, keyboard accelerator — used by Nautilus to move files to the trash folder.

The default assignment is a somewhat-awkward Template:Keypress + Template:Keypress.

  • Open Nautilus, select any file, and click Edit on the menu bar.
  • Hover over the Move to Trash menu item.
  • While hovering, press Template:Keypress. The current accelerator is now unset.
  • Press the key that you wish to become the new keyboard accelerator.
  • Press Template:Keypress to make the new accelerator be the Delete key.

Unless you select a file or folder, Move to Trash will be grayed-out. Finally, disable can-change-accels to prevent accidental hotkey changes.

Shutdown via the status menu

Presently, GNOME designers have hidden the Shutdown option inside the status menu. To shut down your system with the status menu, click the menu and hold down the Alt key so that the Suspend item changes to Power Off. The subsequent dialog allows you to shut down or restart your system.

If you disable the Suspend menu item system-wide as described elsewhere in this document you do not have to go through these motions.

Another option is to install the Alternative Status Menu extension. See the section on shell extensions. The alternative menu extension installs a new status menu with a non-hidden Power Off entry.

Integrated messaging (Empathy)

Empathy, the engine behind integrated messaging, and all system settings based on messaging accounts will not show up unless the telepathy group of packages or at least one of the backends (telepathy-gabble, or telepathy-haze, for example) is installed.

These packages are not included in default Arch GNOME installs. You can install the Telepathy and optionally any backends with:

# pacman -S telepathy

Without telepathy, Empathy will not open the account management dialog and can get stuck in this state. If this happens -- even after quitting Empathy cleanly -- the /usr/bin/empathy-accounts application can remain running and will need to be killed before you can add any new accounts.

View descriptions of telepathy components on the Freedesktop.org Telepathy Wiki.

Enabling fallback mode

Your session automatically starts in fallback mode when gnome-shell is not present, or when your hardware cannot handle graphics acceleration — such as running within a virtual machine or running on old hardware.

If you wish to enable fallback mode while still having gnome-shell installed, make the following system change:

Open gnome-control-center. Click the System Info icon. Click Graphics. Change Forced Fallback Mode to ON.

You can alternatively choose the type of session from a terminal with a gsettings command:

$ gsettings set org.gnome.desktop.session session-name 'gnome-fallback'

You may want to log out after making the change. You will see the chosen type of session upon your next login.

To disable forced-fallback mode (that is, launch the normal GNOME Shell) use a value of 'gnome' instead of 'gnome-fallback'.

Troubleshooting

GNOME login takes a very long time

See if you enabled PulseAudio Network settings in paprefs. When any network audio settings are enabled, GNOME hangs about a minute after login.

One solution is to create a new user account and login to that account. Another solution is to move your ~/.gconf, ~/.gconfd and ~/.conf/dconf folders to a holding area. Login again to see if the delay is gone.

If the excessive delay is gone, determine which setting causes the delay using trial-and-error.

When an extension breaks GNOME

When enabling shell extensions causes GNOME breakage, you should first remove the user-theme and auto-move-windows extensions from their installation directory.

The installation directory could be one of ~/.local/share/gnome‑shell/extensions, /usr/share/gnome‑shell/extensions, or /usr/local/share/gnome‑shell/extensions. Removing these two extension-containing folders may fix the breakage. Otherwise, isolate the problem extension with trial‑and‑error.

Removing or adding an extension-containing folder to the aforementioned directories removes or adds the corresponding extension to your system. Details on Gnome Shell extensions are available at the GNOME web site.

Extensions do not work after GNOME 3 update

Locate the folder where your extensions are installed. It might be ~/.local/share/gnome-shell/extensions or /usr/share/gnome-shell/extensions.

Edit each occurrence of metadata.json which appears in each extension sub-folder.

Insert: "shell-version": ["3.0"]
Instead of (for example): "shell-version": ["3.0.1"]
You might instead use: "shell-version": ["3.0.0", "3.0.1", "3.0.2"]


"3.0" is the best solution. It indicates the extension works with every 3.0.x GNOME Shell version.

Screen is not locked after resume

Screen lock only works when you suspend through GNOME's status menu. If you suspend or hibernate using the power button, your screen is not locked after resume. The problem is a configuration failure in dconf.

Open dconf-editor and uncheck lock-use-screensaver in the key named org.gnome.power-manager.

# gsettings set org.gnome.power-manager lock-use-screensaver 'false'

Your screen should now be locked after resume whether you used the status menu, the power button, or a key combination. Bug report: Screen gets no more locked after suspend #Comment 8

GTK2+ apps show segfaults and fail to launch

That usually happens when oxygen-gtk is installed. This theme appears to conflict with GNOME 3 or GTK3 settings. When oxygen-gtk has been set as a GTK2 theme, GTK2 apps segfault with errors like these:

 (firefox-bin:14345): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(firefox-bin:14345): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
(firefox-bin:14345): Gdk-CRITICAL **: IA__gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
Segmentation fault

The current workaround is to remove oxygen-gtk from the system and use a different theme for applications.

ATI Catalyst driver creates glitches and artifacts

For the moment, Catalyst is not proposed to be used while running GNOME Shell. The opensource ATI driver, xf86-video-ati, however, seems to be working properly with the GNOME 3 composited desktop.

Note: Fix is promised with Catalyst 11.9. See http://ati.cchtml.com/show_bug.cgi?id=99

Multiple monitors and dock extension

If you have multiple monitors configured using Nvidia Twinview, the dock extension may get sandwiched in-between the monitors. You can edit the source of this extension to reposition the dock to a position of your choosing.

Edit /usr/share/gnome-shell/extensions/dock@gnome-shell-extensions.gnome.org/extension.js and locate this line in the source:

this.actor.set_position(primary.width-this._item_size-this._spacing-2, (primary.height-height)/2);

The first parameter is the X position of the dock display, by subtracting 15 pixels as opposed to 2 pixels from this it correctly positioned on my primary monitor, you can play around with any X,Y coordinate pair to position it correctly.

this.actor.set_position(primary.width-this._item_size-this._spacing-15, (primary.height-height)/2);

No event sounds for Empathy and other programs

If you're using OSS, you may want to install libcanberra-oss from AUR.

Editing hotkeys via can-change-accels fails

It is also possible to manually change the keys via an application's so-called accel map file. Where it is to be found is up to the application: For instance, Thunar's is at ~/.config/Thunar/accels.scm, whereas Nautilus's is located at ~/.gnome2/accels/nautilus. The file should contain a list of possible hotkeys, each unchanged line commented out with a leading ";" that has to be removed for a change to become active.

Panels do not respond to right-click in fallback mode

Check Configuration Editor: /apps/metacity/general/mouse_button_modifier. This modifier key (<Alt>, <Super>, etc) used for normal windows is also used by panels and their applets.

"Show Desktop" keyboard shortcut does not work

GNOME developers treated the corresponding binding as bug (see https://bugzilla.gnome.org/show_bug.cgi?id=643609) due to Minimization being deprecated. To show the desktop again assign ALT+STRG+D to the following setting:

System Settings --> Keyboard --> Shortcuts --> Windows --> Hide all normal windows

Nautilus does not start

  1. Press Template:Keypress+Template:Keypress
  2. Enter gnome-tweak-tool
  3. Select the File Manager tab.
  4. Locate option Have file manager handle the desktop and assure it is toggled off.

Epiphany does not play flash videos

Epiphany now uses gtk3, but Adobe's Flash Player still relies on gtk2. See Epiphany#Flash for a workaround involving nspluginwrapper.

Unable to apply stored configuration for monitors

If you encounter this message try to disable the xrandr gnome-settings-daemon plugin :

$ dconf write /org/gnome/settings-daemon/plugins/xrandr/active false

Lock button fails to re-enable touchpad

Some laptops have a touchpad lock button that disables the touchpad so that users can type without worrying about touching the touchpad. It appears currently that although GNOME can lock the touchpad by pressing this button, it can't unlock it. If the touchpad gets locked you can do the following to unlock it.

  1. Start a terminal. You can do this by pressing Template:Keypress+Template:Keypress , then typing gnome-terminal and then pressing Template:Keypress
  2. Type in the following command
$ xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 1

Ctrl+V pastes path instead of file in Nautilus

If you are affected by this issue, edit ~/.gnome2/accels/nautilus where you can find two lines for Ctrl+V :

~/.gnome2/accels/nautilus
(gtk_accel_path "<Actions>/DirViewActions/Paste" "<Control>v")
...
(gtk_accel_path "<Actions>/ClipboardActions/Paste" "<Control>v")

The issue appears to stem from the second entry. Deleting that line may fix the issue temporarily. You might have to reapply this fix after an update.

An alternative is to assign a different key combination to one of the actions.

Unable to connect to secured wi-fi network

You see the network connections listing, but choosing an encrypted network fails to show a dialog for key entry. You may need to install network-manager-applet. See GNOME NetworkManager setup.

"Any command has been defined 33"

When you press print screen key to take screenshot and you got "Any command has been defined 33", install metacity:

# pacman -S metacity

GDM and Gnome use X11 cursors

To fix this issue, you will have to copy paste these lines as root in a terminal:

$ mkdir /usr/share/icons/default
$ cd /usr/share/icons/default
$ echo "[Icon Theme]" >> index.theme
$ echo "Inherits=Adwaita" >> index.theme

Alternatively, you can install gnome-cursors-fixAUR from AUR.

External links