forked from soutade/libgourou
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
469d378f9a | |||
|
98b531a232 | ||
956bad3068 | |||
d9a920b062 |
|
@ -37,7 +37,7 @@
|
|||
#define ACS_SERVER "http://adeactivate.adobe.com/adept"
|
||||
#endif
|
||||
|
||||
#define LIBGOUROU_VERSION "0.8.6"
|
||||
#define LIBGOUROU_VERSION "0.8.7"
|
||||
|
||||
namespace gourou
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# uPDFParser
|
||||
if [ ! -d lib/updfparser ] ; then
|
||||
git clone git://soutade.fr/updfparser.git lib/updfparser
|
||||
git clone git://soutade.fr/soutade/updfparser.git lib/updfparser
|
||||
pushd lib/updfparser
|
||||
make BUILD_STATIC=1 BUILD_SHARED=0
|
||||
popd
|
||||
|
|
|
@ -859,14 +859,21 @@ namespace gourou
|
|||
std::string DRMProcessor::getDefaultAdeptDir(void)
|
||||
{
|
||||
#ifndef DEFAULT_ADEPT_DIR
|
||||
const char* user = getenv("USER");
|
||||
const char* home = getenv("HOME");
|
||||
|
||||
if (home)
|
||||
return home + std::string("/.config/adept/");
|
||||
else
|
||||
{
|
||||
const char* user = getenv("USER");
|
||||
|
||||
if (user && user[0])
|
||||
{
|
||||
return std::string("/home/") + user + std::string("/.config/adept/");
|
||||
}
|
||||
else
|
||||
return LOCAL_ADEPT_DIR;
|
||||
if (user && user[0])
|
||||
{
|
||||
return std::string("/home/") + user + std::string("/.config/adept/");
|
||||
}
|
||||
else
|
||||
return LOCAL_ADEPT_DIR;
|
||||
}
|
||||
#else
|
||||
return DEFAULT_ADEPT_DIR "/";
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user