Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
fcfd3ae5
Commit
fcfd3ae5
authored
Apr 14, 2009
by
hjk
Browse files
make the startup script work with directories containing spaces.
Thanks to "catanzag" on the labs blog.
parent
163705b8
Changes
1
Show whitespace changes
Inline
Side-by-side
bin/qtcreator
View file @
fcfd3ae5
#!/bin/sh
#!/bin/sh
bindir
=
$(
dirname
$(
readlink
-nf
$0
))
bindir
=
$(
dirname
"
$(
readlink
-nf
$0
)
"
)
if
test
"
$(
uname
-m
)
"
=
"x86_64"
;
then
if
test
"
$(
uname
-m
)
"
=
"x86_64"
;
then
libdir
=
$(
cd
${
bindir
}
/../lib64
;
pwd
)
libdir
=
$(
cd
"
${
bindir
}
/../lib64
"
;
pwd
)
else
else
libdir
=
$(
cd
${
bindir
}
/../lib
;
pwd
)
libdir
=
$(
cd
"
${
bindir
}
/../lib
"
;
pwd
)
fi
fi
LD_LIBRARY_PATH
=
"
${
libdir
}
/qtcreator:
${
LD_LIBRARY_PATH
}
"
exec
"
${
bindir
}
/qtcreator.bin"
${
1
+
"
$@
"
}
LD_LIBRARY_PATH
=
"
${
libdir
}
/qtcreator:
${
LD_LIBRARY_PATH
}
"
exec
"
${
bindir
}
/qtcreator.bin"
${
1
+
"
$@
"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment