<?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>363463</bug_id>
          
          <creation_ts>2016-05-24 11:24:45 +0000</creation_ts>
          <short_desc>xdg-mime crashes when run from another user (kdesu konsole)</short_desc>
          <delta_ts>2016-05-25 14:19:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>8</classification_id>
          <classification>I don&apos;t know</classification>
          <product>kde</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>270442</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>deviatov</reporter>
          <assigned_to name="Unassigned bugs">unassigned-bugs-null</assigned_to>
          
          
          <cf_commitlink></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>1596362</commentid>
    <comment_count>0</comment_count>
    <who name="">deviatov</who>
    <bug_when>2016-05-24 11:24:45 +0000</bug_when>
    <thetext>Application: ktraderclient (0.0)
KDE Platform Version: 4.14.16 (Compiled from sources)
Qt Version: 4.8.6
Operating System: Linux 4.0.9-gentoo-gnu20160422 x86_64
Distribution: &quot;NAME=Gentoo&quot;

-- Information about the crash:
- What I was doing when the application crashed:

first, I typed (as the normal user)
kdesu -u rostislav_www -n -c konsole &amp;
then, in the new terminal:
xdg-mime query default application/pdf

-- Backtrace:
Application: KTraderClient (ktraderclient), signal: Aborted
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
84	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#6  0x00007f5253608217 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007f525360966a in __GI_abort () at abort.c:89
#8  0x00007f5253d398f4 in qt_message_output (msgType=&lt;optimized out&gt;, buf=&lt;optimized out&gt;) at /usr/src/debug/dev-qt/qtcore-4.8.6-r2/qt-everywhere-opensource-src-4.8.6/src/corelib/global/qglobal.cpp:2359
#9  0x00007f52548934a9 in QDebug::~QDebug (this=0x7ffed73248b0, __in_chrg=&lt;optimized out&gt;) at /usr/include/qt4/QtCore/qdebug.h:85
#10 0x00007f52548eb91a in KApplicationPrivate::init (this=0x1986300, GUIenabled=GUIenabled@entry=false) at /usr/src/debug/kde-base/kdelibs-4.14.16/kdelibs-4.14.16/kdeui/kernel/kapplication.cpp:516
#11 0x00007f52548ec29b in KApplication::KApplication (this=0x7ffed7324c10, GUIenabled=false) at /usr/src/debug/kde-base/kdelibs-4.14.16/kdelibs-4.14.16/kdeui/kernel/kapplication.cpp:352
#12 0x00000000004019de in main (argc=5, argv=0x7ffed7324d48) at /usr/src/debug/kde-apps/ktraderclient-15.08.3/ktraderclient-15.08.3/ktraderclient/ktraderclient.cpp:43

Possible duplicates by query: bug 357541.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1596551</commentid>
    <comment_count>1</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2016-05-25 11:07:01 +0000</bug_when>
    <thetext>You also need to start a dbus session for the new user.

*** This bug has been marked as a duplicate of bug 270442 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1596647</commentid>
    <comment_count>2</comment_count>
    <who name="">deviatov</who>
    <bug_when>2016-05-25 14:19:49 +0000</bug_when>
    <thetext>I&apos;ve tried to start dbus as follows:
first, I typed (as the normal user)
kdesu -u rostislav_www -n -c konsole &amp; 
then, in the new terminal: 
dbus-launch
xdg-mime query default application/pdf 

The same crash (with the same backtrace).

Am I doing something wrong? (Maybe, I should start dbus somewhat differently?)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>