diff --git a/CMakeLists.txt b/CMakeLists.txt index 7455b15..8c9bd1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,3 +93,7 @@ INSTALL (DIRECTORY ${DATA_DIR} INSTALL (FILES ${DATA_FILES} DESTINATION share/fysxasteroids ) + +INSTALL (FILES fysxasteroids.desktop fysxasteroidseditor.desktop + DESTINATION /usr/share/applications + ) diff --git a/asteroids/main.cc b/asteroids/main.cc index 15750bf..2822351 100644 --- a/asteroids/main.cc +++ b/asteroids/main.cc @@ -144,9 +144,9 @@ int main (int argc, char* argv[]) { // Load the icon Uint32 colorkey; SDL_Surface *image = NULL; - image = SDL_LoadBMP("./data/textures/icon.bmp"); + image = SDL_LoadBMP(Engine::GetResourceFullPath("/data/textures/icon.bmp").c_str()); if (!image) - Engine::LogWarning("Could not load icon: ./data/textures/icon.bmp"); + Engine::LogWarning("Could not load icon: data/textures/icon.bmp"); else SDL_WM_SetIcon(image,NULL); diff --git a/engine/Commands.cc b/engine/Commands.cc index ed4b720..80cc16f 100644 --- a/engine/Commands.cc +++ b/engine/Commands.cc @@ -272,6 +272,7 @@ bool Cmd_Exec (const std::vector args) { } exec_file.close(); + LogDebug ("exec success for file %s", full_path.c_str()); return true; }