Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Update name for flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-Styki committed Jun 26, 2021
1 parent 71a8b35 commit 75edd1c
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Run `meson` to configure the build environment and then `ninja` to build and ins
cd build
ninja

To install, use `ninja install`, then execute with `com.github.dr-styki.screenrec`
To install, use `ninja install`, then execute with `com.github.dr_styki.screenrec`

sudo ninja install
com.github.dr-styki.screenrec
com.github.dr_styki.screenrec

## Credits
Originaly forked from [screenrecorder](https://github.com/Mohelm97/screenrecorder). Now greatly inspired by the code of [Screenshot](https://github.com/elementary/screenshot), [Kazam](https://github.com/hzbd/kazam) and [Screencast](https://github.com/artemanufrij/screencast).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=ScreenRec
Comment=Record videos of the screen
Exec=com.github.dr-styki.screenrec
Icon=com.github.dr-styki.screenrec
Exec=com.github.dr_styki.screenrec
Icon=com.github.dr_styki.screenrec
Terminal=false
Type=Application
Categories=GTK;GNOME;Utility;AudioVideo;Video;
Expand All @@ -12,12 +12,12 @@ X-GNOME-UsesNotifications=true

[Desktop Action ScreenRecord]
Name=Record the Whole Screen
Exec=com.github.dr-styki.screenrec --screen
Exec=com.github.dr_styki.screenrec --screen

[Desktop Action WindowRecord]
Name=Record the Current Window
Exec=com.github.dr-styki.screenrec --window
Exec=com.github.dr_styki.screenrec --window

[Desktop Action AreaRecord]
Name=Record a Selected Area
Exec=com.github.dr-styki.screenrec --area
Exec=com.github.dr_styki.screenrec --area
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/dr-Styki/ScreenRec">
<gresource prefix="/com/github/dr_Styki/ScreenRec">
<file alias="grab-area-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/symbolic/grab-area-symbolic.svg</file>
<file alias="grab-screen-symbolic.svg" compressed="true" preprocess="xml-stripblanks">icons/symbolic/grab-screen-symbolic.svg</file>
<file alias="grab-screen-symbolic-dark.svg" compressed="true" preprocess="xml-stripblanks">icons/symbolic/grab-screen-symbolic-dark.svg</file>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<enum id="com.github.dr-styki.screenrec.capture-mode">
<enum id="com.github.dr_styki.screenrec.capture-mode">
<value nick="screen" value="0"/>
<value nick="window" value="1"/>
<value nick="area" value="2"/>
</enum>
<schema id="com.github.dr-styki.screenrec" path="/com/github/dr-Styki/ScreenRec/" gettext-domain="com.github.dr-styki.screenrec">
<schema id="com.github.dr_styki.screenrec" path="/com/github/dr_styki/screenrec/" gettext-domain="com.github.dr_styki.screenrec">
<key name="record-computer" type="b">
<default>false</default>
</key>
Expand All @@ -32,8 +32,8 @@
<key name="folder-dir" type="s">
<default>""</default>
</key>
<key name='last-capture-mode' enum='com.github.dr-styki.screenrec.capture-mode'>
<key name='last-capture-mode' enum='com.github.dr_styki.screenrec.capture-mode'>
<default>"screen"</default>
</key>
</schema>
</schemalist>
</schemalist>
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ override_dh_auto_test:
cd debian/build && ninja test

override_dh_auto_install:
cd debian/build && DESTDIR=${CURDIR}/debian/com.github.dr-styki.screenrec ninja install
cd debian/build && DESTDIR=${CURDIR}/debian/com.github.dr_styki.screenrec ninja install

2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Project name, programming language and version
project (
'com.github.dr-styki.screenrec',
'com.github.dr_styki.screenrec',
'vala', 'c',
version: '2.3.0',
license: 'GPL-3.0'
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace ScreenRec {

public ScreenRecApp () {
Object (
application_id: "com.github.dr-styki.screenrec",
application_id: "com.github.dr_styki.screenrec",
flags: ApplicationFlags.FLAGS_NONE
);
}
Expand All @@ -55,9 +55,9 @@ namespace ScreenRec {

add_main_option_entries (options);

settings = new GLib.Settings ("com.github.dr-styki.screenrec");
settings = new GLib.Settings ("com.github.dr_styki.screenrec");
weak Gtk.IconTheme default_theme = Gtk.IconTheme.get_default ();
default_theme.add_resource_path ("/com/github/dr-Styki/ScreenRec");
default_theme.add_resource_path ("/com/github/dr_Styki/ScreenRec");

var quit_action = new SimpleAction ("quit", null);
quit_action.activate.connect (() => {
Expand Down Expand Up @@ -111,7 +111,7 @@ namespace ScreenRec {
} else {

var provider = new Gtk.CssProvider ();
provider.load_from_resource ("/com/github/dr-Styki/ScreenRec/stylesheet.css");
provider.load_from_resource ("/com/github/dr_Styki/ScreenRec/stylesheet.css");
Gtk.StyleContext.add_provider_for_screen (
Gdk.Screen.get_default (),
provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/SendNotification.vala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace ScreenRec {
public class SendNotification : GLib.Object {

private Gtk.ApplicationWindow app;
private string app_id = "com.github.dr-styki.ScreenRec";
private string app_id = "com.github.dr_styki.ScreenRec";

private Notification start_notification = new Notification (_("Recording started"));
private Notification stop_notification = new Notification (_("Recording stopped"));
Expand Down

0 comments on commit 75edd1c

Please sign in to comment.