Commit Graph

1091 Commits

Author SHA1 Message Date
Yegor Yefremov
f4282ea7de Use get_hadjustment via casting TreeView to Gtk.Scrollable
Resolves the following deprecation warning:

warning: `Gtk.TreeView.get_hadjustment' has been deprecated since 3.0
2023-05-18 12:42:16 -04:00
Yegor Yefremov
c9aba352c9 Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties
Both properties are deprecated since Gtk version 3.12. One should use
margin_start and margin_end instead.
2023-05-18 12:42:16 -04:00
Yegor Yefremov
79ddd89891
meson support (#173)
* Move AppConsole.vala and AppGtk.vala to src directory

* Rename po files

Strip "timeshift-" prefix. This is required for the future meson
support.

* Add initial meson support

* Remove makefile

* docs/development.md: adapt the instructions to the meson build system

Bonus: break a long line.
2023-05-12 09:37:54 -04:00
Yegor Yefremov
9668beec48
Use help2man utility to create a man page. (#178)
Also remove man/timeshift.1.gz as Linux distros provide own
hooks to compress man pages.
2023-05-08 13:44:57 -04:00
Yegor Yefremov
0b21b1eded
Fix project's license (#189)
The source code is licensed under GPL-2.0-or-later license but
LICENSE.md presents LGPL-3.0-or-later license that is more suitable
for libraries.

So replace LICENSE.md with GPL-2.0-or-later.txt file and place it
under LICENSES directory as suggested by the REUSE standard.

Also remove COPYING as it contains GPL-3.0-or-later license.
2023-05-02 09:34:50 -04:00
Yegor Yefremov
94315c5463
src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183)
These symbols won't be used in the source code anymore.
2023-04-24 10:49:07 -04:00
Yegor Yefremov
0c616cf5cf
Console: add --version option description to the help massages (#181) 2023-04-24 10:48:23 -04:00
Yegor Yefremov
0c8a853c9d
Debian clean up (#180)
* debian: bump compat level to 10

Fixes the following warning:

dh_auto_clean: warning: Compatibility levels before 10 are deprecated
(level 8 in use)

debian/compat is replaced with debhelper-compat build dependency.

Remove "--with autotools-dev" from debian/rules as the package uses
plain makefiles and not autotools. Also remove autotools-dev build
dependency.

* src/timeshift-gtk.desktop: remove MimeType and add Keywords

These changes apply the following Debian patches:

https://salsa.debian.org/debian/timeshift/-/blob/master/debian/patches/0003-Remove-Mime-Type-record-form-timeshift-gtk.desktop.patch
https://salsa.debian.org/debian/timeshift/-/blob/master/debian/patches/0006-Add_keywords_to_dot_desktop.patch
2023-04-24 10:47:14 -04:00
Yegor Yefremov
5a44146762
Remove timeshift-uninstall binary (#176)
The user should use related packet management system to uninstall
timeshift.
2023-04-24 09:53:36 -04:00
Ivan Skodje
0d8d1de8bf
Development documentation for easier accessibility (#170) 2023-04-24 09:51:28 -04:00
Yegor Yefremov
3b72e31e5d
Console: add --version option (#175)
This option prints application name and its version. Such an output
can be used to automatically generate a man page using the help2man
utility.
2023-04-18 19:49:09 -04:00
Ivan Skodje
6781a06a76
Added missing documentation regarding tags abbrevation which was difficult to find (#168) 2023-04-18 10:32:51 -04:00
Yegor Yefremov
382c1638bc
Fix segmentation fault (#169)
Check not only length but also whether backup_uuid or backup_parent_uuid
objects are null.

Such a situation occurs when running 'src/timeshift --list' on a system
without an initial timeshift installation i.e. just compiled from
source.
2023-04-13 12:13:01 -04:00
Yegor Yefremov
e18377e33e Fix deprecated Thread.create usage
Also streamline Thread exception handling. Catch only Glib.Error
exception.
2023-04-06 13:21:07 -04:00
Yegor Yefremov
4607bcc908 Don't use deprecated from_timeval_utc function
from_timeval_utc is deprecated since 2.62. Use from_unix_utc instead.
2023-04-06 13:21:07 -04:00
Yegor Yefremov
ed0d20acf1
Fix printf format warnings (#162) 2023-04-06 12:31:56 -04:00
Michael Webster
18cd48ddd4
AsyncTask: Use a mutex to guard access to AsyncTask.status_line.
While a backup or restore task was running, the status_line property
would be updated for each file processed.

Meanwhile, the gui (BackupBox, for example) was periodically
accessing the status_line property to set a label.

Without protection, the gui was picking up garbage from status_line
instead of the filename, and was flooding output with markup warnings.
There was probably potential for a crash as well.
2023-03-21 20:53:24 -04:00
Yegor Yefremov
240225d547
src/Utility: fix deprecated Thread.create usage (#151) 2023-03-21 14:05:48 -04:00
Vlasov Yuriy
a551387f06
Added extra constraints to BTRFS mode in Supported System Configurations (#103)
Co-authored-by: Yuriy Vlasov <yv@itsvit.org>
2023-03-21 12:11:28 -04:00
Yegor Yefremov
4c4d650443 README.md: fix a typo 2023-03-20 12:27:08 -04:00
TotalCaesar659
a5676ca048 Update URLs to HTTPS 2023-03-06 09:38:54 -05:00
GHelliot
6d2599fc52 Update Device.vala
Changing to available_bytes instead of calculating the free bytes from (size_bytes - used_bytes) respects potential reserved space for "for root only" e.g. on ext4 file systems. It should prevent running out of space in the unfavorable cases having the timeshift archive located on the actual root file system.
2023-02-02 09:39:27 -05:00
Clement Lefebvre
d29a7ab6be 22.11.2 2023-01-07 16:04:37 +00:00
Michael Webster
02240c1898 Main.vala: Turn the initial btrfs quota error into a message if we
think we know what the error is.

The error messages aren't localized, but they may change.
2022-11-24 12:43:14 -05:00
Clement Lefebvre
3e0b785860 22.11.1 2022-11-22 10:11:02 +00:00
Michael Webster
bc2dc19994 Main.vala: Don't continue to try to get btrfs quota info if it
fails the first time.

This is mainly to reduce log spam when monitoring unattended jobs
or debugging.
2022-11-21 20:19:19 -05:00
Thomas Praxl
54cb3a3784 Restore btrfs qgroups size & unshared size columns
Restored calculation and display, which was deleted in commit 8d77b18f.

However, the behavior has been changed slightly:

* We try to determine the sizes using `btrfs qgroup show`
* This is only successful on systems with enabled qgroups
* If so, we enable the columns
* Otherwise, we hide them

I did not restore the methods for enabling quota.
But I restored destroying qgroups on snapshot removal.

This also fixes a bug, I encountered on a system with enabled qgroups:

Since the removal of the now restored behavior, I encountered lots of 0.00B qgroups,
because they seem to have been created all along, but they have no longer been removed:

```
$ sudo btrfs qgroup show .
qgroupid         rfer         excl
--------         ----         ----
0/5          92.00KiB     92.00KiB
0/262         4.00GiB      4.00GiB
0/798       135.20GiB    334.31MiB
0/799        14.07GiB    254.51MiB
0/1657          0.00B        0.00B
0/1658          0.00B        0.00B
0/1665          0.00B        0.00B
0/1666          0.00B        0.00B
0/1691          0.00B        0.00B
0/1692          0.00B        0.00B
0/1721          0.00B        0.00B
0/1722          0.00B        0.00B
0/1723          0.00B        0.00B
0/1724          0.00B        0.00B
0/1727          0.00B        0.00B
…
```
2022-11-21 15:42:22 -05:00
Tony George
af6fda5560 Remove BUILD_CONFIG
I use this config file to build packages on my machine with Docker. Not useful for other people.
2022-11-21 13:33:28 +00:00
Tony George
cb4b53b7ca Remove empty NOTES file 2022-11-21 13:33:28 +00:00
Tony George
ce558891f1 Remove config file for old GitHub pages site
This was used to generate the page at https://teejee2008.github.io/timeshift/
2022-11-21 13:33:28 +00:00
Tony George
24570e8f78 Remove mention of installer in README; Remove config file for installer
There used to be a installer file with ".run" extension that could be executed on any Linux distribution to install Timeshift. This method of installing Timeshift is no longer available or supported since many years.

Also remove the config file for generating the installer.
2022-11-21 13:33:28 +00:00
Tony George
ca62c61332 Delete the empty 'timeshift-wiki' folder 2022-11-21 13:33:28 +00:00
Michael Webster
92ad80cb0f Fix some file permissions. 2022-11-07 09:29:42 -05:00
Tony George
717060bacb Fix typo in timeshift-gtk.desktop 2022-11-07 09:08:06 -05:00
JungHee Lee
f7c82b8997 Update timeshift-gtk.desktop
Korean Japanese added.
2022-11-07 09:08:06 -05:00
Tony George
1fd2f2df0c Use -Os for compilation instead of -O3
-O3 seems to be buggy and can sometime generate incorrect code
2022-11-07 09:08:06 -05:00
Tony George
b481c2e532 Remove some unused code and functions 2022-11-07 09:08:06 -05:00
Tony George
12791a98ec Don't show message when unmounting temporary mount points 2022-11-07 09:08:06 -05:00
Tony George
22216d6acb #939, #937: Fix crash on ArchLinux and Ubuntu 22.10 Kinetic
This seems to be an issue with glib2 2.74 and strings that contain a improper unicode escape code (\uXX instead of /uXXXX). Since this function is used by all the progress windows, creating or deleting snapshots from the GUI was causing a crash.
2022-11-07 09:08:06 -05:00
Michael Webster
e8edf174dc debian/control: Restore newline. 2022-11-05 19:36:53 -04:00
Michael Webster
4fbedd5736 Clean up debian/control, appdata, build file. 2022-11-05 13:41:53 -04:00
Michael Webster
c43657e769 Add github workflow. 2022-11-05 12:58:07 -04:00
Isaac Carter
baeae70c7a
Changes man page to GROFF format (#73) 2022-10-17 10:25:28 -04:00
Matin Lotfaliei
b0f745031b
Update README.md to include build dependencies and instructions (#45)
* Update README.md to include build dependencies and instructions

* Add make to dependencies
2022-09-28 11:57:15 +01:00
Clement Lefebvre
dad9aeb520 22.06.5 2022-07-24 12:32:41 +02:00
Clement Lefebvre
68adfc6249 l10n: Update translations 2022-07-24 12:31:39 +02:00
Clement Lefebvre
6ef4c70f9c 22.06.4 2022-07-15 15:28:50 +02:00
Michael Webster
96f9f8134a Disable selection of the btrfs backend when there are no btrfs
filesystems found.

The old check was for the presence of the 'btrfs' command, whose
package was a dependency of timeshift.
2022-07-12 10:21:35 -04:00
Clement Lefebvre
829c78aa07 22.06.3 2022-06-30 15:19:07 +02:00
Clement Lefebvre
4db05931a1 l10n: Update POT 2022-06-30 15:18:26 +02:00