Closed GoogleCodeExporter closed 9 years ago
What second window? Second page of the wizard?
I have just tried - both KDE, and pure Qt4 builds. Both times the initial
settings wizard is only shown once, and not on subsequent starts. So, working
as expected for me.
Seeing as you are using a KDE build, Cantata should have written a config file
to ~/.kde/share/config/cantatarc. Does this file exist? If so, does it have a
line starting with "version=" ?? Cantata uses this line to determine if it has
been started previously.
Also, seeing as you are using Mint - why are you using the KDE version? As of
1.4.0 Cantata builds as a pure Qt app by default - and you need to explicitly
enable the KDE build.
Original comment by craig.p....@gmail.com
on 3 Dec 2014 at 10:55
Yes, I meant the second window of the "Cantata First Run" wizard.
The ~/.kde/share/config/cantatarc file does exist. And yes, it does have a line
in the {Connection--] section with version=1.5.1
I would be happy to switch to the pure QT version. I can't say with 100%
certainty how I installed Cantata. My guess would be I used Synaptic Package
Manager.
I will see if I can figure out how to install the QT version.
Thanks,
Ben
Original comment by tynd...@attglobal.net
on 3 Dec 2014 at 1:36
Something odd is going on then. "version=1.5.1" should be in the "[General]"
section.
"[Connection--]" should only be created if you selected "Basic single user
setup" - but this has no 'hostname' entry, so I'm confused by your issue with
localhost...
Can you download the source for 1.5.1 - and compile yourself? To create a KDE
build, pass -DENABLE_KDE=ON to cmake (see the INSTALL file for more details).
Creating a KDE build would be good, so as to re-create the issue.
If you can recreate this with a self-compiled KDE build, then please copy the
attached settings.cpp into your cantata-1.5.1/gui folder - and rebuild again.
Does this resolve the issue?
Original comment by craig.p....@gmail.com
on 3 Dec 2014 at 2:07
Attachments:
Thanks for your reply.
Since I get the "Cantata First run" wizard each time I start Cantata (like in
the movie, Groudhog Day)), I have indeed experimented with both options on the
first window, (single user option vs. multi-user option). So perhaps that
explains the presence of version=1.5.1 in the [Connection--] section.
I will take a stab at compiling the program myself per your suggestion.
Original comment by tynd...@attglobal.net
on 3 Dec 2014 at 2:45
It explains the "[Connection--]" entry (which is fine, this is what is used for
basic single-user mode).
However, it does not explain the version entry being in there. The version is
global, and should be in General.
All I can think of is that there is a race condition, where the group is set to
"Connection--" and then the version string is set, before the group is reset to
General. If this is the case, then the modified settings.cpp /should/ resolve
this.
Original comment by craig.p....@gmail.com
on 3 Dec 2014 at 2:55
My attempt to compile the application was not successful. I get a number of
errors when running the cmake command. Not being a C programmer, I have no idea
what the various error messages are trying to say. The error log file is
attached.
Original comment by tynd...@attglobal.net
on 3 Dec 2014 at 11:32
Attachments:
Try this pre-compiled version of Cantata:
http://www.tempfiles.net/download/201412/361580/cantata.html
Just 'gunzip' the file, it contains *only* the cantata exe - built for KDE, but
with ffmpeg/mpg123/mtp/etc disabled (however these should have no affect on
this issue)
Original comment by craig.p....@gmail.com
on 4 Dec 2014 at 9:51
I downloaded the file you liked to and unzipped into /home/ben/apps directory.
Had to chmod 777 the file to allow me to run it, then from the sane directory,
ran
./cantata.
The behavior is unchanged. I.e., I still get the "Cantata First Run" window
each time I run it. (It still plays music just fine, btw.) Don't know if this
helps, but here are the messages that appear on console when I run the app:
ben@Merlin ~/apps $ ./cantata
QDBusConnection: session D-Bus connection created before QCoreApplication.
Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication.
Application may misbehave.
cantata(5784)/KSharedDataCache KSharedDataCache::Private::mapSharedMemory:
Failed to establish shared memory mapping, will fallback to private memory --
memory usage will increase
Object::connect: No such signal
org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal
org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
ben@Merlin ~/apps $
Original comment by tynd...@attglobal.net
on 4 Dec 2014 at 10:41
Can you try:
1 stop cantata
2 delete old config file (~/.kde/share/config/cantatarc)
3 restart cantata
- enter details, etc
4 stop cantata after it has fully started
5 attach the config file to this bug report
Original comment by craig.p....@gmail.com
on 4 Dec 2014 at 11:36
I completed the first 4 steps.
In the 5th step, you ask me to send you the config file. I assume you are
referring to the cantatarc file in the ~/.kde/share/config directory (the file
you asked me to delete). The file is not there now. I.e., I deleted it per step
2, and it did not re-appear after starting/stopping cantata.
Original comment by tynd...@attglobal.net
on 5 Dec 2014 at 4:04
If ~/.kde/share/config/cantatarc is not create, even after Cantata has fully
started, and you select 'Quit' from them menu - then there is something wrong
with your system. The changes I made will not stop the file from being created.
How did you stop Cantata? After the *main* window has apeared (with the play
queue, etc?) Did you properly stop it, or Ctrl-C ?
Original comment by craig.p....@gmail.com
on 5 Dec 2014 at 8:51
I usually stop Cantata with the "X" button at top right. But I have also tried
with menu>file>quit, with same results. Running Cantata from the command line
this way (instead of from the desktop start menu), there are quite a few
messages. I have run as
./cantata 2>&1 | tee cantata.log
and attached the resulting file. Is there anything in those messages that helps
narrow down the problem?
Original comment by tynd...@attglobal.net
on 5 Dec 2014 at 1:37
Attachments:
I strongly suspect you have a permissions issue with your .kde folder - see
this line in the log file:
trying to create local folder /home/ben/.kde/share/apps/kwallet: Permission
denied
I'd check the ownership, and permissions, of ~/.kde, ~/.kde/share,
~/.kde/share/config, and ~/.kde/share/config/cantatarc
Original comment by craig.p....@gmail.com
on 5 Dec 2014 at 2:38
I have run chmod 777 on everything under /home/ben/.kde. To do that, I had to
switch to root. I accidentally discovered that if I run cantata as root, it
works fine!
But I eventually noticed I was running as root. As soon as I exited out of
root, I was back to getting the "Running Cantata for the first time" wizard
each time.
So I have a fix. But obviously it isn't a good fix. And it means this is
definitely some sort of permissions problem. The question becomes, which
directory (or file) has the wrong permissions?
I do plan to reformat the hard drive on this workstation in the near future and
start over. I have seen enough of various music playing options under linux to
know I will be using mpd and Cantata. I quite like this setup. I will probably
stick with Mint and the xfce desktop.
I imagine the safest way to install Cantata will be to use the Synaptic Package
Manager and install whatever shows up in the Canonical/Ubuntu/Linuxmint
repositories. I think they have Cantata 1.1.3. That will hopefully be OK, and
hopefully I won't see this permissions problem again :) .
Thanks for all your help,
Ben
Original comment by tynd...@attglobal.net
on 6 Dec 2014 at 12:28
Original comment by craig.p....@gmail.com
on 7 Dec 2014 at 2:48
Original issue reported on code.google.com by
tynd...@attglobal.net
on 3 Dec 2014 at 3:34