Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Maybe this software store files in current directory or application directory. Can you for testing give permissions 0777 to this directory and try to launch as normal user? If this will be succesful, then its bad, because you can't change program behavior, eventually change working directory before launching to user HOME or /tmp.
I've change the ownership of the directory in /opt to dave:dave, but it still fails if I invoke the app under the dave user.
Code:
chown dave:dave -R dassault-systemes
root@SNECCI:/opt# ls -l dassault-systemes/
total 4
drwxr-xr-x 10 dave dave 4096 2012-01-18 18:22 draftsight
root@SNECCI:/opt# ls -l dassault-systemes/draftsight/bin/
total 38384
drwxr-xr-x 2 dave dave 4096 2012-01-18 18:22 codecs
-rwxr-xr-x 1 dave dave 815 2011-10-01 08:48 DraftSight
-rwxr-xr-x 1 dave dave 10312740 2011-10-01 08:48 DraftSight.bin
-rw-r--r-- 1 dave dave 25868 2011-10-01 08:48 DsCommandVarsDict.xml
-rw-r--r-- 1 dave dave 12712 2011-10-01 08:48 DsLispDict.xml
-rwxr-xr-x 1 dave dave 1062220 2011-10-01 22:18 ExtCommands.tx
-rwxr-xr-x 1 dave dave 360267 2011-10-01 08:48 FxCharMap.tx
-rwxr-xr-x 1 dave dave 18956455 2011-10-01 08:48 FXCommands.tx
-rwxr-xr-x 1 dave dave 413681 2011-10-01 08:48 FXCurves.tx
-rwxr-xr-x 1 dave dave 2307705 2011-10-01 08:48 FXDimCommands.tx
-rwxr-xr-x 1 dave dave 293287 2011-10-01 08:48 FXEvalWatcher.tx
-rwxr-xr-x 1 dave dave 1062863 2011-10-01 08:48 FXGripPoints.tx
-rwxr-xr-x 1 dave dave 2830314 2011-10-01 08:48 FXProperties.tx
-rwxr-xr-x 1 dave dave 336600 2011-10-01 08:48 HelpGuide
drwxr-xr-x 2 dave dave 4096 2012-01-18 18:22 imageformats
-rwxr-xr-x 1 dave dave 23109 2011-10-01 08:48 K2GestureWidget.tx
drwxr-xr-x 15 dave dave 4096 2012-01-18 18:22 messages
-rwxr-xr-x 1 dave dave 225657 2011-10-01 08:48 ModelerGeometry.tx
-rwxr-xr-x 1 dave dave 93745 2011-10-01 08:48 PlotStyleServices.tx
-rwxr-xr-x 1 dave dave 73506 2011-10-01 08:48 RasterProcessor.tx
-rwxr-xr-x 1 dave dave 769365 2011-10-01 08:48 RecomputeDimBlock.tx
-rwxr-xr-x 1 dave dave 90636 2011-10-01 08:48 RxRasterServices.tx
drwxr-xr-x 2 dave dave 4096 2012-01-18 18:22 sqldrivers
Subsequently running strace as you suggest gives this:
Code:
dave@SNECCI:~/Documents/ACAD/Blocks/Models$ strace -e trace=file /opt/dassault-systemes/draftsight/bin/DraftSight
execve("/opt/dassault-systemes/draftsight/bin/DraftSight", ["/opt/dassault-systemes/draftsigh"...], [/* 44 vars */]) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY) = 3
stat64("/home/dave/Documents/ACAD/Blocks/Models", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/opt/dassault-systemes/draftsight/bin/DraftSight", O_RDONLY) = 3
--- SIGCHLD (Child exited) @ 0 (0) ---
--- SIGCHLD (Child exited) @ 0 (0) ---
stat64("/usr/lib32/gconv", 0xbfe0b680) = -1 ENOENT (No such file or directory)
chdir("/opt/dassault-systemes/draftsight/bin") = 0
stat64("/etc/fedora-release", 0xbfe0b660) = -1 ENOENT (No such file or directory)
DraftSight.bin: main.cpp:162: QString WriteProtected(QDir, int): Assertion `0' failed.
--- SIGCHLD (Child exited) @ 0 (0) ---
Aborted
Lots of "no such file or directory", particularly where it seems to be looking in the /etc directory; not an entirely appropriate location for some of them...
I see that the Linux version is described as a beta, so it's more likely that the problem is with the program than anything you did in installing. Tell them about it.
Yes, I must admit that I am rapidly coming to this conclusion too.
However, it's been a month since this problem surfaced, I would have expected it to be fixed by now if it were a general bug.
The company is probably also hoping to make money by providing support (as they are entitled to do IMO), so there is no forum or free knowledgebase through which to provide them with the information which may help them solve this...
The difference between "sudo some_app" and "sudo su" is that former does not change the HOME variable. I did some testing and discover that this application does not work (I get segfault) when user has no write permission to file ~/.config/DraftSight/1.2.188/Workspace/Classic Default.xml So, check this. I sugest you to take ownership of all files in your home directory, because if you often using sudo you may also get other applications working improperly:
Permissions in my home directory are fine, though:
Code:
dave@SNECCI:~$ ls -l .config/DraftSight/
total 4
drwxrwxr-x 13 dave dave 4096 2011-10-25 09:15 1.2.188
lrwxrwxrwx 1 dave dave 20 2011-11-14 09:20 Documents -> /home/dave/Documents
dave@SNECCI:~$ ls -l .config/DraftSight/1.2.188/
total 48
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 Alias
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 Fonts
-rw-rw-r-- 1 dave dave 360 2011-11-14 09:36 history.txt
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 Linestyles
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:21 Print Settings
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 Print Styles
drwxrwxr-x 3 dave dave 4096 2011-10-25 09:14 Profiles
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 RichLine Styles
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 Support
drwxrwxr-x 2 dave dave 4096 2011-10-25 09:14 Template
drwxrwxr-x 15 dave dave 4096 2011-10-25 09:14 UI
drwxrwxr-x 2 dave dave 4096 2011-11-14 09:36 Workspace
dave@SNECCI:~$ ls -l .config/DraftSight/1.2.188/Workspace/
total 4
-rw-rw-r-- 1 dave dave 2213 2011-11-14 09:36 Classic Default.xml
Under Fedora 27 I can't get this to run without root privileges, under Unbuntu 17.10 it seems to run fine as a normal user. There aren't many current threads on this topic.
Under Fedora 27 I can't get this to run without root privileges, under Unbuntu 17.10 it seems to run fine as a normal user. There aren't many current threads on this topic.
Including this one...this is not a "current thread"...it's 6 years old!
Suggest you start a new thread with a detailed description of the problem you're having.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.