[packages/pycharm-community: 3/6] install launcher wrapper
glen
glen at pld-linux.org
Mon Feb 1 17:00:59 CET 2016
commit 94f108587d9c4e2dc71d9fb8536bdc8860d86e11
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jan 22 22:29:55 2016 +0200
install launcher wrapper
charm.py | 7 +++----
pycharm-community.spec | 7 +++----
2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/pycharm-community.spec b/pycharm-community.spec
index 3894218..8396d1f 100644
--- a/pycharm-community.spec
+++ b/pycharm-community.spec
@@ -3,7 +3,7 @@
Summary: Python IDE for Professional Developers
Name: %{product}-community
Version: 5.0.3
-Release: 0.2
+Release: 0.3
# TODO: figure out what's the licensing and redistribution
License: ?
Group: Development/Tools
@@ -11,7 +11,7 @@ Source0: https://download.jetbrains.com/python/%{name}-%{version}.tar.gz
# NoSource0-md5: 9a62285ee71fdc00a928e131e4d55839
NoSource: 0
#Source1: %{product}.desktop
-#Source2: %{name}.py
+Source2: charm.py
Patch0: pld.patch
URL: https://www.jetbrains.com/pycharm/
BuildRequires: jpackage-utils
@@ -82,8 +82,7 @@ cp -a$l bin help helpers lib license plugins $RPM_BUILD_ROOT%{_appdir}
ln -s %{_pixmapsdir}/%{product}.png $RPM_BUILD_ROOT%{_appdir}/bin/%{product}.png
cp -p %{product}.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{product}.png
#cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-#install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}
-ln -s %{_appdir}/bin/%{product}.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
+install -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/charm.py b/charm.py
index fb0df9f..f3fc904 100755
--- a/charm.py
+++ b/charm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# -*- coding: utf-8 -*-
import socket
@@ -10,7 +10,7 @@ import time
# see com.intellij.idea.SocketLock for the server side of this interface
RUN_PATH = u'/usr/lib/pycharm-community/bin/pycharm.sh'
-CONFIG_PATH = u'/home/glen/.config/PyCharm'
+CONFIG_PATH = os.path.expanduser('~/.config/PyCharm')
args = []
skip_next = False
@@ -101,5 +101,4 @@ if sys.platform == "darwin":
os.execvp("open", ["-a", RUN_PATH] + args)
else:
# unix common
- bin_dir, bin_file = os.path.split(RUN_PATH)
- os.execv(RUN_PATH, [bin_file] + args)
+ os.execv(RUN_PATH, [RUN_PATH] + args)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pycharm-community.git/commitdiff/9fc6a42b010b53691be52a089f4704e328f75a95
More information about the pld-cvs-commit
mailing list