[Konsole-devel] I've googled for days... How to specify a profile (stored anywhere) to konsole (KDE3.5)?

Jekyll Wu adaptee at gmail.com
Wed Mar 21 05:50:43 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

? 2012?03?21? 08:40, Mark Li ??:
> Hello everyone,
> 
> Thank you in advance. I have googled for days. But still could not
> find a way. This is my last resort. The result of my googling and
> experiment is as following:
> 
> (1) I know in KDE4.0 I could do like: konsole --profile
> "/home/mark/konsole/old.profile"
> 
> It works.
> 
> But in KDE3.5 when I do: konsole --profile
> /afs/cad.njit.edu/u/g/l/gl52/konsole/F3.profile
> 
> It does not work. The profile could not be found. konsole just uses
> its default profile. How can make this work? Is there a way to
> specify the path?
> 
> (2) For now, I put symbolic links in the default profile directory
> as a workaround:
> 
> osl2-45 profiles>: pwd 
> /afs/cad.njit.edu/u/g/l/gl52/.kde/share/apps/konsole/profiles
> 
> osl2-44 profiles>: ll lrwxr-xr-x 1 gl52 afs   39 Mar 19 17:14 F1 ->
> /afs/ cad.njit.edu/u/g/l/gl52/konsole/F1 lrwxr-xr-x 1 gl52 afs   39
> Mar 19 17:14 F2 -> /afs/ cad.njit.edu/u/g/l/gl52/konsole/F2
> 
> And invoke konsole like: osl2-45 profiles>: konsole --profile F2
> 
> This could work.
> 
> (3) Another thought: Can I change the default profile directory of
> konsole? I did not find the default path hard coded in the konsole
> program by trying this: osl2-47 profiles>: strings /usr/bin/konsole
> | grep profiles osl2-48 profiles>:
> 
> I checked the config file: /afs/ 
> cad.njit.edu/u/g/l/gl52/.kde/share/config/konsolerc Nothing related
> found.
> 
> 
> 
> 
> 
> _______________________________________________ konsole-devel
> mailing list konsole-devel at kde.org 
> https://mail.kde.org/mailman/listinfo/konsole-devel



Hi:

the notion of "profile" is quite different between KDE3 Konsole and
KDE4 konsole.

By skimming the snippet of KDE3 konsole's code, it seems that the
'--profile' option just does not expect file path. it only accepts
names listed by the '--profiles' option, that is the files under
~/.kde/share/apps/konsle/profiles/


  if (args->isSet("profile")) {
    profile = args->getOption("profile");
    QString path = locate( "data", "konsole/profiles/" + profile );
    if ( QFile::exists( path ) )
      sessionconfig=new KConfig( path, true );
    else
      profile = "";
  }


  if (args->isSet("profiles"))
  {
     QStringList profiles = KGlobal::dirs()->findAllResources("data",
"konsole/profiles/*", false, true);
     profiles.sort();
     ...
   }

Regards
Jekyll



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPaWwzAAoJEOemZ9znWXlAUuMP/A0lbOCeTykzLDxKeDWFglxz
gsv0Y+fJodA4B6o0o13gpr7x3Xp5MQnHHG6PNW9g90/h5xLUZH4jqOkg7T2sHyY1
MfH8Ps0EM4Mx9rf/aUEaHU3BBzaceAUK4wJ66v6HcDoIvOsYCAq7+EjJ0mpbonnr
LvTNJNdTObvPrEcOwOC+Pj0dYlaUfqPN6V1rOErYAuahg4qP/K0Y7DSUgQNdlRpF
6MlvwroZCS1iEcH6X3DoA/f5+WdY0pEKd9eJWGyOIBEVsu6GM8XeYx2Gps6Sqt7Q
m85aVt4PLBapnVf3sTRZgsiAEVP+1Qfzpd0zFG3C14xzNuwQXTkLo4D9QWeO/m45
UE3s0sYhslJEK/qM4qwYgiWOGJvfcgHPyRHPKn2q5pnZvp4hBzdLs477q7XqLZir
N88Qt6MF/JGo1TpAyMGJygoiOW6N7hWfFhfN4Lvm+AAbjoLU0Bnt3VQoIodU7xw4
mCdD66rsstQt2j2Z9mm0AA4GSPMK7S7e43tPMpnnib7GSh/1NyxhaLEm8j26HxOd
Qrl6FSo9frn1JAHPf0bcaWLglS/Q4SEDgQRhwh2zy6OtiXL2fm/FlwaG3Itee1F3
QmkV+UbBlJ/twI1A5e+6VJZKhTP3REPVWTvYgTkZglCBeReF4FtZJrJc8Px/qN95
dgO1MIcnWRPJIpOrilXZ
=HlC2
-----END PGP SIGNATURE-----



More information about the konsole-devel mailing list