"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.cpp" between
xfe-1.42.tar.gz and xfe-1.43.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

main.cpp  (xfe-1.42):main.cpp  (xfe-1.43)
skipping to change at line 277 skipping to change at line 277
const char* title = "Xfe"; const char* title = "Xfe";
const char* appname = "xfe"; const char* appname = "xfe";
const char* vdrname = "Xfe"; const char* vdrname = "Xfe";
int i; int i;
FXbool loadicons; FXbool loadicons;
FXString startfiledir1 = ""; FXString startfiledir1 = "";
FXString startdir2 = ""; FXString startdir2 = "";
FXbool iconic = false; FXbool iconic = false;
FXbool maximized = false; FXbool maximized = false;
FXString xmodifiers; FXString xmodifiers;
FXString cmd;
// Vector of URIs to open on startup // Vector of URIs to open on startup
vector_FXString startURIs; vector_FXString startURIs;
// Get environment variables $HOME, $XDG_DATA_HOME and $XDG_CONFIG_HOME // Get environment variables $HOME, $XDG_DATA_HOME and $XDG_CONFIG_HOME
homedir = FXSystem::getHomeDirectory(); homedir = FXSystem::getHomeDirectory();
if (homedir == "") if (homedir == "")
{ {
homedir = ROOTDIR; homedir = ROOTDIR;
} }
skipping to change at line 327 skipping to change at line 328
bind_textdomain_codeset(PACKAGE, "utf-8"); bind_textdomain_codeset(PACKAGE, "utf-8");
textdomain(PACKAGE); textdomain(PACKAGE);
#endif #endif
#if defined(linux) #if defined(linux)
// For package query on Linux systems, try to guess if the default package f ormat is deb or rpm: // For package query on Linux systems, try to guess if the default package f ormat is deb or rpm:
// - if dpkg exists then the system uses deb packages // - if dpkg exists then the system uses deb packages
// - else if rpm exists, then the system uses rpm packages // - else if rpm exists, then the system uses rpm packages
// - else another (unsupported) package manager is used // - else another (unsupported) package manager is used
FXString cmd = "dpkg --version"; cmd = "dpkg --version";
FXString str = getCommandOutput(cmd); FXString str = getCommandOutput(cmd);
if (str.find("Debian") != -1) if (str.find("Debian") != -1)
{ {
pkg_format = DEB_PKG; // deb based system pkg_format = DEB_PKG; // deb based system
} }
else else
{ {
cmd = "rpm --version"; cmd = "rpm --version";
str = getCommandOutput(cmd); str = getCommandOutput(cmd);
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)