Skip to content

Commit

Permalink
Fixing the environment for the appid test
Browse files Browse the repository at this point in the history
  • Loading branch information
ted-gould committed Sep 20, 2016
1 parent 8357838 commit 706d753
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/app-id-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class AppIdTest : public ::testing::Test
/* UAL Desktop Hook check */
g_setenv("UBUNTU_APP_LAUNCH_LINK_FARM", CMAKE_SOURCE_DIR "/tests/ual-link-farm", TRUE);

/* XDG Data home for libertine */
g_setenv("XDG_DATA_HOME", CMAKE_SOURCE_DIR "/tests/xdg-data", TRUE);
g_setenv("XDG_CACHE_HOME", CMAKE_SOURCE_DIR "/tests/xdg-cache", TRUE);

cachedir = g_build_filename(CMAKE_BINARY_DIR, "app-id-test-cache", nullptr);
g_setenv("URL_DISPATCHER_CACHE_DIR", cachedir, TRUE);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Desktop File]
Name=App1
Exec=app1
Icon=app1.png

0 comments on commit 706d753

Please sign in to comment.