LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 09-27-2009, 04:33 PM   #1
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Writing a patch file trouble.


I just can't seem to get a grasp on patch files. I'm still reading but getting a little frustrated so I am turning to you guys for help . I use compiz-fusion with 13.0. With KDE 4.2.4 it was possible to set your wallpapercolor to wallpapercolor=0,0,0,0 which would disable KDE drawing the wallpaper and make the desktop translucent. This was especially useful for compiz wallpaper plugin so that you could have different wallpapers on each side of the cube. I recently upgraded to KDE 4.3.1 via the packages posted on the forums and the above hack no longer works. So I spent some time around various forums and found out that is was a code revision to the desktopview.ccp file about 7 moths ago. Here is the original patch that disables the hack. http://websvn.kde.org/trunk/KDE/kdeb...340&view=patch

I disabled this line by hand and recompiled kde-workspace-4.3.1 with a slackbuild I made and its now working again. But I wanted to write a patch just to learn a little more and for my X64_86 partition so i wouldn't have to edit the file by hand. Here is my attempt at a patch

diff -ur kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp
--- kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp
+++ kde-workspace-4.3.1/plasma/shells/desktop/desktopview.cpp
@@ -59,6 +59,7 @@
m_dashboardFollowsDesktop(true),
m_init(false)
{
- setAttribute(Qt::WA_TranslucentBackground, false);
+ setAttribute(Qt::WA_TranslucentBackground, true);
setFocusPolicy(Qt::NoFocus);
#ifdef Q_WS_WIN
setWindowFlags(Qt::FramelessWindowHint);


However I get an error saying "patch: **** malformed patch at line 12: setWindowFlags(Qt::FramelessWindowHint);

As you can probably see I just want to replace one line of code. Could someone please explain to me what I am doing wrong. Thanks
 
Old 09-28-2009, 07:51 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 03:45 PM
Having trouble applying kernel patch. sidholland Red Hat 5 04-05-2008 05:37 PM
Having trouble writing to CD cillm527 Linux - Hardware 16 01-09-2006 10:08 AM
Trouble with Nvidia patch in YOU Napalm Llama Linux - Hardware 4 11-15-2004 04:06 PM
Slackware 8.1 trouble with PHP 4.3.2 patch Normanjr Slackware 0 09-17-2003 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration