LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   kcmshell4 (https://www.linuxquestions.org/questions/linux-desktop-74/kcmshell4-895563/)

business_kid 08-04-2011 11:27 AM

kcmshell4
 
I'm having fun setting up the one kde program I tolerate on my boxes, k3b. k3bsetup (a script) has this line
Quote:

kcmshell4 k3bsetup
I'm embarrassed for kcmshell4 (or a workaround for it) and it seems to be trying to drag me into installing most of kde base (for libs and stuff). No Sir!

Is there a workaround, or do I ditch k3b and go looking for another cd burning program?

Diantre 08-05-2011 08:46 PM

I think that kcmshell4 command is actually loading /usr/lib64/kde4/kcm_k3bsetup.so. I might be wrong on that, though. But if that's the case, then yes, you'll need all the libraries and stuff.

business_kid 08-06-2011 01:57 PM

Thanks for the reply. I feared as much, hence the question. Goodbye k3b.

:-D.
Hello XFBURN - add-on to xfce and quite enough for my needs, thank you

i92guboj 08-10-2011 05:37 AM

I am not sure I understand your problem.

From what I know, k3bsetup is not used nowadays. Nowadays kde 4.x/solid do not need this to detect your hardware because hal has been deprecated in favour of plain udev. Hence my question: are you using an up to date version of k3b? In any case, if you are happy with xfburn then it's ok, but I am just curious.

Diantre 08-10-2011 11:40 AM

k3bsetup changes permissions on the devices and applications that k3b uses, AFAIK it's not used to detect hardware.

I think business_kid wanted to install only the k3b package, but k3bsetup requires kcmshell4, part of kdebase-runtime, which in turn requires other KDE packages.

i92guboj 08-10-2011 04:58 PM

Quote:

Originally Posted by Diantre (Post 4438871)
k3bsetup changes permissions on the devices and applications that k3b uses, AFAIK it's not used to detect hardware.

I think business_kid wanted to install only the k3b package, but k3bsetup requires kcmshell4, part of kdebase-runtime, which in turn requires other KDE packages.

The concrete purpose of k3bsetup is not too relevant. My point is that's perfectly possible to live without it (Gentoo does so) and kcmshell is not a dependency of k3b. I am still not clear if the problem is that the involved distro pushes these deps or if it is the OP who thinks that k3bsetup is really a must-have. If your distro is telling you otherwise, then it's either outdated of the dep tree is buggy.

Code:

# emerge -pe k3b | grep -i kcmshell
Jesus-PC kipi-plugins # emerge -pe k3b | grep -i kde-base
[ebuild  R    ] kde-base/kde-env-4.7.0
[ebuild  R    ] kde-base/kdelibs-4.7.0-r1
[ebuild  R    ] kde-base/oxygen-icons-4.7.0
[ebuild  R    ] kde-base/knotify-4.7.0
[ebuild  R    ] kde-base/libkcddb-4.7.0

I assure you k3b is fully functional with only these. As you see, kcmshell is not in the list. Strictly speaking you could even run it without the icons and without kcddb (I did, not too nice though). Probably also without knotify, but I didn't try that. You definitely need kdelibs, that's evident.

Diantre 08-10-2011 07:34 PM

Quote:

Originally Posted by i92guboj (Post 4439088)
The concrete purpose of k3bsetup is not too relevant. My point is that's perfectly possible to live without it (Gentoo does so) and kcmshell is not a dependency of k3b.

Yes, I agree with you on that. As I said, k3bsetup only changes permissions on certain files and devices so k3b operates properly, and that can be done manually if necessary.

I think kcmshell4 is a dependency of k3bsetup, not k3b per se. The k3bsetup dialog is a kcmshell4 module: /usr/lib(64)/kde4/kcm_k3bsetup.so. So in order to run k3bsetup, kcmshell4 is needed. I don't know of another way of running k3bsetup without kcmshell4, but perhaps there is.

And, as you point out, k3b is fully functional without it.

i92guboj 08-11-2011 01:54 AM

I don't think there's another way of running k3bsetup. What the Gentoo k3b ebuild does is to print this message after installing k3b, and maybe it's worth checking:

Code:

"We don't install k3bsetup anymore because Gentoo doesn't need it."
 "If you get warnings on start-up, uncheck the \"Check system"
 "configuration\" option in the \"Misc\" settings window."

 "Make sure you have proper read/write permissions on the cdrom device(s)."
 "Usually, it is sufficient to be in the cdrw group."

Your distro might use a different group or whatever, you can check that usually by doing "ls -l /dev/cdrw", or whatever your recording device is. Once you know the group that owns the device node all you have to do is to add yourself to that group (usermod --append -G group username) and restart all your login sessions (or just reboot).

business_kid 08-11-2011 02:58 AM

Well, the original poster (me) definitely doesn't have kcmshell4.

Just for the laugh, I tried k3b from a terminal. Contrary to previous experience, it staggered into life with a page full of errors from things beginning with 'k', 'Q' and 'G'. It can't find anything, parse anything,and returns a string of errors from QPainter. Strewth!

I forget what I did to get it this way. I think I have exploded a package, copied out a single library, and deleted that package again. It still crapped out (after I did this) last time. Now it works. Thanks for all the 'kGems' of wisdom.

business_kid 08-11-2011 09:39 AM

Here's one you guys might have an idea on. I decided to use k3b - to clone a freebie video dvd.

It made a 6.7Gig .iso and we fell over predictably :-O? I'm not expecting copy protection.

i92guboj 08-11-2011 10:25 AM

k3b offers info when it fails. Can you paste it here?

Does it successfully create the ISO and then fail? Does it start burning the image and fails in the middle?

business_kid 08-12-2011 03:31 AM

Not really.

k3b makes the iso (in the 'copy medium' menu), and sits up and has a window saying "Insert a DVD or Blue-Ray disk". This conveniently ignores the fact that it's a dvd writer, not a blue ray. I get the choice of Load, Eject, or Cancel. Load does nothing and says nothing. Eject Ejects. Cancel deletes the iso and goes away. Here's the terminal output
Code:

QLayout: Attempting to add QLayout "" to QFrame "", which already has a layout
k3b(2151): Couldn't start knotify from knotify4.desktop:  "Could not find service 'knotify4.desktop'."

k3b(2151)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files"
k3b(2151)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files"

Loop mounting the iso shows this:
Code:

bash-4.1$ cd /mnt/tmp/VIDEO_TS
bash-4.1$ ls -lh
total 6.7G
-r--r--r-- 1 4294967295 4294967295  14K Jan 27  2011 VIDEO_TS.BUP
-r--r--r-- 1 4294967295 4294967295  14K Jan 27  2011 VIDEO_TS.IFO
-r--r--r-- 1 4294967295 4294967295 114K Jan 27  2011 VIDEO_TS.VOB
-r--r--r-- 1 4294967295 4294967295  96K Jan 27  2011 VTS_01_0.BUP
-r--r--r-- 1 4294967295 4294967295  96K Jan 27  2011 VTS_01_0.IFO
-r--r--r-- 1 4294967295 4294967295 114K Jan 27  2011 VTS_01_0.VOB
-r--r--r-- 1 4294967295 4294967295 1.0G Jan 27  2011 VTS_01_1.VOB
-r--r--r-- 1 4294967295 4294967295 1.0G Jan 27  2011 VTS_01_2.VOB
-r--r--r-- 1 4294967295 4294967295 1.0G Jan 27  2011 VTS_01_3.VOB
-r--r--r-- 1 4294967295 4294967295 801M Jan 27  2011 VTS_01_4.VOB
-r--r--r-- 1 4294967295 4294967295  88K Jan 27  2011 VTS_02_0.BUP
-r--r--r-- 1 4294967295 4294967295  88K Jan 27  2011 VTS_02_0.IFO
-r--r--r-- 1 4294967295 4294967295 306M Jan 27  2011 VTS_02_0.VOB
-r--r--r-- 1 4294967295 4294967295 1.0G Jan 27  2011 VTS_02_1.VOB
-r--r--r-- 1 4294967295 4294967295 1.0G Jan 27  2011 VTS_02_2.VOB
-r--r--r-- 1 4294967295 4294967295 549M Jan 27  2011 VTS_02_3.VOB

All those 1.0 Gigs are kind of suspicious, but it otherwise looks reasonable. I have worked on cd manufacturing machines in a former life and know how to judge the size visually, and this one if FULL FULL. Every cylinder seems used. It also has subtitles in 8 languages.

EDIT: Startup errors may be relevant, and here they are:[QUOTE]k3b
QGtkStyle was unable to detect the current GTK+ theme.
k3b(2151)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!

k3b(2151)/kdeui (KIconLoader): Unable to access index when trying to discard cache
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kded4.so
QGtkStyle was unable to detect the current GTK+ theme.
kded(2159)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!

QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance()
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
kbuildsycoca4 running...
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kconf_update.so
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QMetaObject::invokeMethod: No such method K3b::Application::loadCommandLineOptionsForNewInstance()
bash-4.1$ k3b(2151)/kdeui (kdelibs): Attempt to use QAction "view_projects" with KXMLGUIFactory!
k3b(2151)/kdeui (kdelibs): Attempt to use QAction "view_dir_tree" with KXMLGUIFactory!
k3b(2151)/kdeui (kdelibs): Attempt to use QAction "view_contents" with KXMLGUIFactory!
k3b(2151)/kdeui (kdelibs): Attempt to use QAction "location_bar" with KXMLGUIFactory!
kdeinit4: preparing to launch /usr/lib/kde4/kio_file.so
kdeinit4: preparing to launch /usr/lib/kde4/kio_file.so
kdeinit4: preparing to launch /usr/lib/kde4/kio_file.so
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
k3b(2151)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing "/usr/share/mime/magic"
k3b(2151)/kdecore (services) KMimeTypeFactory::parseMagic: Now parsing "/home/dec/.local/share/mime/magic"[QUOTE]

i92guboj 08-12-2011 04:37 AM

Quote:

Originally Posted by business_kid (Post 4440592)
Not really.

k3b makes the iso (in the 'copy medium' menu), and sits up and has a window saying "Insert a DVD or Blue-Ray disk". This conveniently ignores the fact that it's a dvd writer, not a blue ray. I get the choice of Load, Eject, or Cancel. Load does nothing and says nothing. Eject Ejects. Cancel deletes the iso and goes away.

So, from what I understand, it just sits there waiting for a disk forever, is that correct?

Sorry if this is too obvious, but I prefer to ask for obvious things before ignoring them to discover a year later that it was a silly thing: did you try putting the disk in your drive and closing it manually? If the drive is able to work with double layer DVDs (I assume you already checked that) then k3b should detect that you just inserted a blank disk, and start burning it.

Another thing you should check is that the udev service is running. Or, if you use a pre-2.x release of k3b, then make sure that hal is running as well.

Another thing you could try is this: k3b supports several backends when it comes to burning disks. Most notably, cdrkit(wodim) vs. cdrtools. I don't know what the status for these is in your distro, but you will have better or worse luck with one or the other depending on the hardware you use, program versions, etc. So you might want to check that, if the obvious thing fails.

In any case, double check the releases of cdrtools/cdrkit and dvd+rw-tools, and google a bit around for minimal versions of these needed for dual layer DVD support.

Oh, the terminal output you posted seems ok to me.

Diantre 08-12-2011 12:25 PM

Quote:

Originally Posted by business_kid (Post 4440592)
Code:

QLayout: Attempting to add QLayout "" to QFrame "", which already has a layout
k3b(2151): Couldn't start knotify from knotify4.desktop:  "Could not find service 'knotify4.desktop'."

k3b(2151)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files"
k3b(2151)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files"


In Slackware 13.37, the files kcmshell4, knotify4.desktop and org.kde.knotify.service are provided by the package kdebase-runtime.

Quote:

k3b(2151)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!
The oxygen theme is in package oxygen-icons.

Quote:

kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
...
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kded4.so
...
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
...
kdeinit4: preparing to launch /usr/lib/libkdeinit4_kconf_update.so
...
kdeinit4: preparing to launch /usr/lib/kde4/kio_file.so
All the files above are provided by the kdelibs package.

@business_kid, it seems to me you removed from your system several core KDE packages, and without them k3b simply won't work properly.

Quote:

Originally Posted by business_kid (Post 4433751)
... and it seems to be trying to drag me into installing most of kde base (for libs and stuff). No Sir!

But maybe that's what you want, right? ;)

business_kid 08-12-2011 12:50 PM

Quote:

Originally Posted by i92guboj (Post 4440642)
So, from what I understand, it just sits there waiting for a disk forever, is that correct?

Yes. I have no problem with you asking the obvious - that's how people get to the bottom of things.

Quote:

Originally Posted by i92guboj (Post 4440642)
Sorry if this is too obvious, but I prefer to ask for obvious things before ignoring them to discover a year later that it was a silly thing: did you try putting the disk in your drive and closing it manually? If the drive is able to work with double layer DVDs (I assume you already checked that) then k3b should detect that you just inserted a blank disk, and start burning it.

Yes, all this is good. If I close the drive, it stays there. If I don't I have Verbatim Lightscribe DVDs and they are 70 minutes (=4.7 G), with a pretty surface for lightscribing on the other side. and I'm not really surprised it isn't burning them with a 6.7G iso. What I am surprised at it that dd from a readable disk returns 6.7G! Is this some sort of a crazy error, is something being read twice?

Quote:

Originally Posted by i92guboj (Post 4440642)
Another thing you should check is that the udev service is running. Or, if you use a pre-2.x release of k3b, then make sure that hal is running as well.

Another thing you could try is this: k3b supports several backends when it comes to burning disks. Most notably, cdrkit(wodim) vs. cdrtools. I don't know what the status for these is in your distro, but you will have better or worse luck with one or the other depending on the hardware you use, program versions, etc. So you might want to check that, if the obvious thing fails.

No reason to suspect udev, which is working & running. I have k3b-2.0.0, cdrdao-1.2.3, cdrtools-3.01a02, & dvd+rw-7.1. The caveat is that there has been an upgrade, and if slackware dropped one of those packages or moved it, I might be looking at an old version. I just feel like someone who has poured a litre out of a pint bottle, and can't get it back in :-/.

Quote:

Originally Posted by i92guboj (Post 4440642)
In any case, double check the releases of cdrtools/cdrkit and dvd+rw-tools, and google a bit around for minimal versions of these needed for dual layer DVD support.

Oh, the terminal output you posted seems ok to me.



All times are GMT -5. The time now is 08:15 PM.