Archives For November 30, 1999

gnome shell

The default Gedit text editor in Ubuntu 18.04 always opens file in a new window, even though there’s already an existing instance. And there’s no easy option to change the behavior.

Thanks to fossfreedom, you can re-built Gedit pakages so to always open files in new tabs in the same gedit window.

1. Open terminal either via Ctrl+Alt+T shortcut key or by searching for ‘terminal’ from software launcher.

2. When terminal opens, paste the command below and hit run to install the building tools:

sudo apt-get install devscripts build-essential fakeroot

3. Launch Software & Updates, and click enable download Source code from Ubuntu repositories.

4. In user downloads, create a build folder and navigate to the directory.

cd ~/Downloads/ && mkdir build && cd build

5. Download the gedit source code via command:

sudo apt-get update; apt-get source gedit

Type your password (no asterisks feedback) when it prompts

6. Next edit the source file gedit-app.c:

cd gedit-* && gedit gedit/gedit-app.c

When the file opens, add new line return TRUE; as the picture shows (line 320 for Ubuntu 18.04):

7. Give a unique package name by editing the debian/changelog file.

gedit debian/changelog

8. Finally rebuild the gedit via commands:

sudo apt-get build-dep gedit

debuild -i -us -uc -b

The commands will take a few minutes building the gedit text editor packages.

9. At last, install the new packages via command and enjoy!

cd ~/Downloads/build/ && sudo dpkg -i gedit*.deb

In addition, you may lock the changes so it won’t be overwritten after installing system updates.

And it can be done easily via Synaptic package manager (available in Ubuntu Software). Simply search for ‘gedit’ and choose lock version for gedit and gedit-common packages one by one.

rabbitVCS

Quick tutorial shows how to install RabbitVCS, easy version control for Linux, in Ubuntu 14.04/Ubuntu 14.10 for Nautilus, Gedit, Thunar, Nem

RabbitVCS is a graphical front-end for version control systems available on Linux. It integrates into file managers to provide file context menu access to version control repositories. The project was originally called NautilusSvn, but due to the desire to support file managers in addition to Nautilus and more version control systems, it was renamed to RabbitVCS.

RabbitVCS extension for Nautilus

Install RabbitVCS in Ubuntu:

While Ubuntu repositories provide an old version of RabbitVCS, the latest release is always available in its official PPA.

1. To add the PPA, press Ctrl+Alt+T to open terminal, paste the command below and hit enter to run:

sudo add-apt-repository ppa:rabbitvcs/ppa

Type in your user password when it asks and there is no visual feed back.

2. After that, install RabbitVCS extension via Synaptic Package Manager (install it from Ubuntu Software Center), and receive future updates by running running regular updates via Software Updater.

  1. Install and then launch Synaptic from the Unity Dash or App Menu.
  2. Click the Reload button to update package lists.
  3. Search rabbitvcs
  4. Highlight rabbitvcs-nautilus3, rabbitvcs-gedit, or rabbitvcs-thunar
  5. and mark for installation.

  6. Finally click the Apply button to install it/them.

Install RabbitVCS from PPA

Once installed, log out and back in.

Install RabbitVCS extension for Nemo:

For Linux Mint Nemo file manager, you can install the extension by running the commands below one by one in terminal:

sudo add-apt-repository ppa:tsvetko.tsvetkov/cinnamon

sudo apt-get update

sudo apt-get install nemo-rabbitvcs

Supports for Linux Mint 17 and 13.