summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--data/icons/meson.build2
-rw-r--r--data/icons/scalable/org.gnome.Totem.Devel.svg (renamed from data/icons/scalable/org.gnome.Totem-nightly.svg)0
-rw-r--r--data/meson.build6
-rw-r--r--data/org.gnome.Totem.desktop.in.in2
-rw-r--r--data/org.gnome.Totem.service.in2
-rw-r--r--flatpak/org.gnome.Totem.Devel.json (renamed from flatpak/org.gnome.Totem.json)5
-rw-r--r--meson.build18
-rw-r--r--meson_options.txt1
-rw-r--r--src/backend/bvw-test.c2
-rw-r--r--src/plugins/dbusservice/dbusservice.py2
-rw-r--r--src/totem-object.c2
-rw-r--r--src/totem.c6
13 files changed, 37 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d59598235..785b24c51 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,13 +25,13 @@ flatpak:master:
stage: test
variables:
# Replace with your manifest path
- MANIFEST_PATH: "flatpak/org.gnome.Totem.json"
+ MANIFEST_PATH: "flatpak/org.gnome.Totem.Devel.json"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
# Replace with your application name, as written in the manifest
FLATPAK_MODULE: "totem"
# Make sure to keep this in sync with the Flatpak manifest, all arguments
# are passed except the config-args because we build it ourselves
- MESON_ARGS: "-Denable-easy-codec-installation=no"
+ MESON_ARGS: "-Denable-easy-codec-installation=no -Dprofile=development"
APP_ID: "org.gnome.Totem.Devel"
review:
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 234ff8e53..49260c10d 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -1,5 +1,5 @@
install_data(
- join_paths('scalable', 'org.gnome.Totem.svg'),
+ join_paths('scalable', application_id + '.svg'),
install_dir: join_paths(totem_datadir, 'icons', 'hicolor', 'scalable', 'apps')
)
diff --git a/data/icons/scalable/org.gnome.Totem-nightly.svg b/data/icons/scalable/org.gnome.Totem.Devel.svg
index 01f27d194..01f27d194 100644
--- a/data/icons/scalable/org.gnome.Totem-nightly.svg
+++ b/data/icons/scalable/org.gnome.Totem.Devel.svg
diff --git a/data/meson.build b/data/meson.build
index aecc657cd..6cb83f4b6 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -57,6 +57,7 @@ r = run_command(desktop_sh, mime_type_list, uri_schemes_list)
desktop_conf = configuration_data()
desktop_conf.set('VERSION', totem_version)
+desktop_conf.set('APPLICATION_ID', application_id)
desktop_conf.set('MIME_TYPE', r.stdout().strip())
desktop = 'org.gnome.Totem.desktop'
@@ -79,11 +80,12 @@ i18n.merge_file (
service_conf = configuration_data()
service_conf.set('bindir', totem_bindir)
+service_conf.set('application_id', application_id)
-service = 'org.gnome.Totem.service'
+service = application_id + '.service'
configure_file(
- input: service + '.in',
+ input: 'org.gnome.Totem.service.in',
output: service,
install: true,
install_dir: join_paths(totem_datadir, 'dbus-1', 'services'),
diff --git a/data/org.gnome.Totem.desktop.in.in b/data/org.gnome.Totem.desktop.in.in
index 74d771f45..0e3b6bdc2 100644
--- a/data/org.gnome.Totem.desktop.in.in
+++ b/data/org.gnome.Totem.desktop.in.in
@@ -5,7 +5,7 @@ Comment=Play movies
Keywords=Video;Movie;Film;Clip;Series;Player;DVD;TV;Disc;Totem;
Exec=totem %U
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=org.gnome.Totem
+Icon=@APPLICATION_ID@
DBusActivatable=true
Terminal=false
Type=Application
diff --git a/data/org.gnome.Totem.service.in b/data/org.gnome.Totem.service.in
index eaba8aebc..eeecdde88 100644
--- a/data/org.gnome.Totem.service.in
+++ b/data/org.gnome.Totem.service.in
@@ -1,3 +1,3 @@
[D-BUS Service]
-Name=org.gnome.Totem
+Name=@application_id@
Exec=@bindir@/totem --gapplication-service
diff --git a/flatpak/org.gnome.Totem.json b/flatpak/org.gnome.Totem.Devel.json
index f4ffacb78..346742763 100644
--- a/flatpak/org.gnome.Totem.json
+++ b/flatpak/org.gnome.Totem.Devel.json
@@ -1,11 +1,12 @@
{
- "app-id": "org.gnome.Totem",
+ "app-id": "org.gnome.Totem.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "totem",
"tags": ["nightly"],
- "desktop-file-name-prefix": "(Nightly) ",
+ "rename-desktop-file": "org.gnome.Totem.desktop",
+ "desktop-file-name-suffix": " (☢️)",
"finish-args": [
/* X11 + XShm access */
"--share=ipc", "--socket=x11",
diff --git a/meson.build b/meson.build
index 0685d55e0..bd4e87d72 100644
--- a/meson.build
+++ b/meson.build
@@ -41,6 +41,16 @@ totem_debug = get_option('buildtype').contains('debug')
cc = meson.get_compiler('c')
+if get_option('profile') == 'development'
+ profile = '.Devel'
+ name_suffix = ' ☢️'
+else
+ profile = ''
+ name_suffix = ''
+endif
+
+application_id = 'org.gnome.Totem@0@'.format(profile)
+
config_h = configuration_data()
# debug options
@@ -51,6 +61,7 @@ set_defines = [
# package
['PACKAGE', meson.project_name()],
['TOTEM_API_VERSION', totem_api_version],
+ ['APPLICATION_ID', application_id],
['VERSION', totem_version],
# i18n
['GETTEXT_PACKAGE', meson.project_name()]
@@ -229,6 +240,13 @@ meson.add_dist_script(
message('Totem was configured with the following options:')
message('** Using the GStreamer-1.0 backend')
+str = 'Development build'
+if get_option('profile') == 'development'
+ message('** ' + str + ' enabled')
+else
+ message(' ' + str + ' disabled')
+endif
+
str = 'Easy codec installation support'
if have_easy_codec
message('** ' + str + ' enabled')
diff --git a/meson_options.txt b/meson_options.txt
index d6f8b4290..7070fd5d0 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,3 +2,4 @@ option('enable-easy-codec-installation', type: 'combo', choices: ['yes', 'no', '
option('enable-python', type: 'combo', choices: ['yes', 'no', 'auto'], value: 'auto', description: 'Enable python support')
option('with-plugins', type: 'combo', choices: ['all', 'none', 'auto'], value: 'auto', description: 'Which Totem plugins to compile (default: auto; "all", "none" and "auto" are valid)')
option('enable-gtk-doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')
+option('profile', type: 'combo', choices: ['default', 'development'], value: 'default', description: 'Build profiles')
diff --git a/src/backend/bvw-test.c b/src/backend/bvw-test.c
index 3d3dba2cc..cbd6f29ad 100644
--- a/src/backend/bvw-test.c
+++ b/src/backend/bvw-test.c
@@ -117,7 +117,7 @@ int main
G_CALLBACK (gtk_main_quit), NULL);
bvw = bacon_video_widget_new (NULL);
- bacon_video_widget_set_logo (BACON_VIDEO_WIDGET (bvw), "org.gnome.Totem");
+ bacon_video_widget_set_logo (BACON_VIDEO_WIDGET (bvw), APPLICATION_ID);
g_signal_connect (G_OBJECT (bvw), "eos", G_CALLBACK (on_eos_event), NULL);
g_signal_connect (G_OBJECT (bvw), "got-metadata", G_CALLBACK (on_got_metadata), NULL);
diff --git a/src/plugins/dbusservice/dbusservice.py b/src/plugins/dbusservice/dbusservice.py
index e65a80baa..70deb7f7a 100644
--- a/src/plugins/dbusservice/dbusservice.py
+++ b/src/plugins/dbusservice/dbusservice.py
@@ -175,7 +175,7 @@ class Root (dbus.service.Object): # pylint: disable=R0904
'CanRaise': True,
'HasTrackList': False,
'Identity': 'Videos',
- 'DesktopEntry': 'org.gnome.Totem',
+ 'DesktopEntry': self.totem.application_id,
'SupportedUriSchemes': self.totem.get_supported_uri_schemes (),
'SupportedMimeTypes': self.totem.get_supported_content_types (),
}
diff --git a/src/totem-object.c b/src/totem-object.c
index 93be4fa86..19d77f6ec 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -252,7 +252,7 @@ totem_object_app_activate (GApplication *app)
}
/* Set the logo at the last minute so we won't try to show it before a video */
- bacon_video_widget_set_logo (totem->bvw, "org.gnome.Totem");
+ bacon_video_widget_set_logo (totem->bvw, APPLICATION_ID);
g_application_unmark_busy (G_APPLICATION (totem));
diff --git a/src/totem.c b/src/totem.c
index 1e9ef168f..9072c1ba6 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -70,13 +70,13 @@ main (int argc, char **argv)
g_set_prgname ("totem");
g_set_application_name (_("Videos"));
- gtk_window_set_default_icon_name ("org.gnome.Totem");
+ gtk_window_set_default_icon_name (APPLICATION_ID);
g_setenv("PULSE_PROP_media.role", "video", TRUE);
- g_setenv("PULSE_PROP_application.icon_name", "org.gnome.Totem", TRUE);
+ g_setenv("PULSE_PROP_application.icon_name", APPLICATION_ID, TRUE);
/* Build the main Totem object */
totem = g_object_new (TOTEM_TYPE_OBJECT,
- "application-id", "org.gnome.Totem",
+ "application-id", APPLICATION_ID,
"flags", G_APPLICATION_HANDLES_OPEN,
NULL);