Commit Graph

1109 Commits

Author SHA1 Message Date
Yegor Yefremov
3842e4b38a
README.md: point to development docs for the installation from source (#226)
Also fix a typo and the section depth.
2023-11-16 12:25:48 -05:00
Yegor Yefremov
8607c9dc8f
docs/development.md: fix meson setup command (#224)
meson setup command accepts the build folder name directly.
2023-08-17 09:28:35 -04:00
Robin Candau
37c50084f4
Add the installation/removal instructions for the timeshift Arch package (#220) 2023-08-06 10:59:21 -04:00
Boyuan Yang
02697234b5
docs/man/meson.build: Use -N for help2man to avoid texinfo section (#217)
If -N option is not added, the following section will be appended
to the generated man pages:

SEE ALSO
       The  full documentation for Timeshift is maintained as a Texinfo manual.  If the info and Timeshift programs are properly installed
       at your site, the command

              info Timeshift

       should give you access to the complete manual.

This is not desired, thus add the -N option to the help2man
invocation.

Signed-off-by: Boyuan Yang <byang@debian.org>
2023-07-31 12:08:37 -04:00
Clement Lefebvre
e7fab11ae9 23.07.1 2023-07-08 18:12:04 +02:00
Clement Lefebvre
4a5e7a5483 Update translations 2023-07-08 18:10:57 +02:00
Bobby Rong
bb8b2a2020
treewide: use /usr/bin/env bash for shebang (#209)
NixOS does not have /bin/bash but we do have /usr/bin/env
for POSIX compliance.
2023-07-04 13:02:32 -04:00
Bobby Rong
81359efeb4
build: allow installing default.json to sysconfdir (#208)
In NixOS, packages are installed to their own prefix and
we are not allowed to install this file to /etc.
2023-07-04 11:57:48 -04:00
Clement Lefebvre
863e734ccc 23.06.2 2023-06-08 12:17:10 +01:00
Clement Lefebvre
5b2a0a8617 Update translations 2023-06-08 12:16:29 +01:00
AsciiWolf
7629f00a89
Fix the desktop file name + project license in appdata (#204)
* Fix the desktop file name in appdata

The correct name seems to be timeshift-gtk.desktop
2023-06-05 09:54:14 -04:00
Clement Lefebvre
0b3e43a1e4 23.06.1 2023-06-01 12:06:28 +01:00
Clement Lefebvre
cd01296fbb git: Remove generate man pages 2023-06-01 12:04:50 +01:00
Clement Lefebvre
8ed0ec780b l10n: Update POT 2023-06-01 11:35:58 +01:00
Yegor Yefremov
a31bfe628e
Use an unsafe cast (#200)
This approach resolves warnings like this:

Access to possible `null'. Perform a check or use an unsafe cast.
2023-06-01 11:34:02 +01:00
Yegor Yefremov
bd4d2b5b5c
docs: automatically generate timeshift-gtk manpage (#194) 2023-05-24 11:51:59 -04:00
Yegor Yefremov
7ab8afc51b
Don't use the deprecated Gtk.TreeView.rules_hint feature (#201)
According to the Gtk documentation, the appearance of the ruled tree
depends on the selected theme. Hence, if you need “zebra striping”,
just use the related theme.
2023-05-24 11:25:56 -04:00
Yegor Yefremov
8818fc4218 meson: add project's license definition 2023-05-18 12:42:39 -04:00
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