Thank you very much. <div><br></div><div>I read the code. It is very helpful.<br><br><div class="gmail_quote">On Wed, Mar 21, 2012 at 1:50 AM, Jekyll Wu <span dir="ltr"><<a href="mailto:adaptee@gmail.com">adaptee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
? 2012?03?21? 08:40, Mark Li ??:<br>
<div class="im">> Hello everyone,<br>
><br>
> Thank you in advance. I have googled for days. But still could not<br>
> find a way. This is my last resort. The result of my googling and<br>
> experiment is as following:<br>
><br>
> (1) I know in KDE4.0 I could do like: konsole --profile<br>
> "/home/mark/konsole/old.profile"<br>
><br>
> It works.<br>
><br>
> But in KDE3.5 when I do: konsole --profile<br>
> /afs/<a href="http://cad.njit.edu/u/g/l/gl52/konsole/F3.profile" target="_blank">cad.njit.edu/u/g/l/gl52/konsole/F3.profile</a><br>
><br>
> It does not work. The profile could not be found. konsole just uses<br>
> its default profile. How can make this work? Is there a way to<br>
> specify the path?<br>
><br>
> (2) For now, I put symbolic links in the default profile directory<br>
> as a workaround:<br>
><br>
> osl2-45 profiles>: pwd<br>
> /afs/<a href="http://cad.njit.edu/u/g/l/gl52/.kde/share/apps/konsole/profiles" target="_blank">cad.njit.edu/u/g/l/gl52/.kde/share/apps/konsole/profiles</a><br>
><br>
> osl2-44 profiles>: ll lrwxr-xr-x 1 gl52 afs   39 Mar 19 17:14 F1 -><br>
</div>> /afs/ <a href="http://cad.njit.edu/u/g/l/gl52/konsole/F1" target="_blank">cad.njit.edu/u/g/l/gl52/konsole/F1</a> lrwxr-xr-x 1 gl52 afs   39<br>
<div class="im">> Mar 19 17:14 F2 -> /afs/ <a href="http://cad.njit.edu/u/g/l/gl52/konsole/F2" target="_blank">cad.njit.edu/u/g/l/gl52/konsole/F2</a><br>
><br>
> And invoke konsole like: osl2-45 profiles>: konsole --profile F2<br>
><br>
> This could work.<br>
><br>
> (3) Another thought: Can I change the default profile directory of<br>
> konsole? I did not find the default path hard coded in the konsole<br>
> program by trying this: osl2-47 profiles>: strings /usr/bin/konsole<br>
> | grep profiles osl2-48 profiles>:<br>
><br>
> I checked the config file: /afs/<br>
> <a href="http://cad.njit.edu/u/g/l/gl52/.kde/share/config/konsolerc" target="_blank">cad.njit.edu/u/g/l/gl52/.kde/share/config/konsolerc</a> Nothing related<br>
> found.<br>
><br>
><br>
><br>
><br>
><br>
</div>> _______________________________________________ konsole-devel<br>
> mailing list <a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/konsole-devel" target="_blank">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>
<br>
<br>
<br>
Hi:<br>
<br>
the notion of "profile" is quite different between KDE3 Konsole and<br>
KDE4 konsole.<br>
<br>
By skimming the snippet of KDE3 konsole's code, it seems that the<br>
'--profile' option just does not expect file path. it only accepts<br>
names listed by the '--profiles' option, that is the files under<br>
~/.kde/share/apps/konsle/profiles/<br>
<br>
<br>
  if (args->isSet("profile")) {<br>
    profile = args->getOption("profile");<br>
    QString path = locate( "data", "konsole/profiles/" + profile );<br>
    if ( QFile::exists( path ) )<br>
      sessionconfig=new KConfig( path, true );<br>
    else<br>
      profile = "";<br>
  }<br>
<br>
<br>
  if (args->isSet("profiles"))<br>
  {<br>
     QStringList profiles = KGlobal::dirs()->findAllResources("data",<br>
"konsole/profiles/*", false, true);<br>
     profiles.sort();<br>
     ...<br>
   }<br>
<br>
Regards<br>
Jekyll<br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.18 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQIcBAEBAgAGBQJPaWwzAAoJEOemZ9znWXlAUuMP/A0lbOCeTykzLDxKeDWFglxz<br>
gsv0Y+fJodA4B6o0o13gpr7x3Xp5MQnHHG6PNW9g90/h5xLUZH4jqOkg7T2sHyY1<br>
MfH8Ps0EM4Mx9rf/aUEaHU3BBzaceAUK4wJ66v6HcDoIvOsYCAq7+EjJ0mpbonnr<br>
LvTNJNdTObvPrEcOwOC+Pj0dYlaUfqPN6V1rOErYAuahg4qP/K0Y7DSUgQNdlRpF<br>
6MlvwroZCS1iEcH6X3DoA/f5+WdY0pEKd9eJWGyOIBEVsu6GM8XeYx2Gps6Sqt7Q<br>
m85aVt4PLBapnVf3sTRZgsiAEVP+1Qfzpd0zFG3C14xzNuwQXTkLo4D9QWeO/m45<br>
UE3s0sYhslJEK/qM4qwYgiWOGJvfcgHPyRHPKn2q5pnZvp4hBzdLs477q7XqLZir<br>
N88Qt6MF/JGo1TpAyMGJygoiOW6N7hWfFhfN4Lvm+AAbjoLU0Bnt3VQoIodU7xw4<br>
mCdD66rsstQt2j2Z9mm0AA4GSPMK7S7e43tPMpnnib7GSh/1NyxhaLEm8j26HxOd<br>
Qrl6FSo9frn1JAHPf0bcaWLglS/Q4SEDgQRhwh2zy6OtiXL2fm/FlwaG3Itee1F3<br>
QmkV+UbBlJ/twI1A5e+6VJZKhTP3REPVWTvYgTkZglCBeReF4FtZJrJc8Px/qN95<br>
dgO1MIcnWRPJIpOrilXZ<br>
=HlC2<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
konsole-devel mailing list<br>
<a href="mailto:konsole-devel@kde.org">konsole-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/konsole-devel" target="_blank">https://mail.kde.org/mailman/listinfo/konsole-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Best Regards,</div>
<div>Gang Li</div><br>
</div>