Skip to content

[ubuntu] ofSystemLoadDialog doesn't work #7143

@jaysonh

Description

@jaysonh

I'm using Ubuntu 22.04 with OF version: of_v0.11.2_linux64gcc6_release

When I try running the command ofSystemLoadDialog nothing happens, no error messages or any other indications of a problem.

This is a simplified version illustrating the problem:

`#include "ofApp.h"

//--------------------------------------------------------------
void ofApp::setup(){

}

//--------------------------------------------------------------
void ofApp::update(){

}

//--------------------------------------------------------------
void ofApp::draw(){

}

//--------------------------------------------------------------
void ofApp::keyPressed(int key){
if(key==' ')
{

	ofFileDialogResult result = ofSystemLoadDialog("Load file");
	if(result.bSuccess) {
	  string path = result.getPath();
	  // load your file at `path`
	}
}

}
`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions