<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>283102</bug_id>
          
          <creation_ts>2011-09-30 15:27:49 +0000</creation_ts>
          <short_desc>konsolerc: usage of full path for some config values is not portable between accounts</short_desc>
          <delta_ts>2012-04-20 05:43:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>2.7.999</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Achim Bohnet">ach</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          <cc>adaptee</cc>
    
    <cc>francesco.cecconi</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>4.9.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1168692</commentid>
    <comment_count>0</comment_count>
    <who name="Achim Bohnet">ach</who>
    <bug_when>2011-09-30 15:27:49 +0000</bug_when>
    <thetext>Version:           2.7.999 (using Devel) 
OS:                Linux

konsolerc uses in &apos;Favorites Profiles&apos; and &apos;Profile Shortcuts&apos; the full path.  So one can&apos;t copy then from one user to another.   AFAIR there a special config method that that strips at least $HOME from path.  Best IMHO would be to just use the Filename itself without path part (like &apos;Default Profile&apos; does).

E.g. part of my konsolerc:
[Desktop Entry]
DefaultProfile=Shell.profile

[Favorite Profiles]
Favorites=/home/allee-o/.project-neon-kde/share/apps/konsole/Shell.profile,/home/allee-o/.project-neon-kde/share/apps/konsole/root shell.profile,/opt/project-neon/share/apps/konsole/Shell.profile,/home/allee-o/.project-neon-kde/share/apps/konsole/root @ where-ever.profile

[Profile Shortcuts]
Ctrl+Shift+F10=/home/allee-o/.project-neon-kde/share/apps/konsole/root shell.profile


Reproducible: Always

Steps to Reproduce:
rsync your account to your other user account (local or remote) with a different username.  Start konsole.


Actual Results:  
Profiles are no longer found

Expected Results:  
Favorite Profiles and Short cuts should be available as on the original account

OS: Linux (x86_64) release 3.0.0-12-generic
Compiler: gcc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1168718</commentid>
    <comment_count>1</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-09-30 16:40:51 +0000</bug_when>
    <thetext>It seems the same issue has been report in bug #209974 by the reporter. It is a bit sad that issue still remains 2 year later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1169445</commentid>
    <comment_count>2</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-10-03 06:53:30 +0000</bug_when>
    <thetext>*** Bug 209974 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217340</commentid>
    <comment_count>3</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2012-01-21 21:33:47 +0000</bug_when>
    <thetext>Git commit 8240973baf59036030dc60aa93bad9489f05bccb by Kurt Hindenburg.
Committed on 21/01/2012 at 22:28.
Pushed by hindenburg into branch &apos;master&apos;.

Use relative paths in config file

konsolerc uses in &apos;Favorites Profiles&apos; and &apos;Profile Shortcuts&apos; the full
path.  Changing this to relative path (if in a KDE location) allows
one user can copy then to another.

FIXED-IN: 4.9
REVIEW: 102749

M  +23   -4    src/SessionManager.cpp

http://commits.kde.org/konsole/8240973baf59036030dc60aa93bad9489f05bccb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217341</commentid>
    <comment_count>4</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2012-01-21 21:38:12 +0000</bug_when>
    <thetext>Forgot to put thanks to Francesco Cecconi for patch in the commit... Any reason not to put this in 4.8.1?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217478</commentid>
    <comment_count>5</comment_count>
    <who name="Francesco Cecconi">francesco.cecconi</who>
    <bug_when>2012-01-22 11:04:08 +0000</bug_when>
    <thetext>The backport is welcome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1222168</commentid>
    <comment_count>6</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2012-02-02 15:51:11 +0000</bug_when>
    <thetext>Git commit 053d1f27cda75cd0338d4768d509bff4766366a3 by Kurt Hindenburg.
Committed on 02/02/2012 at 16:50.
Pushed by hindenburg into branch &apos;KDE/4.8&apos;.

Use relative paths in config file

    konsolerc uses in &apos;Favorites Profiles&apos; and &apos;Profile Shortcuts&apos; the full
    path.  Changing this to relative path (if in a KDE location) allows
    one user can copy then to another.

M  +23   -3    src/SessionManager.cpp

http://commits.kde.org/konsole/053d1f27cda75cd0338d4768d509bff4766366a3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225772</commentid>
    <comment_count>7</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2012-02-11 21:58:49 +0000</bug_when>
    <thetext>I revert this in KDE/4.8 as well as the patch for https://bugs.kde.org/show_bug.cgi?id=292637

There are a few things I found I don&apos;t like.
1. using --profile=/an/absolute/path won&apos;t work with the patch
  I do have a working patch for this
2. when using --profile= and then editing the profile, it will be saved under the $KDEHOME. using the profile name.

Since this breaks anyone using #1 I don&apos;t care for it in 4.8.x just yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1241630</commentid>
    <comment_count>8</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2012-03-31 13:28:08 +0000</bug_when>
    <thetext>Git commit 2663d9c712f5fa9e707b98e4ea41fe50c99585e8 by Kurt Hindenburg.
Committed on 31/03/2012 at 15:25.
Pushed by hindenburg into branch &apos;master&apos;.

Allow --profile=full path to work again.

After 8240973baf59036030dc60aa93bad9489f05bccb, using full paths in
--profile didn&apos;t work.  This fixes that issue.

It will save the full profile path for favorites and shortcuts if the
profile is not under the normal KDE konsole area.

M  +20   -2    src/ProfileManager.cpp

http://commits.kde.org/konsole/2663d9c712f5fa9e707b98e4ea41fe50c99585e8</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>