geany cannot open simultaneously by multiple user

Bug #1536760 reported by Wei Tsui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
geany (Ubuntu)
New
Undecided
Unassigned

Bug Description

Geany use socket-file session like "~/.config/geany/geany_socket_ubuntu__0" to share data for multiple opening geany by "single" user.

By a bug is that, when running "geany" and "sudo geany", only either can be open, because their socket-file sessions are conflict.

This situation make geany look buggy.

I suggest a brief sollution to solve this problem, by adding gid to socket-file which aims to divide sessions of multiply users ->

In "${GEANY_SOURCE}/src/socket.c", changing the following line:

  socket_info.file_name = g_strdup_printf("%s%cgeany_socket_%s_%s",
   app->configdir, G_DIR_SEPARATOR, hostname, display_name);

into:

  socket_info.file_name = g_strdup_printf("%s%cgeany_socket_%s_%s-%d",
   app->configdir, G_DIR_SEPARATOR, hostname, display_name, getuid());

will make it work normally, and I have tested that.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: geany 1.26+dfsg-1
ProcVersionSignature: Ubuntu 4.3.0-7.18-generic 4.3.3
Uname: Linux 4.3.0-7-generic x86_64
ApportVersion: 2.19.3-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME-Flashback
Date: Fri Jan 22 03:10:55 2016
SourcePackage: geany
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Wei Tsui (ghostplant) wrote :
description: updated
description: updated
Revision history for this message
Colomban Wendling (banw) wrote :

For me this is a bug in sudo configuration, because it does not properly resets the environment to use root's own home. It will have several other issues related to sharing configuration between users, that aren't resolved by simply adding the UID to the socket name.

S/A https://sourceforge.net/p/geany/bugs/968/#0067

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.