Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
563a2453
Commit
563a2453
authored
15 years ago
by
red-agent
Browse files
Options
Downloads
Patches
Plain Diff
Improved proccess renaming
parent
a6a9a647
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gajim.py
+12
-8
12 additions, 8 deletions
src/gajim.py
with
12 additions
and
8 deletions
src/gajim.py
+
12
−
8
View file @
563a2453
...
@@ -158,14 +158,18 @@ else:
...
@@ -158,14 +158,18 @@ else:
if
dbus_support
.
supported
:
if
dbus_support
.
supported
:
from
music_track_listener
import
MusicTrackListener
from
music_track_listener
import
MusicTrackListener
import
dbus
import
dbus
if
os
.
name
==
'
posix
'
:
# dl module is Unix Only
from
ctypes
import
CDLL
try
:
# rename the process name to gajim
from
ctypes.util
import
find_library
import
dl
import
platform
libc
=
dl
.
open
(
'
/lib/libc.so.6
'
)
libc
.
call
(
'
prctl
'
,
15
,
'
gajim
\0
'
,
0
,
0
,
0
)
sysname
=
platform
.
system
()
except
Exception
:
libc
=
CDLL
(
find_library
(
'
c
'
))
pass
if
sysname
==
'
Linux
'
:
libc
.
prctl
(
15
,
'
Gajim
'
,
0
,
0
,
0
)
elif
sysname
in
(
'
FreeBSD
'
,
'
OpenBSD
'
,
'
NetBSD
'
):
libc
.
setproctitle
(
'
Gajim
'
)
if
gtk
.
pygtk_version
<
(
2
,
12
,
0
):
if
gtk
.
pygtk_version
<
(
2
,
12
,
0
):
pritext
=
_
(
'
Gajim needs PyGTK 2.12 or above
'
)
pritext
=
_
(
'
Gajim needs PyGTK 2.12 or above
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment