Move .desktop and GSettings schema file

Previous commit exposed a bug caused by moving some of the client's
resources in the source tree.  Since much of the client's resources
are stored off the source root directory, it doesn't make sense to
special case the .desktop file and the GSettings file and place them
in the client source itself.  This moves them out and makes the
appropriate changes in the CMake files and source code.
This commit is contained in:
Jim Nelson 2012-08-27 18:08:38 -07:00
parent fa0abeb31c
commit 01efb7c0fe
6 changed files with 5 additions and 6 deletions

33
desktop/CMakeLists.txt Normal file
View file

@ -0,0 +1,33 @@
#
# Install geary.desktop
#
install(
FILES
geary.desktop
DESTINATION
share/applications
)
# Optional: run update-desktop-database at install time.
# (This has to happen after the geary.desktop file is installed.)
if (DESKTOP_UPDATE)
install(
CODE
"execute_process (COMMAND update-desktop-database)"
CODE
"message (STATUS \"Updating desktop database\")"
)
add_custom_target(
uninstall-desktop-update
DEPENDS
uninstall
COMMAND
update-desktop-database
)
else ()
install(
CODE "message (STATUS \"Not updating desktop database\")"
)
endif ()

12
desktop/geary.desktop Normal file
View file

@ -0,0 +1,12 @@
[Desktop Entry]
Icon=geary
Name=Geary
GenericName=Email Client
Comment=Send and receive email
TryExec=geary
Exec=geary %U
Type=Application
Terminal=false
Categories=GNOME;GTK;Network;Office;Email;
MimeType=x-scheme-handler/mailto;

View file

@ -0,0 +1,66 @@
<schemalist>
<schema id="org.yorba.geary" path="/org/yorba/geary/">
<key name="window-maximize" type="b">
<default>false</default>
<summary>maximize window</summary>
<description>True if library application is maximized, false otherwise.</description>
</key>
<key name="window-width" type="i">
<default>1024</default>
<summary>width of window</summary>
<description>The last recorded width of the application window.</description>
</key>
<key name="window-height" type="i">
<default>768</default>
<summary>height of window</summary>
<description>The last recorded height of the application window.</description>
</key>
<key name="folder-list-pane-position" type="i">
<default>-1</default>
<summary>position of folder list pane</summary>
<description>Position of the folder list Paned grabber. -1 means unset.</description>
</key>
<key name="messages-pane-position" type="i">
<default>-1</default>
<summary>position of message list pane</summary>
<description>Position of the message list Paned grabber. -1 means unset.</description>
</key>
<key name="autoselect" type="b">
<default>true</default>
<summary>autoselect next message</summary>
<description>True if we should autoselect the next available conversation.</description>
</key>
<key name="display-preview" type="b">
<default>true</default>
<summary>display message previews</summary>
<description>True if we should display a short preview of each message.</description>
</key>
<key name="spell-check" type="b">
<default>true</default>
<summary>enable inline spell checking</summary>
<description>True to spell check while typing.</description>
</key>
<key name="play-sounds" type="b">
<default>true</default>
<summary>enable notification sounds</summary>
<description>True to play sounds for notifications and sending.</description>
</key>
<key name="show-notifications" type="b">
<default>true</default>
<summary>show notifications for new mail</summary>
<description>True to show notification bubbles.</description>
</key>
</schema>
</schemalist>