wxpython - Running a packaged Python program in Ubuntu -


i have written python program , cx_freeze can moved other linux machine execute, went fine, except following

after freezing python code, dpkg build , marked /usr/bin/myprogram installation directory, went fine, can build , install program designated directory can change directory , ./myprogram start program, if not so, told error of missing settings.xml external file sitting beside main program resides in /usr/bin/myprogram.

i want make desktop shortcut, , assume full path needed execute program without changing directory program's directory first, there can make happen?

message shows missing setting.xml file when use full path run program, when first change directory , ./myprogram, works fine

enter image description here

thanks help.

a workaround create simple script cd directory , run executable ./myprogram, , call script full path desktop launcher.

another way: there's path key available in desktop launcher. can set like:

path=working_directory_path 

in .desktop file


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -