The binary built can't be run
Bug #1381312 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gallery-app (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
The binary built contains a hardcoded path that points to the wrong place when run from the build directory.
To reproduce:
$ bzr branch lp:gallery-app trunk
$ cd trunk/
$ mkdir builddir
$ cd builddir/
$ cmake ../
$ make -j 8
$ ./src/gallery-ap
You will get an error like:
file://
And an empty window.
affects: | gallery-app → gallery-app (Ubuntu) |
Changed in gallery-app (Ubuntu): | |
importance: | Undecided → Low |
To post a comment you must log in.
The problem is in src/util/ resource. cpp
QUrl Resource: :getRcUrl( const QString& path) led()) { File(galleryDir ectory( ) + "/rc/" + path); File(galleryDir ectory( ) + "/../rc/" + path);
{
if (isClick() || isRunningInstal
return QUrl::fromLocal
} else {
return QUrl::fromLocal
}
}
I guess isRunningInstalled is returning True. In this case, it should return False, but even the else clause would be wrong, as the rc file is not there inside the build directory.