make install doesn't respect --prefix: Closes #6001
Also fixed was code to detect location of installed .desktop file.
This commit is contained in:
parent
0d9869f844
commit
01f8831f3b
3 changed files with 5 additions and 5 deletions
1
THANKS
1
THANKS
|
|
@ -11,6 +11,7 @@ Jon Dowland <jmtd@debian.org>
|
|||
Christian Dywan <christian@twotoasts.de>
|
||||
Victor Eduardo <victor@elementaryos.org>
|
||||
Daniel Foré <daniel@elementaryos.org>
|
||||
Jens Georg <mail@jensge.org>
|
||||
Michael George <mdgeorge@cs.cornell.edu>
|
||||
Sven Hagemann <sven@rednose.nl>
|
||||
Mathias Hasselmann <mathias@openismus.com>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ if (INTLTOOL_MERGE_FOUND)
|
|||
${INTLTOOL_MERGE_EXECUTABLE} --desktop-style ${CMAKE_SOURCE_DIR}/${po_dir}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${desktop_id}.desktop.in ${desktop_id}.desktop
|
||||
)
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/geary.desktop DESTINATION /usr/share/applications)
|
||||
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/geary.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
|
||||
endmacro (INTLTOOL_MERGE_DESKTOP desktop_id po_dir)
|
||||
endif (INTLTOOL_MERGE_FOUND)
|
||||
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ along with Geary; if not, write to the Free Software Foundation, Inc.,
|
|||
}
|
||||
|
||||
public Configuration config { get; private set; }
|
||||
public File system_desktop_file_directory { get; private set;
|
||||
default = File.new_for_path("/usr/share/applications/"); }
|
||||
|
||||
private static GearyApplication _instance = null;
|
||||
|
||||
|
|
@ -383,8 +381,9 @@ along with Geary; if not, write to the Free Software Foundation, Inc.,
|
|||
}
|
||||
|
||||
public File? get_desktop_file() {
|
||||
File desktop_file = is_installed()
|
||||
? system_desktop_file_directory.get_child("geary.desktop")
|
||||
File? install_dir = get_install_dir();
|
||||
File desktop_file = (install_dir != null)
|
||||
? install_dir.get_child("geary.desktop")
|
||||
: File.new_for_path(SOURCE_ROOT_DIR).get_child("build").get_child("desktop").get_child("geary.desktop");
|
||||
|
||||
return desktop_file.query_exists() ? desktop_file : null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue