added my Recipes
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
From 941d5ff3426e68cb9bcb4ae86066124cb2535b69 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 2 Sep 2022 12:32:20 -0700
|
||||
Subject: [PATCH] Fix function protype visibility
|
||||
|
||||
Include ctye.h for toupper
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/appearance.c | 1 +
|
||||
src/desktops.c | 2 +-
|
||||
src/desktops.h | 2 +-
|
||||
src/main.c | 1 +
|
||||
src/moveresize.c | 2 +-
|
||||
src/moveresize.h | 2 +-
|
||||
6 files changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/appearance.c b/src/appearance.c
|
||||
index 4fb3f0c..ee55661 100644
|
||||
--- a/src/appearance.c
|
||||
+++ b/src/appearance.c
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "main.h"
|
||||
#include "tree.h"
|
||||
#include "preview_update.h"
|
||||
+#include <ctype.h> /* for toupper */
|
||||
|
||||
static gboolean mapping = FALSE;
|
||||
|
||||
diff --git a/src/desktops.c b/src/desktops.c
|
||||
index 8297f00..27ca514 100644
|
||||
--- a/src/desktops.c
|
||||
+++ b/src/desktops.c
|
||||
@@ -38,7 +38,7 @@ static void on_desktop_names_cell_edited(GtkCellRendererText *cell,
|
||||
gpointer data);
|
||||
static void enable_stuff();
|
||||
|
||||
-void desktops_setup_tab()
|
||||
+void desktops_setup_tab(void)
|
||||
{
|
||||
GtkWidget *w;
|
||||
GtkCellRenderer *render;
|
||||
diff --git a/src/desktops.h b/src/desktops.h
|
||||
index 1ba3e36..446bfbb 100644
|
||||
--- a/src/desktops.h
|
||||
+++ b/src/desktops.h
|
||||
@@ -24,5 +24,5 @@
|
||||
|
||||
void desktops_setup_num(GtkWidget *w);
|
||||
void desktops_setup_names(GtkWidget *w);
|
||||
-
|
||||
+void desktops_setup_tab(void);
|
||||
#endif
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index d7e3446..0176035 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "dock.h"
|
||||
#include "preview_update.h"
|
||||
#include "gettext.h"
|
||||
+#include "moveresize.h"
|
||||
|
||||
#include <gdk/gdkx.h>
|
||||
#define SN_API_NOT_YET_FROZEN
|
||||
diff --git a/src/moveresize.c b/src/moveresize.c
|
||||
index c6fb3dd..bb52729 100644
|
||||
--- a/src/moveresize.c
|
||||
+++ b/src/moveresize.c
|
||||
@@ -37,7 +37,7 @@ static gboolean mapping = FALSE;
|
||||
static void enable_stuff();
|
||||
static void write_fixed_position(const gchar *coord);
|
||||
|
||||
-void moveresize_setup_tab()
|
||||
+void moveresize_setup_tab(void)
|
||||
{
|
||||
GtkWidget *w, *w1, *w2, *w3;
|
||||
GtkSizeGroup *group;
|
||||
diff --git a/src/moveresize.h b/src/moveresize.h
|
||||
index 82ecc96..8faf526 100644
|
||||
--- a/src/moveresize.h
|
||||
+++ b/src/moveresize.h
|
||||
@@ -20,6 +20,6 @@
|
||||
#ifndef obconf__moveresize_h
|
||||
#define obconf__moveresize_h
|
||||
|
||||
-void moveresize_setup_tab();
|
||||
+void moveresize_setup_tab(void);
|
||||
|
||||
#endif
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
From 6bbde84a2197c97e49d9e64118a979728209e436 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Wed, 23 Sep 2015 23:21:42 +0200
|
||||
Subject: [PATCH] Makefile.am: avoid race when creating autostart directories
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
fixes:
|
||||
|
||||
| make: creating data/xsession/openbox-gnome-session
|
||||
| make: creating data/xsession/openbox-session
|
||||
| make: creating data/xsession/openbox-kde-session
|
||||
| make: creating data/autostart/openbox-autostart
|
||||
| make: creating doc/openbox.1
|
||||
| make: creating data/autostart/autostart
|
||||
| make: creating doc/openbox-session.1
|
||||
| make: creating doc/openbox-gnome-session.1
|
||||
| make: creating doc/openbox-kde-session.1
|
||||
| make: creating doc/obxprop.1
|
||||
| mkdir: cannot create directory './data/autostart': File exists
|
||||
| Makefile:4329: recipe for target 'data/autostart/autostart' failed
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
---
|
||||
Makefile.am | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index f25bf8e..306e77d 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -505,14 +505,12 @@ edit = $(SED) \
|
||||
|
||||
data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile
|
||||
@echo make: creating $@
|
||||
- @test -d $(shell dirname $(top_builddir)/$@) || \
|
||||
- mkdir $(shell dirname $(top_builddir)/$@)
|
||||
+ mkdir -p $(shell dirname $(top_builddir)/$@)
|
||||
@$(edit) $< >$(top_builddir)/$@
|
||||
|
||||
data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile
|
||||
@echo make: creating $@
|
||||
- @test -d $(shell dirname $(top_builddir)/$@) || \
|
||||
- mkdir $(shell dirname $(top_builddir)/$@)
|
||||
+ mkdir -p $(shell dirname $(top_builddir)/$@)
|
||||
@$(edit) $< >$(top_builddir)/$@
|
||||
|
||||
%.desktop: %.desktop.in Makefile
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
From b7de9cff2a9578dd92d191241c28437cd6bbb595 Mon Sep 17 00:00:00 2001
|
||||
From: Max Krummenacher <max.krummenacher@toradex.com>
|
||||
Date: Sun, 2 Feb 2020 14:39:21 +0000
|
||||
Subject: [PATCH] openbox-xdg-autostart: convert to python3
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
|
||||
---
|
||||
data/autostart/openbox-xdg-autostart | 72 ++++++++++++++--------------
|
||||
1 file changed, 36 insertions(+), 36 deletions(-)
|
||||
|
||||
diff --git a/data/autostart/openbox-xdg-autostart b/data/autostart/openbox-xdg-autostart
|
||||
index 04a17a1..52d763f 100755
|
||||
--- a/data/autostart/openbox-xdg-autostart
|
||||
+++ b/data/autostart/openbox-xdg-autostart
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
|
||||
# openbox-xdg-autostart runs things based on the XDG autostart specification
|
||||
# Copyright (C) 2008 Dana Jansens
|
||||
@@ -28,9 +28,9 @@ try:
|
||||
from xdg.DesktopEntry import DesktopEntry
|
||||
from xdg.Exceptions import ParsingError
|
||||
except ImportError:
|
||||
- print
|
||||
- print >>sys.stderr, "ERROR:", ME, "requires PyXDG to be installed"
|
||||
- print
|
||||
+ print()
|
||||
+ print("ERROR:", ME, "requires PyXDG to be installed", file=sys.stderr)
|
||||
+ print()
|
||||
sys.exit(1)
|
||||
|
||||
def main(argv=sys.argv):
|
||||
@@ -51,7 +51,7 @@ def main(argv=sys.argv):
|
||||
try:
|
||||
autofile = AutostartFile(path)
|
||||
except ParsingError:
|
||||
- print "Invalid .desktop file: " + path
|
||||
+ print("Invalid .desktop file: " + path)
|
||||
else:
|
||||
if not autofile in files:
|
||||
files.append(autofile)
|
||||
@@ -99,9 +99,9 @@ class AutostartFile:
|
||||
|
||||
def _alert(self, str, info=False):
|
||||
if info:
|
||||
- print "\t ", str
|
||||
+ print("\t ", str)
|
||||
else:
|
||||
- print "\t*", str
|
||||
+ print("\t*", str)
|
||||
|
||||
def _showInEnvironment(self, envs, verbose=False):
|
||||
default = not self.de.getOnlyShowIn()
|
||||
@@ -146,14 +146,14 @@ class AutostartFile:
|
||||
|
||||
def display(self, envs):
|
||||
if self._shouldRun(envs):
|
||||
- print "[*] " + self.de.getName()
|
||||
+ print("[*] " + self.de.getName())
|
||||
else:
|
||||
- print "[ ] " + self.de.getName()
|
||||
+ print("[ ] " + self.de.getName())
|
||||
self._alert("File: " + self.path, info=True)
|
||||
if self.de.getExec():
|
||||
self._alert("Executes: " + self.de.getExec(), info=True)
|
||||
self._shouldRun(envs, True)
|
||||
- print
|
||||
+ print()
|
||||
|
||||
def run(self, envs):
|
||||
here = os.getcwd()
|
||||
@@ -165,34 +165,34 @@ class AutostartFile:
|
||||
os.chdir(here)
|
||||
|
||||
def show_help():
|
||||
- print "Usage:", ME, "[OPTION]... [ENVIRONMENT]..."
|
||||
- print
|
||||
- print "This tool will run xdg autostart .desktop files"
|
||||
- print
|
||||
- print "OPTIONS"
|
||||
- print " --list Show a list of the files which would be run"
|
||||
- print " Files which would be run are marked with an asterix"
|
||||
- print " symbol [*]. For files which would not be run,"
|
||||
- print " information is given for why they are excluded"
|
||||
- print " --help Show this help and exit"
|
||||
- print " --version Show version and copyright information"
|
||||
- print
|
||||
- print "ENVIRONMENT specifies a list of environments for which to run autostart"
|
||||
- print "applications. If none are specified, only applications which do not "
|
||||
- print "limit themselves to certain environments will be run."
|
||||
- print
|
||||
- print "ENVIRONMENT can be one or more of:"
|
||||
- print " GNOME Gnome Desktop"
|
||||
- print " KDE KDE Desktop"
|
||||
- print " ROX ROX Desktop"
|
||||
- print " XFCE XFCE Desktop"
|
||||
- print " Old Legacy systems"
|
||||
- print
|
||||
+ print("Usage:", ME, "[OPTION]... [ENVIRONMENT]...")
|
||||
+ print()
|
||||
+ print("This tool will run xdg autostart .desktop files")
|
||||
+ print()
|
||||
+ print("OPTIONS")
|
||||
+ print(" --list Show a list of the files which would be run")
|
||||
+ print(" Files which would be run are marked with an asterix")
|
||||
+ print(" symbol [*]. For files which would not be run,")
|
||||
+ print(" information is given for why they are excluded")
|
||||
+ print(" --help Show this help and exit")
|
||||
+ print(" --version Show version and copyright information")
|
||||
+ print()
|
||||
+ print("ENVIRONMENT specifies a list of environments for which to run autostart")
|
||||
+ print("applications. If none are specified, only applications which do not ")
|
||||
+ print("limit themselves to certain environments will be run.")
|
||||
+ print()
|
||||
+ print("ENVIRONMENT can be one or more of:")
|
||||
+ print(" GNOME Gnome Desktop")
|
||||
+ print(" KDE KDE Desktop")
|
||||
+ print(" ROX ROX Desktop")
|
||||
+ print(" XFCE XFCE Desktop")
|
||||
+ print(" Old Legacy systems")
|
||||
+ print()
|
||||
|
||||
def show_version():
|
||||
- print ME, VERSION
|
||||
- print "Copyright (c) 2008 Dana Jansens"
|
||||
- print
|
||||
+ print(ME, VERSION)
|
||||
+ print("Copyright (c) 2008 Dana Jansens")
|
||||
+ print()
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
--
|
||||
2.20.1
|
||||
|
||||
Reference in New Issue
Block a user