<?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>409273</bug_id>
          
          <creation_ts>2019-06-28 09:40:07 +0000</creation_ts>
          <short_desc>Cache folder with account name ends up in home</short_desc>
          <delta_ts>2019-06-28 12:00:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>Ruqola</product>
          <component>backend</component>
          <version>unspecified</version>
          <rep_platform>Other</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>0</everconfirmed>
          <reporter name="Christian Dywan">cdywan</reporter>
          <assigned_to name="Laurent Montel">montel</assigned_to>
          <cc>timo.jyrinki</cc>
          
          <cf_commitlink>https://commits.kde.org/ruqola/672de1657ee0b4f7b1e3caf9b688244b4ca14c41</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1866024</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Dywan">cdywan</who>
    <bug_when>2019-06-28 09:40:07 +0000</bug_when>
    <thetext>A folder called ~/$ACCOUNTNAME/recordings is created after logging in. I wouldn&apos;t mind the empty folder so much, but this should probably go to $XDG_CACHE_HOME/Ruqola/$ACCOUNTNAME (~/.cache/Ruqola/$ACCOUNTNAME).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866030</commentid>
    <comment_count>1</comment_count>
    <who name="Christian Dywan">cdywan</who>
    <bug_when>2019-06-28 10:12:00 +0000</bug_when>
    <thetext>Investigation revealed that $XDG_PICTURES_DIR and $XDG_VIDEOS_DIR are set to $HOME and this is where Ruqola wants to store files. And `Video` and `Picture` paths seem to be distinguished from cached files, so perhaps I need to reconsider my expectations here.

I would still expect Ruqola to use a parent folder called Ruqola, though. Otherwise a normal user has no way of associating this unexpected folder with the use of the client.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866031</commentid>
    <comment_count>2</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2019-06-28 10:17:02 +0000</bug_when>
    <thetext>it&apos;s a problem from $XDG_PICTURES_DIR and $XDG_VIDEOS_DIR for your distro as usual we use Picture and Video as folders.
You will have the same problem for each apps which use this two environments variable.

I think it&apos;s a problem as your distro doesn&apos;t define this variable.

After adding ruqola as toplevel why not but too bad that these variables are not defined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866033</commentid>
    <comment_count>3</comment_count>
    <who name="Christian Dywan">cdywan</who>
    <bug_when>2019-06-28 10:22:09 +0000</bug_when>
    <thetext>(In reply to Laurent Montel from comment #2)
&gt; it&apos;s a problem from $XDG_PICTURES_DIR and $XDG_VIDEOS_DIR for your distro as
&gt; usual we use Picture and Video as folders.
&gt; You will have the same problem for each apps which use this two environments
&gt; variable.
&gt; 
&gt; I think it&apos;s a problem as your distro doesn&apos;t define this variable.

Right. Investigating distro defaults is beyond Ruqola. This just caused my initial confusion. It wasn&apos;t previously available for SUSE, so teething problems are to be expected :-D

&gt; After adding ruqola as toplevel why not but too bad that these variables are
&gt; not defined.

Imho it would be best in all cases to make it clear what app saved these photos and videos. This is the first app I&apos;m using that doesn&apos;t use its name at all here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866036</commentid>
    <comment_count>4</comment_count>
    <who name="Timo Jyrinki">timo.jyrinki</who>
    <bug_when>2019-06-28 10:44:51 +0000</bug_when>
    <thetext>(In reply to Christian Dywan from comment #1)
&gt; Investigation revealed that $XDG_PICTURES_DIR and $XDG_VIDEOS_DIR are set to
&gt; $HOME

This is likely just your specific settings, I&apos;m on same distribution and the defaults are to my language specific Videos / Pictures folders.

If you have removed those directories while they were empty, they have been automatically modified to point to just $HOME in your .config/user-dirs.dirs - but the defaults are eg $HOME/Videos and $HOME/Pictures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1866054</commentid>
    <comment_count>5</comment_count>
    <who name="Laurent Montel">montel</who>
    <bug_when>2019-06-28 12:00:29 +0000</bug_when>
    <thetext>Git commit 672de1657ee0b4f7b1e3caf9b688244b4ca14c41 by Laurent Montel.
Committed on 28/06/2019 at 11:17.
Pushed by mlaurent into branch &apos;master&apos;.

Fix Bug 409273 - Cache folder with account name ends up in home

Add Ruqola as top level name as discussed on bug report

M  +1    -1    src/ruqolacore/managerdatapaths.cpp

https://commits.kde.org/ruqola/672de1657ee0b4f7b1e3caf9b688244b4ca14c41</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>