Is it possible to get patch to patch files in $home and system both in one command and file?

I have created the following patch file:

ArkOS_Dev_Openbox.patch

+++ ~/.config/openbox/menu.xml  2016-07-28 21:21:55.683952870 +0200 @@ -5,7 +5,7 @@  <item label="Terminal"><action name="Execute"><execute>lxterminal</execute></action></item>  <item label="Browser"><action name="Execute"><execute>firefox</execute></action></item>  <item label="File Manager"><action name="Execute"><execute>spacefm</execute></action></item> -<item label="Editor"><action name="Execute"><execute>geany</execute></action></item> +<item label="Editor"><action name="Execute"><execute>gksu geany</execute></action></item>   <separator/>  <menu id="applications" label="Applications" execute="xdg_menu --format openbox3-pipe --root-menu /etc/xdg/menus/arch-applications.menu" />  +++ /usr/share/applications/geany.desktop.bak   2016-07-29 22:43:43.483359679 +0200 @@ -130,7 +130,7 @@  Comment[vi]=Một IDE nhanh và nhẹ nhàng dùng GTK+  Comment[zh_CN]=GTK+ 编写的轻快的 IDE  Comment[zh_TW]=一個快速且輕巧的 GTK+ 整合開發環境 -Exec=geany %F +Exec=gksu geany %F  Icon=geany  Terminal=false  Categories=GTK;Development;IDE; 

And I try to run this patch with the following command.

sudo patch -d / -p0 < ArkOS_Dev_Openbox.patch

This results in the first file not being found due to the tilde. I've tried using $Home as well to no avail.

I think I'm trying to use patches in a way what I think they're not meant for, a desktop environment instead of a package.

So my question is, can I use patches this way? Should I use patches this way? If so how? If not what should I use instead?

Replay

Category: patch Time: 2016-07-30 Views: 0
Tags: patch

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.130 (s). 12 q(s)