mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Fixed build of release versions
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
b69ce8ba57
commit
a0d1a7202f
@ -15,7 +15,7 @@ using namespace WallpaperEngine::Application;
|
|||||||
struct option long_options [] = {
|
struct option long_options [] = {
|
||||||
{"screen-root", required_argument, nullptr, 'r'},
|
{"screen-root", required_argument, nullptr, 'r'},
|
||||||
{"bg", required_argument, nullptr, 'b'},
|
{"bg", required_argument, nullptr, 'b'},
|
||||||
{"window", optional_argument, nullptr, 'w'},
|
{"window", required_argument, nullptr, 'w'},
|
||||||
{"pkg", required_argument, nullptr, 'p'},
|
{"pkg", required_argument, nullptr, 'p'},
|
||||||
{"dir", required_argument, nullptr, 'd'},
|
{"dir", required_argument, nullptr, 'd'},
|
||||||
{"silent", no_argument, nullptr, 's'},
|
{"silent", no_argument, nullptr, 's'},
|
||||||
@ -56,7 +56,7 @@ CApplicationContext::CApplicationContext (int argc, char* argv[]) :
|
|||||||
|
|
||||||
std::string lastScreen;
|
std::string lastScreen;
|
||||||
|
|
||||||
while ((c = getopt_long (argc, argv, "b:r:p:d:shf:a:w::", long_options, nullptr)) != -1)
|
while ((c = getopt_long (argc, argv, "b:r:p:d:shf:a:w:", long_options, nullptr)) != -1)
|
||||||
{
|
{
|
||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
@ -235,7 +235,7 @@ void CApplicationContext::printHelp (const char* route)
|
|||||||
sLog.out ("\t--silent\t\t\t\t\tMutes all the sound the wallpaper might produce");
|
sLog.out ("\t--silent\t\t\t\t\tMutes all the sound the wallpaper might produce");
|
||||||
sLog.out ("\t--volume <amount>\t\t\tSets the volume for all the sounds in the background");
|
sLog.out ("\t--volume <amount>\t\t\tSets the volume for all the sounds in the background");
|
||||||
sLog.out ("\t--screen-root <screen name>\tDisplay as screen's background");
|
sLog.out ("\t--screen-root <screen name>\tDisplay as screen's background");
|
||||||
sLog.out ("\t--window <geometry>\tRuns in window mode, geometry has to be XxYxWxH");
|
sLog.out ("\t--window <geometry>\tRuns in window mode, geometry has to be XxYxWxH and sets the position and size of the window");
|
||||||
sLog.out ("\t--fps <maximum-fps>\t\t\tLimits the FPS to the given number, useful to keep battery consumption low");
|
sLog.out ("\t--fps <maximum-fps>\t\t\tLimits the FPS to the given number, useful to keep battery consumption low");
|
||||||
sLog.out ("\t--assets-dir <path>\t\t\tFolder where the assets are stored");
|
sLog.out ("\t--assets-dir <path>\t\t\tFolder where the assets are stored");
|
||||||
sLog.out ("\t--screenshot\t\t\t\tTakes a screenshot of the background");
|
sLog.out ("\t--screenshot\t\t\t\tTakes a screenshot of the background");
|
||||||
|
@ -43,7 +43,7 @@ void CWallpaperApplication::setupContainer (CCombinedContainer& container, const
|
|||||||
#if !NDEBUG
|
#if !NDEBUG
|
||||||
container.add (new CDirectory ("../share/"));
|
container.add (new CDirectory ("../share/"));
|
||||||
#else
|
#else
|
||||||
this->m_vfs.add (new CDirectory (DATADIR));
|
container.add (new CDirectory (DATADIR));
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
// TODO: move this somewhere else?
|
// TODO: move this somewhere else?
|
||||||
|
Loading…
Reference in New Issue
Block a user